-
Notifications
You must be signed in to change notification settings - Fork 159
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
Component: CTA - Screen reader - Play icon information on card is not read for screen reader user. #2728
Comments
@Praveen-sr Adding copy such as 'plays video' is challenging since this would need to be translated, and not enforceable by us since we can't control what copy is used for the link. This is the same issue for all links that play video or open the url in a new page/tab. Maybe one solution would be to provide an |
@kennylam Aria label can be used if there is an interactive element like a link or a button. Because Screen reader generally do not pick the aria label on non-interactive elements. If it is an image tag, providing alt text for the image would be a better solution. |
@Praveen-sr I was talking more about putting the @jeffchew @ljcarot @andysherman2121 Thoughts? |
@kennylam I agree, this is definitely the best solution I can think of. This would give the user the ability to change the prop to whatever language they want. So we don't have to handle any of the translation |
@RobertaJHahn moving this out to the next release. cc: @andysherman2121 |
### Related Ticket(s) #2728 #2384 #4142 #4060 ### Description Added an `aria-label` to inform screen reader users the CTA about the type of link they are focused on, such as `external`, `video`, or `download`. The default label is provided in English by default, but the message can be a custom translation that is passed in using the `ariaLabel` prop by adopters. This PR also changes the `role` of LinkList to `listitem` with the use of a custom `ariaRole` prop to specify different roles depending on the use within components. ### Changelog **New** - added `ariaLabel` to `CTA` component for adopters to customize the message in a different language - added `ariaProp` to `CTA` component to set a custom role depending on the use in other components **Changed** - `aria-label` message for CTA Text and Card - set `role='listitem` in `LinkList` <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
…ystem#5096) ### Related Ticket(s) carbon-design-system#2728 carbon-design-system#2384 carbon-design-system#4142 carbon-design-system#4060 ### Description Added an `aria-label` to inform screen reader users the CTA about the type of link they are focused on, such as `external`, `video`, or `download`. The default label is provided in English by default, but the message can be a custom translation that is passed in using the `ariaLabel` prop by adopters. This PR also changes the `role` of LinkList to `listitem` with the use of a custom `ariaRole` prop to specify different roles depending on the use within components. ### Changelog **New** - added `ariaLabel` to `CTA` component for adopters to customize the message in a different language - added `ariaProp` to `CTA` component to set a custom role depending on the use in other components **Changed** - `aria-label` message for CTA Text and Card - set `role='listitem` in `LinkList` <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Detailed description
Issue :- Visually there is a play icon present near the link indicating this link opens a video. But the same info is not available for the screen reader user.
Expected :-
Convey the same info for the screen reader user as well. This can be done by adding the text "plays video" along with the link text /label.
The text was updated successfully, but these errors were encountered: