Skip to content

Commit

Permalink
🎨 add tabindex to overflow elements (#2577)
Browse files Browse the repository at this point in the history
  • Loading branch information
BorghildSelle authored Nov 4, 2024
1 parent 8464530 commit 7095e34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions web/core/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ export const Carousel = forwardRef<HTMLElement, CarouselProps>(function Carousel
title && {
'aria-label': toPlainText(title),
})}
{...(displayMode === 'scroll' && {
tabIndex: 0,
})}
aria-roledescription="carousel"
className={envisTwMerge(
`w-full
Expand Down
4 changes: 2 additions & 2 deletions web/pageComponents/pageTemplates/ErrorFallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ export const ErrorFallback = ({ error, resetErrorBoundary }: FallbackProps) => {
Error Details
</Heading>
<StyledCode>
<StyledPre>{error.message}</StyledPre>
<StyledPre tabIndex={0}>{error.message}</StyledPre>
</StyledCode>
<StyledDetails>
<StyledSummary>Expand to Show Error Stack Traces</StyledSummary>
<Heading level="h3">Stack Trace</Heading>
<StyledCode>
<StyledPre>{sliceErrorStack(error.stack)}</StyledPre>
<StyledPre tabIndex={0}>{sliceErrorStack(error.stack)}</StyledPre>
</StyledCode>
</StyledDetails>
</ContentWrapper>
Expand Down

0 comments on commit 7095e34

Please sign in to comment.