Skip to content

Commit

Permalink
Update error message icon styling in Form component
Browse files Browse the repository at this point in the history
  • Loading branch information
iacopolea committed Jan 3, 2024
1 parent 6781390 commit 8b0cd89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/stories/form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,23 @@ export const ErrorMessageWrapper = ({
children: React.ReactNode;
}) => (
<StyledErrorMessage>
<ExclamationCircle title="Error" size={16} />
<ExclamationCircle className="error-message-icon" title="Error" size={16} />
{children}
</StyledErrorMessage>
);

const StyledErrorMessage = styled.div`
display: flex;
align-items: center;
align-items: flex-start;
gap: ${(props) => props.theme.grid.sizes[2]};
color: ${(props) => props.theme.palette.danger};
width: 100%;
margin-top: 0.25rem;
font-size: 0.875em;
.error-message-icon {
margin-top: 2px;
flex-shrink: 0;
}
&:empty {
display: none;
}
Expand Down

0 comments on commit 8b0cd89

Please sign in to comment.