You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Status content discoverable by mobile screen reader swipe gestures #445
Mobile screen reader users will run into the status content when using swipe gestures. This may cause confusion as to the position or purpose of this seemingly duplicate content.
Adding aria-hidden to the container will avoid this issue as this cause screen readers to bypass the container altogether:
To clarify, is the issue you are describing that the status element is read two times (once when the text content changes, and once again as you cycle through elements while swiping)?
Adding aria-hidden to the container will avoid this issue as this cause screen readers to bypass the container altogether
The intention of the status element in our case is two-fold:
Its content should be announced by screen readers as the text content changes.
Its content represents global status related to <model-viewer> (so, there should only be one status element across all <model-viewer> elements).
If we added aria-hidden to the element, would changes to its text content still be announced correctly?
If so, then I think we can make this change easily.
If not, maybe we should explore a different strategy for announcing global status (perhaps using aria-live, like we do with the camera controls).
Apologies, @cdata, we'll need to close #455 – further testing this solution reveals applying aria-hidden to a live region does not announce updates as expected.
My original test bed featured a click event handler which would temporarily set aria-hidden to false and then true again in order to avoid screen reader users from finding the status element while navigating. Upon inspecting the DOM, I missed this toggle and only saw the true value being applied.
My recommendation is to close #455 for now. This is a minor issue compared to others we're facing so leaving as-is will not be a blocker.
That said, I've tested a notification or sorts to help with this dilemma of not being able to "hide" the content node in the DOM. Wrapping the status element with a parent element note attached works well to provide the user some context on what they're interacting with an why…
Activity
cdata commentedon Mar 25, 2019
@svinkle this is awesome, thanks for filing!
To clarify, is the issue you are describing that the status element is read two times (once when the text content changes, and once again as you cycle through elements while swiping)?
The intention of the status element in our case is two-fold:
<model-viewer>(so, there should only be one status element across all<model-viewer>elements).If we added
aria-hiddento the element, would changes to its text content still be announced correctly?If so, then I think we can make this change easily.
If not, maybe we should explore a different strategy for announcing global status (perhaps using
aria-live, like we do with the camera controls).svinkle commentedon Mar 25, 2019
Yes, exactly this.
Yes, announcements still occur as expected.
There would be no change other than the visually hidden text node is bypassed while using swipe navigation.
cdata commentedon Mar 26, 2019
SGTM, we will make this change
svinkle commentedon Apr 1, 2019
Apologies, @cdata, we'll need to close #455 – further testing this solution reveals applying
aria-hiddento a live region does not announce updates as expected.My original test bed featured a click event handler which would temporarily set
aria-hiddentofalseand thentrueagain in order to avoid screen reader users from finding the status element while navigating. Upon inspecting the DOM, I missed this toggle and only saw thetruevalue being applied.My recommendation is to close #455 for now. This is a minor issue compared to others we're facing so leaving as-is will not be a blocker.
That said, I've tested a notification or sorts to help with this dilemma of not being able to "hide" the content node in the DOM. Wrapping the
statuselement with a parent element note attached works well to provide the user some context on what they're interacting with an why…When navigated to in the DOM, this would be announced as, "Live announcements, region", which would serve the purpose of providing context.
Just something to consider.
elalish commentedon Aug 1, 2022
I think this was fixed as part of our other a11y work.