Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 801 Bytes

tooltips.md

File metadata and controls

22 lines (13 loc) · 801 Bytes

Tooltips

Tooltips are used to provide additional context or help about an element. They appear when the user hovers over the item with their mouse for a short period o time.

Tooltip

Tooltips are automatically enabled when you use the title attribute with an element. For example:

<button title="More information" />

Guidelines

When to Use Tooltips
  • Don't use tooltips when the context or intent is already clear. For example, a "Print" button doesn't need a tooltip.
  • Use tooltips when iconography is present without corresponding visual text. For example, a warning icon could have a tooltip that indicates that a field is invalid.
Maximum Size

Tooltips should be as short and concise as possible. Keep tooltips to a few words.