Skip to content

Ability to set Suggestion's screen reader texts through CSS variables #5298

Description

@unekinn

Description

  • Suggestion has plural (React) / data-sr-plural (HTML) and singular (React) / data-sr-singular (HTML)
  • Suggestion.Toggle has aria-label

All of these get Norwegian text by default and are not visible on screen, so they are easy to miss if you're using a different language.

On the other hand, Suggestion also supports uses CSS variable --dsc-suggestion-create-text instead of data-empty for the text in the creatable option (a visible text), which means consumers can use CSS to select the text based on the lang attribute.

It would be nice if all these were settable in CSS so we could use a similar mechanism for all of them.

This might also apply to other components, I haven't checked thoroughly.

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions