Skip to content

Commit

Permalink
chore: Update documentation on the title attribute (#1118)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Smedinga <[email protected]>
  • Loading branch information
alimpens and VincentSmedinga authored Mar 8, 2024
1 parent 0eb305f commit d8b3587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storybook/src/docs/interactive-elements.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ We use the cursor hand `pointer` on hover on all interactive elements without cu
Originally, `pointer` was only intended for links, but we consider the association of `pointer` with interactivity to be so strong that we use this cursor more often.

Do not use the `title` attribute.
Interactive elements with the `title` attribute may show a tooltip overlaying the text, making it less readable.
This attribute has inconsistent browser support, which can cause [accessibility issues](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title#accessibility_concerns).
Furthermore, interactive elements with the `title` attribute may show a tooltip overlaying the text, making it less readable.

### References

Expand Down

0 comments on commit d8b3587

Please sign in to comment.