ionicons icon indicating copy to clipboard operation
ionicons copied to clipboard

feat: ion-icon: ability to override tooltip

Open cjorasch opened this issue 3 years ago • 0 comments

Prerequisites

Describe the Feature Request

Ionic icons currently render a child <title> element that displays as a tooltip during hover.

There are many cases where the name of the icon is not the same as a meaningful value that should be displayed to the user.

Setting title or using other tooltip approaches results in multiple tips being displayed.

image

Feature request: Allow the user of the component to override (or suppress) the title.

Describe the Use Case

Some use cases include:

  • Icons used to indicate connection state (online / offline)
  • Icons for expanded state (expanded / collapsed)

Describe Preferred Solution

<ion-icon title="My custom title" ... />

Support blank value to prevent title display

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

cjorasch avatar Feb 24 '22 00:02 cjorasch