Skip to content
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

Draft
wants to merge 36 commits into
base: latest
Choose a base branch
from
Draft

Transcript Front End #11707

wants to merge 36 commits into from

Conversation

Isabella-Mitchell
Copy link
Contributor

@Isabella-Mitchell Isabella-Mitchell commented Jun 7, 2024

Resolves JIRA [number]

Overall changes

Working towards a Transcript first video prototype

Code changes

  • to be combined with a backend PR (local fixture data being used temporarily)
  • Transcript component (in progress)
  • Media Player UI updates being handled in seperate PRs

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

Copy link

@greenc05 greenc05 left a 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.

src/app/components/Transcript/index.tsx Outdated Show resolved Hide resolved
src/app/components/Transcript/index.tsx Outdated Show resolved Hide resolved
src/app/components/Transcript/index.tsx Outdated Show resolved Hide resolved
src/app/components/Transcript/index.styles.tsx Outdated Show resolved Hide resolved
@Isabella-Mitchell Isabella-Mitchell changed the title Transcript Front End: Initial commit Transcript Front End Aug 30, 2024
@greenc05
Copy link

greenc05 commented Oct 1, 2024

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;
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants