Skip to content

Commit

Permalink
aria-label is HTML :)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Feb 15, 2024
1 parent 242f5d1 commit dd5f77e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/molecules/BackgroundOverlay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const BACKGROUND_OVERLAY_STYLE = css`
position: ${POSITION_FIXED};
inset: 0;
z-index: 3;
aria-label: 'BackgroundOverlay';
background-color: ${COLORS.black90}${COLORS.opacity40HexCode};
@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
Expand All @@ -30,6 +29,11 @@ export function BackgroundOverlay(props: BackgroundOverlayProps): JSX.Element {
const { onClick, ...flexProps } = props

return (
<Flex css={BACKGROUND_OVERLAY_STYLE} onClick={onClick} {...flexProps} />
<Flex
aria-label="BackgroundOverlay"
css={BACKGROUND_OVERLAY_STYLE}
onClick={onClick}
{...flexProps}
/>
)
}

0 comments on commit dd5f77e

Please sign in to comment.