Comments (3)
Good thought @cathryngriffiths!
@Shopify/accessibility - can we please have some guidance on this one? Does it make sense to add a description inside <video>
? Or would the user rely on context surrounding the video?
I guess the ideal state is captioning and transcripts, which is provided via additional files. Maybe the component could have a tracks
prop?
from hydrogen-v1.
True, video
does not have an alt
attribute, but providing a short description still holds value.
How you'd implement the description depends on the video embed. For example:
- YouTube or Vimeo would embed an
iframe
. The best approach here would be to use atitle
attribute on theiframe
and apply the description to this attribute value. - If you've using native
video
element, you can supply a description viaaria-label
attribute on thevideo
.
What's important is to keep the description concise yet informative (think YouTube video title.) Other content which is also critical for other user groups:
- Closed captions for d/Deaf or hard of hearing users (supported by all platforms – native
video
relies ontrack
attributes) - Audio descriptions for blind users to describe aloud non-spoken content (most platforms do not support multiple audio tracks – may need to produce an "alternate" video)
- Plain text transcripts for deafblind users who rely on refreshable braille readers (ideally on the same page, use a disclosure to show/hide [also helps to boost SEO])
Review "[Captions, transcripts, and audio descriptions]" on the Vault for more details.
from hydrogen-v1.
Closing this issue for now — noting that in the Demo Store reference code we'll be sure to pull Scott and team in to review accessibility and ensure we're providing reference for best practices.
from hydrogen-v1.
Related Issues (20)
- Shopify Hydrogen App crashes
- [BUG] CartCheckoutButton resolved to an invalid checkout page URL while BuyNowButton works fine HOT 5
- "CartLineProvider is not being given..." (/api/hydrogen/hooks/cart/usecartline)
- useQuery throws an error saying useQuery isn't exported when using in a custom hook HOT 2
- server-side redirects, preserving legacy Shopify URL patterns HOT 4
- [BUG] cannot obtain current URL in client code HOT 3
- [BUG] Oxygen is not defined Error on Deployment
- Hydrogen App not starting in Local Env. HOT 17
- [BUG] unclear docs regarding environment variable usage
- [BUG] 'Request Entity Too Large' error when POSTing to internal api routes HOT 1
- [BUG]
- Shop Pay Button not customizable with className provided HOT 1
- [BUG]
- [BUG] Back to Storefront from Checkout on Safari ios Error
- [BUG] linesRemove and linesAdd do not support promises
- [BUG]
- [BUG] HOT 2
- [BUG]
- [BUG]
- [BUG]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydrogen-v1.