Set error message not absolute (#12802)
Before <img width="485" alt="Capture d’écran 2025-06-23 à 18 52 50" src="https://github.com/user-attachments/assets/19c60cd1-f241-4419-9d03-d16d019f2c04" /> After <img width="485" alt="Capture d’écran 2025-06-23 à 18 48 01" src="https://github.com/user-attachments/assets/85b68984-11e0-456b-aacb-5a0661818b9c" /> <img width="485" alt="Capture d’écran 2025-06-23 à 18 48 38" src="https://github.com/user-attachments/assets/7380d537-e8d0-411c-b4f8-7b38b6550e20" />
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
const StyledInputHint = styled.div`
|
||||
color: ${({ theme }) => theme.font.color.light};
|
||||
const StyledInputHint = styled.div<{
|
||||
danger?: boolean;
|
||||
}>`
|
||||
color: ${({ danger, theme }) =>
|
||||
danger ? theme.font.color.danger : theme.font.color.light};
|
||||
font-size: ${({ theme }) => theme.font.size.xs};
|
||||
font-weight: ${({ theme }) => theme.font.weight.regular};
|
||||
margin-top: ${({ theme }) => theme.spacing(0.5)};
|
||||
|
||||
Reference in New Issue
Block a user