mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 18:01:40 -06:00
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:
parent
fa2506300f
commit
8f376a302b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user