Open joedolson opened 1 year ago
@joedolson, would screen reader text be a more straightforward solution?
Screen reader text is more straightforward, and has the advantage that it's available when CSS fails. The CSS always annoys me when adding any front-end screen reader text, since you pretty much always have to add potentially duplicate CSS, but :shrug:.
Per the HTML spec and assistive technology behavior, the
aria-label
of an element is announced using the language of thehtml
element, and ignores anylang
attribute defined on the element itself. Because of this, putting the text into anaria-label
attribute can create a language of parts violation.