Improve accessibility and reduced motion handling - #3
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| transition: transform 0.3s ease, opacity 0.3s ease; | ||
| opacity: 0; | ||
| pointer-events: none; |
There was a problem hiding this comment.
Keep hidden scroll button out of tab order
The scroll-to-top control is hidden by setting opacity: 0 and pointer-events: none when it lacks the visible class. Because the element remains in the DOM with its default tabindex, keyboard users can still tab to it while it is fully transparent, leaving focus on an invisible control with no perceivable focus outline. Consider removing the button from the tab sequence or hiding it with display: none/hidden until it is shown so that keyboard navigation does not land on an invisible element.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_69096039bab08322aea8f6af4499aa8d