mirror of
https://github.com/bitwarden/browser
synced 2026-02-28 18:43:26 +00:00
[CL-910] Use tooltip in title directive (#17084)
* use tooltip in a11y directive
* remove commented code
* add deprecation warning to appA11yTitle directive
* use label for tooltip in carousel nav
* wait for timeout before assertion
* remove unnecessary title directive use
* fix private variable lint errors
* increase tooltip show delay
* fix spec delay and export as constant
* use delay constant
---------
Co-authored-by: Vicki League <vleague@bitwarden.com>
(cherry picked from commit 963a9156fb)
This commit is contained in:
committed by
Bryan Cunningham
parent
fc63c0c2cf
commit
3a802f99a3
@@ -81,10 +81,5 @@ with less padding around the icon, such as in the navigation component.
|
||||
|
||||
Follow guidelines outlined in the [Button docs](?path=/docs/component-library-button--doc)
|
||||
|
||||
Always use the `appA11yTitle` directive set to a string that describes the action of the
|
||||
icon-button. This will auto assign the same string to the `title` and `aria-label` attributes.
|
||||
|
||||
`aria-label` allows assistive technology to announce the action the button takes to the users.
|
||||
|
||||
`title` attribute provides a user with the browser tool tip if they do not understand what the icon
|
||||
is indicating.
|
||||
label input will be used to set the `aria-label` attributes on the button. This is for accessibility
|
||||
purposes, as it provides a text alternative for the icon button.
|
||||
|
||||
Reference in New Issue
Block a user