Skip to content

Status content discoverable by mobile screen reader swipe gestures #445

Closed

Description

@svinkle

Description

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:

// status-announcer.ts:81
statusElement.setAttribute('aria-hidden', 'true');

Screenshot_20190325-111102

Live Demo

  1. Go to <model-viewer> with Chrome for Android
  2. Load up TalkBack screen reader
  3. Swipe right with one finger until the status content is found

Browser Affected

  • Chrome
  • Edge
  • Firefox
  • Helios
  • IE
  • Safari

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • Windows

Versions

  • model-viewer: v0.1.1

Activity

  1. cdata commented on Mar 25, 2019

    @cdata
    Contributor

    @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)?

    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).

  2. added
    type: bug
    on Mar 25, 2019
  3. svinkle commented on Mar 25, 2019

    @svinkle
    Author

    the status element is read two times (once when the text content changes, and once again as you cycle through elements while swiping)?

    Yes, exactly this.

    If we added aria-hidden to the element, would changes to its text content still be announced correctly?

    Yes, announcements still occur as expected.

    There would be no change other than the visually hidden text node is bypassed while using swipe navigation.

  4. cdata commented on Mar 26, 2019

    @cdata
    Contributor

    SGTM, we will make this change

  5. self-assigned this
    on Mar 30, 2019
  6. svinkle commented on Apr 1, 2019

    @svinkle
    Author

    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…

    <div role="region" aria-label="Live announcements">
      <div class="visuallyhidden" role="status"></div>
    </div>

    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.

  7. added
    flag: partner
    on May 15, 2019
  8. elalish commented on Aug 1, 2022

    @elalish
    Contributor

    I think this was fixed as part of our other a11y work.

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

Metadata

Metadata

Assignees

Labels

arc: interactionflag: partnertype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions