-
Notifications
You must be signed in to change notification settings - Fork 60
Aria-label that indicates scrolling behaviour interferes in headings content for screen readers #698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aria-label that indicates scrolling behaviour interferes in headings content for screen readers #698
Conversation
@swift-ci test |
:id="anchor" | ||
:is="`h${level}`" | ||
> | ||
<div class="heading-wrapper"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One downside to this restructuring of elements is that now you have to click the actual icon in order to get the link for the heading whereas before you could click anywhere within the title itself, which seemed like a better experience to me.
Is there a way of keeping that same behavior as before while also addressing the screen reader issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took another approach and I continued with the previous experience. So the change isn't too much f9ce461
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good, its a bit close to how Vue docs render, apart from the position of the anchor itself.
80e76a4
to
f9ce461
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simpler approach works great 🚀
The tests are failing now though and need to be updated.
@swift-ci test |
…content for screen readers (swiftlang#698) Resolves: rdar://111006953
Bug/issue #111006953, if applicable:
Summary
Aria-label that indicates scrolling behaviour interferes in headings content for screen readers
It's been fixed by restructuring how the anchor link is set and adding AX description that should read: Content of heading + "in page link" to describe that the link is within the page.
Dependencies
NA
Testing
Steps:
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
npm test
, and it succeeded