Should we use aria-label or title attributes to label things?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Different interfaces throughout the OPAC and Staff client label inputs and other UI elements using either the title attribute or the aria-label property. I think we should choose one and stick with it, and be able to provide that guidance to developers.
I've been more favorable to aria-label, because of title's history/reputation of not being treated consistently on different assistive technologies (see https:/
And of course, having a visible <label> is the best solution, when possible.
There are cases where having the tooltip generated by a title attribute is helpful, especially when describing icons, buttons, etc. that don't have visible text. As I understand it, making aria-label's do the same thing would require some additional CSS.