Skip to content

Commit

Permalink
Progress linear: fix stories not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes committed Sep 30, 2024
1 parent f543b3b commit ab4d50d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ export const Determinate: StoryFn<LinearProgressProps> = () => {
}

return (
<div aria-busy={isLoading} aria-live="polite">
<div
aria-busy={isLoading}
aria-live="polite"
style={{ display: 'contents' }}
>
{isLoading ? (
<Progress.Linear
variant="determinate"
Expand Down Expand Up @@ -119,7 +123,7 @@ export const Accessibility: StoryFn<LinearProgressProps> = () => {
}, 6000)
}
return (
<div aria-live="assertive">
<div aria-live="assertive" style={{ display: 'contents' }}>
{isLoading ? (
<Progress.Linear aria-label="Loading linear accessibility test" />
) : (
Expand Down

0 comments on commit ab4d50d

Please sign in to comment.