Skip to content

Commit

Permalink
accessibility fix for bar loader
Browse files Browse the repository at this point in the history
  • Loading branch information
finlay-jisc committed Oct 4, 2023
1 parent f60d97b commit 2e40abc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ui/src/components/ModalBarLoader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ type Props = {

const ModalBarLoader: React.FC<Props> = (props) => {
return (
<BarLoader
loading={props.loading}
color="#4ea5cb"
cssOverride={{ width: '100%', position: 'absolute' }}
height="0.25rem"
/>
<span role="status">
<BarLoader
loading={props.loading}
color="#4ea5cb"
cssOverride={{ width: '100%', position: 'absolute' }}
height="0.25rem"
aria-label="Loading"
/>
</span>
);
};

Expand Down

0 comments on commit 2e40abc

Please sign in to comment.