Skip to content

feat(LiveAnnouncer): Allow passing HTML for live announcements to enable words in different languages #31835

@lutzjo

Description

@lutzjo

Feature Description

When using the CDK LiveAnnouncer the global language of the website is used for all announcements. Currently there is no way to correctly flag foreign-language words or sentences in announcement with their correct language for a correct screen reader pronunciation.
By allowing passing HTML it would be possible to markup the different language as needed.

Use Case

Announcements containing certain foreign-language words or sentences.

  • Those might come from subject-specific terminology.
  • Or because a message in a multilingual page has no translation for the current user language.
  • Or because a user entered something in a different language that now needs to be announced.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/a11yfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions