Open
Description
Description
AriaAlert
fails to announce RelativeTime
content.
Related: https://github.com/github/accessibility-audits/issues/10539
Questions:
- Should AriaAlert be able to wrap and announce any content? Or should this only be used to wrap simple text content?
- It may add a lot of complexity to try to get
AriaAlert
to handle custom elements likerelative-time
, or handle ARIA semantics correctly. - For example, if
AriaAlert
wraps content containing<p aria-hidden="true">Don't announce this</p>
, should this aria-hidden content be announced? - I think whichever we land on is fine, as long as we document limitations/expectations!
- It may add a lot of complexity to try to get
Steps to reproduce
- Checkout my branch.
- Start up storybook.
- Go to the AriaAlert relative time storybook example.
- Navigate example with screen reader (e.g. VoiceOver, NVDA) and observe that relative time content is skipped in the screen reader announcement.
Version
v.35.2.0
Browser
No response