Skip to content

Set aria-label as static value #460

Closed

Description

@svinkle

Description

Implementing an aria-label which doesn’t change its value may help with guaranteeing the label will be read correctly for a variety of assistive technology. Having the aria-label update dynamically, paired with the aria-live attribute may not have the best support.

For example, JAWS paired with Edge browser does not announce the updated aria-label as expected. Chrome for Android announces the position of the stage, not what the model contains.

Recommendation: set the aria-label value as, “A 3D model of an astronaut” by default in order to guarantee this label announcement no matter where the user navigates from. Do not change this value throughout the experience.

<canvas … aria-label="A 3D model of an astronaut">
  <!-- … -->
</canvas>

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 canvas 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 Apr 2, 2019

    @cdata
    Contributor

    @svinkle Thanks for this feedback. Are you proposing that live updates should no longer happen altogether, or just that we should find an alternative strategy to make them work?

  2. svinkle commented on Apr 3, 2019

    @svinkle
    Author

    I'm proposing keeping the aria-label as static text, and adjusting the aria-live treatment as described in #461. I found that some browsers will only announce the current stage position, and not what the model is, "3d model of an astronaut".

  3. cdata commented on Apr 3, 2019

    @cdata
    Contributor

    Ahh, yes, could you perhaps try again with the latest build on master? I discovered a bug related to what you are describing while working on #452 and added a test for the preferred behavior.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions