Repository navigation
Closed as not planned
Labels
Category: AccessibilityBugs found while using assistive technologyCritical Path: 3Affects few merchants/buyersEffort: HighSeverity: 2High Severity
Description
Issue summary
When a 3D model is rotated, a screen reader will annouce the current stage view. Ex, "View from state right", "View from stage left." This does not help to describe the stage view for someone who can't see the 3D model. Non-visual screen reader users should have equal access to content that sighted users have access to.
Current code
HTML
<model-viewer
toggleable="true"
src="…"
camera-controls="true"
style="--poster-color: transparent"
data-shopify-feature="1.7"
alt="{model.alt}"
poster="…"
data-js-focus-visible=""
ar-status="not-presenting"
></model-viewer>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 activator control
- With an active screen reader, use the virtual cursor to navigate to the 3D model and rotate using arrow keys
Behavior
Expected
- 3D model stages announcement to describe the models visuals and attributes
Actual
- 3D model announces the stage angle only
Recommendation
This will be a multi-team effort.
- Allow the merchant to upload unique descriptions per stage view in the Theme editor as "alt text." (Shopify Theme Editor team)
- Pass each stage description as string values to be accepted by the
model-viewercomponent (Shopify Theme team/Google team) - Announce each stage description when the stage comes into view. (Google team)
With this, the screen reader would announce,
"View from stage {angle}, {stage.alt}"
Review the post "3D Model Accessibility – Provide user-defined descriptions per stage variant" for more details.
Recommended code
HTML
<model-viewer
toggleable="true"
src="…"
camera-controls="true"
style="--poster-color: transparent"
data-shopify-feature="1.7"
alt="{model.alt}"
alt-left="{model.alt.left}"
alt-right="{model.alt.right}"
alt-top="{model.alt.top}"
…
poster="…"
data-js-focus-visible=""
ar-status="not-presenting"
></model-viewer>Specifications
- Browser: Any
- Dawn version: 2.2.0
- Component: 3D Model
- WCAG Principal: Perceivable
- WCAG SC: 1.1.1 Non-text Content
- Severity: High
- Effort: Very High
- Related: User-configurable screen reader view angle announcements google/model-viewer#442
Metadata
Metadata
Assignees
Labels
Category: AccessibilityBugs found while using assistive technologyCritical Path: 3Affects few merchants/buyersEffort: HighSeverity: 2High Severity

Activity
JonathanWade commentedon Nov 17, 2021
@elalish This is probably a bit of lift to get right and require coordination from us. Another route is to try and cram some of this into glTF metadata/XMP metadata, but thats another process. Love to discuss your thoughts on our next sync call.
elalish commentedon Nov 19, 2021
I'd like to understand this issue better; some examples of this text for a product would help me a lot. Is the goal really to describe the model from each view with words? I'm dubious it would add much value for a blind person, but perhaps I just don't understand yet.
One alternate idea that's been batted around from time to time for 3D rendering is to see what can be done for the larger number of visually impaired rather than the completely blind. For instance, I think a high-contrast mode focusing on the silhouette could already be achieved by setting the background dark and a high exposure, or vice versa. It would be interesting to test this with visually-impaired users.
svinkle commentedon Nov 26, 2021
@elalish Think of a 3D model as an interactive image. All images must have alternative text, either providing a text description of the image or a null value deeming the image as decorative. In the context of a product image, the expectation would be to provide details on the product. How it looks, its physical features, whether a model is wearing/using the object and how they're using/wearing it. This helps to provide understanding of the product for visually impaired users.
For example, this image of a hooded sweatshirt. A content designer could reasonably conclude an alternative text value of:
Black hooded sweatshirt. Two triangles on center of chest, one larger in blue, one smaller in red, overlap to make a third smaller white triangle.A 3D model is essentially made up of many images which the user is able to manipulate and view different angles of the object, taking in even greater detail than a static 2D image. In this case, each "image" or stage of the object should be accompanied with a text alternative.
model-viewerhas a great foundation where the stage angle is announced as it comes into view. I believe this feature could be extended to include user-provided descriptions for each stage, allowing them to provide descriptive detail as required.In my post 3D Model Accessibility I include the example of the astronaut model. The example code includes descriptive text for specific stages which showcases how someone may describe the model for visually impaired users.
Again, thinking as if the model were made up of multiple static images, one could write descriptions per stage view.
For an example output, if the astronaut model were to be viewed from stage left, a screen reader might announce:
I believe it's still important to announce the current stage as to orient the user of the current position.
In terms of effort, I believe (and this is my limited view here) that the work involved for the Google team would be minimal.
model-viewerwould need a way to accept string values, then place them alongside the stage announcement string for screen reader users to consume. Most of the work will likely be on the Shopify teams; adding new fields in the editor to accept string values, storing string values, then outputting the string values at the theme level to be sent tomodel-viewer. That's my interpretation, anyway. 🙂