Skip to content

Commit

Permalink
chore(alert bar): add story with long texts / insufficient space for …
Browse files Browse the repository at this point in the history
…one line
  • Loading branch information
Mohammer5 committed Dec 11, 2023
1 parent f51f45d commit 566f310
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions components/alert/src/alert-bar/alert-bar.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,21 @@ export const WithActions = () => (
)
WithActions.storyName = 'With actions'

export const WithActionsAndInsufficientSpace = () => (
<AlertBar
permanent
actions={[
{ label: 'Long action 1', onClick: () => {} },
{ label: 'Long action 2', onClick: () => {} },
]}
>
Some text, a pretty normal amount, that conflicts with pretty long
actions
</AlertBar>
)
WithActionsAndInsufficientSpace.storyName =
'With actions and insufficient space'

export const Icons = () => (
<React.Fragment>
<AlertBar permanent>Default icon</AlertBar>
Expand Down

0 comments on commit 566f310

Please sign in to comment.