Skip to content

[3D Model] 3D model described as an image #868

Closed as not planned
Closed as not planned

Description

@svinkle

Issue summary

When a 3D model is discovered by a screen reader user, the model is described as an "image" or "graphic" via the current role attribute value. This value provides incorrect semantic meaning and context which could be confusing for screen reader users.

In addition, Windows based screen reader users are unable to interact with a 3D model. This is due to screen readers such as JAWS, NVDA, or Windows Narrator using single arrow keypress events to navigate page content.

Screenshots Dawn product page. A 3D model of an astronaut is highlighted. VoiceOver output window shows the text, Test astronaut model, image.

Current code

HTML

<div
  class="userInput"
  tabindex="0"
  role="img"
  aria-label="…"
  aria-live="polite"
  style="cursor: grab"
>
  <!--- Canvas -->
</div>

Steps to reproduce

  1. Go to a Dawn theme store with any supported browser
  2. Navigate to a product with one or more 3D models available
  3. Activate the 3D model activtor control
  4. With an active screen reader, use the virtual cursor to navigate to the 3D model

Behavior

Expected

  • 3D model element to be conveyed as a "3D model"

Actual

  • 3D model is conveyed as an image element

Recommendation

  1. Set the role attribute to application. This will allow the 3D model to override assistive technology defaults to accept arrow key events (by default, Windows based screen readers use arrow keys to move the virtual cursor.)
  2. To set a more canonical role description, add the aria-roledescription attribute, setting its value to 3D Model.

With this, the screen reader would announce,

"{alt}, 3D Model"

Review the post "3D Model Accessibility" for more details on why a 3D model is not an image (or video content.)

Recommended code

HTML

<div
  class="userInput"
  tabindex="0"
  role="application"
  aria-roledescription="3D Model"
  aria-label="[{string} description of 3D model]"
  aria-describedby="[{IDREF} containing information on how to interact with the 3D model]"
  style="cursor: grab"
>
  <!--- Canvas -->
</div>

Specifications

Activity

  1. added
    Severity: 1
    Category: Accessibility
    on Nov 10, 2021
  2. self-assigned this
    on Nov 17, 2021
  3. ludoboludo commented on Nov 17, 2021

    @ludoboludo
    Contributor

    Reached out to the media team on this one as I think it's out of our control as front end devs and within the scope of this repo.
    Same for #869

  4. svinkle commented on Nov 17, 2021

    @svinkle
    Author

    @ludoboludo Thanks. Some of the 3d model tickets will be out of scope. I wanted to have a central location for communication between teams. Could we ping some folks here to get more 👀?

  5. JonathanWade commented on Nov 17, 2021

    @JonathanWade

    @elalish Are these recommendations something that should land at the model-viewer level instead of attributes Shopify tacks on? Feels like users outside our ecosystem would benefit as well.

  6. elalish commented on Nov 19, 2021

    @elalish

    Agreed that this sounds like a MV-level issue. We're starting to get some internal customers now too and with that more a11y scrutiny. Might be good to get together and see if we can make more of an a11y plan.

    One concern that was brought up internally was that the progress/loading screen reader stuff gets distracting. Curious if anyone on your side has thoughts (might be a bigger deal with several models on the page).

  7. added
    Critical Path: 3
    on Nov 26, 2021
  8. svinkle commented on Nov 26, 2021

    @svinkle
    Author

    @elalish One could make the argument the initial loading sequence of messages shared to the user are a little verbose. In my testing of multiple models on a single page, this has not affected the user experience as only one model loads at a time. However, when the user becomes familiar with how model-viewer works and functions, these could be considered a nuisance.

    I've made recommendations in the past on tidying up the DOM and organizing live region announcements in google/model-viewer#462, google/model-viewer#461, and google/model-viewer#445. However, I don't believe this to be as "mission critical" as the usability barriers found in #869 or this issue reported here. The fact remains that Windows based screen reader users are completely unable to use arrow keys to rotate the model. Screen readers such as NVDA, JAWS, and Narrator on Windows use single arrow keypresses as their virtual browse mode. Up and Down arrows read text on the screen one line at a time. Adjusting the role from img to application will allow arrow keypresses to commence as expected as this role value allows the app to "take over" and intercept arrow key events.

    To @JonathanWade's point, this would be a model-viewer level change which would positively affect other instances of the component.

  9. added
    Severity: 2
    and removed
    Severity: 1
    on Jan 4, 2022
  10. svinkle commented on Mar 29, 2022

    @svinkle
    Author

    @elalish @PeterSaathoff-Harshfield I'd like to revisit this ticket in particular. As-is, Windows screen reader users are unable to interact with model-viewer due to built-in mechanics of content discovery and consumption via single arrow keypress. Review the Recommendation section for a potential work-around.

    If changes are made to remedy this issue, I'd like to request a demo environment be made available for testing. This change in particular needs thorough usability testing to ensure high usability with AT. With this we'll be able to gain expert feedback from people with disabilities and implement recommendations accordingly before shipping to prod.

    Turn-around on usability testing with Shopify partner Fable is typically 3-5 business days, so it should be quick. I'd setup and host these sessions myself as this is a regular activity in my workflow.

  11. elalish commented on Mar 29, 2022

    @elalish

    Sorry, I would have dealt with this earlier if I'd remembered. Is there a MV issue for this anywhere? Unfortunately I'm in the process of cutting a release right now, so this will have to wait. But I'd be happy to assist.

  12. svinkle commented on Mar 30, 2022

    @svinkle
    Author

    @elalish No worries. Let's use the time during the next release to address and thoroughly test this particular issue.

    There's an MV issue in google/model-viewer#443 but this ticket has more details.

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

Metadata

Metadata

Assignees

Labels

Category: AccessibilityCritical Path: 3Effort: LowSeverity: 2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions