Skip to content

fix(docs): make back-to-top button keyboard accessible#7246

Open
dhawalc wants to merge 1 commit into
microsoft:mainfrom
dhawalc:fix/back-to-top-keyboard-a11y
Open

fix(docs): make back-to-top button keyboard accessible#7246
dhawalc wants to merge 1 commit into
microsoft:mainfrom
dhawalc:fix/back-to-top-keyboard-a11y

Conversation

@dhawalc

@dhawalc dhawalc commented Feb 18, 2026

Copy link
Copy Markdown

Summary

Makes the back-to-top button keyboard accessible, addressing issue #25 from #6090.

Changes

  • Added tabindex='0' to make the button focusable via keyboard navigation
  • Added aria-label='Back to top' for screen readers
  • Added role='button' for proper semantics
  • Added keydown handler to activate on Enter/Space keys
  • Added screen reader announcement when scrolling to top

Testing

  1. Navigate to any docs page
  2. Scroll down until back-to-top button appears
  3. Tab to the button (should now be reachable)
  4. Press Enter or Space (should scroll to top)
  5. Screen reader should announce 'Scrolled to top of page'

Related Issues

Partially fixes #6090 (issue 25: Back to Top control is not accessible with keyboard)

- Add tabindex='0' to make button focusable
- Add aria-label for screen readers
- Add keydown handler for Enter/Space activation
- Announce scroll action via live region

Fixes issue microsoft#25 in microsoft#6090
@dhawalc

dhawalc commented Feb 18, 2026

Copy link
Copy Markdown
Author

Agreed and approved

@dhawalc

dhawalc commented Feb 19, 2026

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree [company="dhawal Chheda"]

@dhawalc

dhawalc commented Feb 19, 2026

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@microsoft-github-policy-service agree company=Accel4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autogen website accessibility issues (low severity)

1 participant