Coder Social home page Coder Social logo

Comments (3)

scottdixon avatar scottdixon commented on July 17, 2024

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.

svinkle avatar svinkle commented on July 17, 2024

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 a title attribute on the iframe and apply the description to this attribute value.
  • If you've using native video element, you can supply a description via aria-label attribute on the video.

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 on track 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.

benjaminsehl avatar benjaminsehl commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.