Repository navigation
Closed as not planned
Labels
Category: AccessibilityBugs found while using assistive technologyCritical Path: 3Affects few merchants/buyersEffort: LowSeverity: 2High Severity
Description
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.
Current code
HTML
<div
class="userInput"
tabindex="0"
role="img"
aria-label="…"
aria-live="polite"
style="cursor: grab"
>
<!--- Canvas -->
</div>Steps to reproduce
- Go to a Dawn theme store with any supported browser
- Navigate to a product with one or more 3D models available
- Activate the 3D model activtor control
- 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
- Set the
roleattribute toapplication. 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.) - To set a more canonical role description, add the
aria-roledescriptionattribute, setting its value to3D 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
- Browser: Any
- Dawn version: 2.2.0
- Component: 3D Model
- WCAG Principal: Perceivable, Robust
- WCAG SC: 1.3.1 Info and Relationships, 4.1.2 Name, Role, Value
- Severity: High
- Effort: Low
- Related: Investigate better canonical ARIA role google/model-viewer#443
Metadata
Metadata
Assignees
Labels
Category: AccessibilityBugs found while using assistive technologyCritical Path: 3Affects few merchants/buyersEffort: LowSeverity: 2High Severity

Activity
ludoboludo commentedon Nov 17, 2021
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
svinkle commentedon Nov 17, 2021
@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 👀?
JonathanWade commentedon Nov 17, 2021
@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.
elalish commentedon Nov 19, 2021
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).
svinkle commentedon Nov 26, 2021
@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-viewerworks 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
rolefromimgtoapplicationwill 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-viewerlevel change which would positively affect other instances of the component.svinkle commentedon Mar 29, 2022
@elalish @PeterSaathoff-Harshfield I'd like to revisit this ticket in particular. As-is, Windows screen reader users are unable to interact with
model-viewerdue 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.
elalish commentedon Mar 29, 2022
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.
svinkle commentedon Mar 30, 2022
@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.