Skip to content

Bug: AriaAlert does not announce RelativeTime content. #5723

Open
@khiga8

Description

@khiga8

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 like relative-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!

Steps to reproduce

  1. Checkout my branch.
  2. Start up storybook.
  3. Go to the AriaAlert relative time storybook example.
  4. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions