mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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 { Icon } from '../Icon/Icon';
|
||||||
import { Box } from '../Layout/Box/Box';
|
import { Box } from '../Layout/Box/Box';
|
||||||
import { Text } from '../Text/Text';
|
import { Text } from '../Text/Text';
|
||||||
|
|
||||||
export type AlertVariant = 'success' | 'warning' | 'error' | 'info';
|
export type AlertVariant = 'success' | 'warning' | 'error' | 'info';
|
||||||
|
|
||||||
export interface Props extends HTMLAttributes<HTMLDivElement> {
|
export interface Props extends HTMLAttributes<HTMLDivElement> {
|
||||||
@ -152,6 +151,8 @@ const getStyles = (
|
|||||||
}),
|
}),
|
||||||
icon: css({
|
icon: css({
|
||||||
color: color.text,
|
color: color.text,
|
||||||
|
position: 'relative',
|
||||||
|
top: '-1px',
|
||||||
}),
|
}),
|
||||||
content: css({
|
content: css({
|
||||||
color: theme.colors.text.primary,
|
color: theme.colors.text.primary,
|
||||||
|
Loading…
Reference in New Issue
Block a user