Alert: Fixes a minor issue with new Alert design and updated scss files (#67589)
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user