UI: Align the icon in the Alert (#90461)

* UI: Align the `icon` in the `Alert`

* feat: align icon with one line text

* chore: prettier imports fix

* chore: revert imports

* feat: remove alignSelf & position the icon

* chore: clean up
This commit is contained in:
Joanna 2024-07-17 12:48:57 +02:00 committed by GitHub
parent fa2506300f
commit 8f376a302b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,6 @@ import { Button } from '../Button/Button';
import { Icon } from '../Icon/Icon';
import { Box } from '../Layout/Box/Box';
import { Text } from '../Text/Text';
export type AlertVariant = 'success' | 'warning' | 'error' | 'info';
export interface Props extends HTMLAttributes<HTMLDivElement> {
@ -152,6 +151,8 @@ const getStyles = (
}),
icon: css({
color: color.text,
position: 'relative',
top: '-1px',
}),
content: css({
color: theme.colors.text.primary,