Alert: Fixes a minor issue with new Alert design and updated scss files (#67589)

This commit is contained in:
Torkel Ödegaard
2023-05-01 19:33:30 +02:00
committed by GitHub
parent 55df8afe8f
commit d189b8b47f
4 changed files with 14 additions and 17 deletions
@@ -171,10 +171,12 @@ const getStyles = (
overflow-y: auto;
`,
buttonWrapper: css`
padding: ${theme.spacing(1)};
margin-left: ${theme.spacing(1)};
background: none;
display: flex;
align-items: center;
align-self: center;
background: ${theme.colors.background.primary};
`,
close: css`
position: relative;
@@ -80,12 +80,7 @@ export const Examples: ComponentStory<typeof Alert> = () => {
<StoryExample name="Severities">
<VerticalGroup>
{severities.map((severity) => (
<Alert
title={`Severity: ${severity}`}
severity={severity}
key={severity}
onRemove={action('Remove button clicked')}
>
<Alert title={`Severity: ${severity}`} severity={severity} key={severity}>
Child content
</Alert>
))}