Skip to content

Commit

Permalink
fix(card): voiceover now only reads heading (carbon-design-system#4870)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

carbon-design-system#4062

### Description

This PR makes screen readers read **only** the heading content of the card, ignoring the eyebrow and CTA text.

### Changelog

**Changed**

- added `aria-hidden='true'` to eyebrow and CTA text of Card component

<!-- 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) -->
  • Loading branch information
IgnacioBecerra committed Feb 22, 2021
1 parent 4b63c5b commit 1176e94
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 5 deletions.
Loading

0 comments on commit 1176e94

Please sign in to comment.