-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transcript Front End #11707
base: latest
Are you sure you want to change the base?
Transcript Front End #11707
Conversation
src/app/components/Transcript/TranscriptTimestamp/index.styles.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great Izzy. I've been through the screen reader UX and AAC doc, have checked everything except the criteria that need AT, left a couple of minor comments.
Have done a couple of tests, the time element is what's creating the text splitting on Talkback. While a time element is semantially correct for the type of content, in the real world it's not adding any semantic value for screen reader output, until we are aware of a real world user use case for this element, lets swap the time element for a span? Shall we write a comment to say that we aren't using the correct semantic element here e.g. time element becauses it results in text splitting on Talkback. Note role text is needed for VoiceOver in iOS. Note my tests where without any CSS (also works fine on Jaws, NVDA and VoiceOver Mac), I will test again once you have made the change. |
const transcriptBlock = getTranscriptBlock(blocks); | ||
const hasTranscript = !!transcriptBlock; | ||
|
||
if (isLite && !hasTranscript) return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To do: add tests & remove comment
Resolves JIRA [number]
Overall changes
Working towards a Transcript first video prototype
Code changes
Note the transcript used in the test asset is still just fixture data and not the final video transcript.
Testing
Light UI
Dark UI
Run locally and visit local fixture data: http://localhost:7080/mundo/articles/ce42wzqr2mko
Once hooked up to back end PR - can visit: http://localhost:7080/mundo/articles/cle16n19nd9o?renderer_env=test
Helpful Links
Screen Reader UX & Designs
A11y AAC & Translations
Coding Standards
Repository use guidelines