Skip to content

Commit 7591c1b

Browse files
khiga8lindseywild
andauthored
Update docs/rules/accessibility/no-title-attribute-counter.md
Co-authored-by: Lindsey Wild <[email protected]>
1 parent e4e8c85 commit 7591c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/accessibility/no-title-attribute-counter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The `title` attribute is strongly discouraged. The only exception is on an `<ifr
66

77
The `title` attribute is commonly seen set on links, matching the link text. This is redundant and unnecessary so it can be simply be removed.
88

9-
If you are considering `title` attribute to provide supplementary description, consider whether the text in question can be persisted in the design. Alternatively, if it's important to display supplementary text that is hidden by default, consider using an **accessible** tooltip implementation that uses the `aria-labelledby` or `aria-describedby` semantics. Even so, proceed with caution: tooltips should only be used on interactive elements like links or buttons.
9+
If you are considering the`title` attribute to provide supplementary description, consider whether the text in question can be persisted in the design. Alternatively, if it's important to display supplementary text that is hidden by default, consider using an **accessible** tooltip implementation that uses the `aria-labelledby` or `aria-describedby` semantics. Even so, proceed with caution: tooltips should only be used on interactive elements like links or buttons.
1010

1111
### Should I use the `title` attribute to provide an accessible name for an `<svg>`?
1212

0 commit comments

Comments
 (0)