Skip to content

Commit

Permalink
Docs(Flash): Add aria-label to stories with icons
Browse files Browse the repository at this point in the history
  • Loading branch information
francinelucca committed Sep 17, 2024
1 parent 082b4e7 commit fb448a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react/src/Flash/Flash.features.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Success = () => (
}}
>
<Box sx={{display: 'grid', paddingBlock: 'var(--base-size-8)', alignSelf: 'start', gridArea: 'visual'}}>
<Octicon icon={CheckCircleIcon} />
<Octicon icon={CheckCircleIcon} aria-label="Success" />
</Box>
<Box
sx={{
Expand All @@ -48,7 +48,7 @@ export const Danger = () => (
}}
>
<Box sx={{display: 'grid', paddingBlock: 'var(--base-size-8)', alignSelf: 'start', gridArea: 'visual'}}>
<Octicon icon={InfoIcon} />
<Octicon icon={InfoIcon} aria-label="Danger" />
</Box>
<Box
sx={{
Expand All @@ -74,7 +74,7 @@ export const Warning = () => (
}}
>
<Box sx={{display: 'grid', paddingBlock: 'var(--base-size-8)', alignSelf: 'start', gridArea: 'visual'}}>
<Octicon icon={AlertIcon} />
<Octicon icon={AlertIcon} aria-label="Warning" />
</Box>
<Box
sx={{
Expand All @@ -100,7 +100,7 @@ export const Full = () => (
}}
>
<Box sx={{display: 'grid', paddingBlock: 'var(--base-size-8)', alignSelf: 'start', gridArea: 'visual'}}>
<Octicon icon={InfoIcon} />
<Octicon icon={InfoIcon} aria-label="Info" />
</Box>
<Box
sx={{
Expand Down Expand Up @@ -134,7 +134,7 @@ export const WithIconAndAction = () => (
}}
>
<Box sx={{display: 'grid', paddingBlock: 'var(--base-size-8)', alignSelf: 'start', gridArea: 'visual'}}>
<Octicon icon={InfoIcon} />
<Octicon icon={InfoIcon} aria-label="Info" />
</Box>
<Box
sx={{
Expand Down Expand Up @@ -180,7 +180,7 @@ export const WithIconActionDismiss = () => (
}}
>
<Box sx={{display: 'grid', paddingBlock: 'var(--base-size-8)', alignSelf: 'start', gridArea: 'visual'}}>
<Octicon icon={InfoIcon} />
<Octicon icon={InfoIcon} aria-label="Info" />
</Box>
<Box
sx={{
Expand Down

0 comments on commit fb448a1

Please sign in to comment.