Skip to content

Commit

Permalink
Merge branch 'v3' into support-h2-headings-with-steps-component
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina authored Sep 17, 2024
2 parents 1c6d12b + 34035ca commit 310447c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 30 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-snails-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'nextra-theme-docs': patch
---

Remove the aria-hidden attribute from scroll-to-top button when it is visible
3 changes: 2 additions & 1 deletion packages/nextra-theme-docs/src/components/back-to-top.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export function BackToTop({
}): ReactElement {
return (
<Button
aria-hidden="true"
// elements with `aria-hidden: true` must not be focusable or contain focusable elements
aria-hidden={hidden ? 'true' : undefined}
onClick={scrollToTop}
disabled={hidden}
className={({ disabled }) =>
Expand Down
58 changes: 29 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 310447c

Please sign in to comment.