Elements intended only for screen readers degrade some interactions #147105
Replies: 1 comment
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
GitHub Feature Area
UI/UX
Body
The h2 elements with class "sr-only", attribute
data-testid="screen-reader-heading"
, and [English] text content "Breadcrumbs" are intended only for screen readers, but negatively affect page interactions. For example:data-selector="repos-split-pane-content"
), observe the path breadcrumbs (in this case, "community/.github/DISCUSSION_TEMPLATE/accessibility.yml"), followed by a "Copy path" button.I usually do this by mouse, double-clicking on the extension and dragging the cursor over the repository name before lifting up to end the double-click.
This issue seems to occur because there is nothing separating the h2 from its following ol, and one way to fix it would be insertion of a zero-width space
​
between them (although unfortunately not a<wbr>
). It would also be less relevant to me if the "Copy path" button were carried into the sticky file header that appears when scrolling down, rather than being limited to the static header visible only at the top of pane/page.Other instances of class "sr-only" have similar effects, such as how copying the "$organizationName/$repositoryName" in the repository page context header excludes the sr-only slash, resulting in e.g. a selection of "communitycommunity".
Beta Was this translation helpful? Give feedback.
All reactions