ionicons
ionicons copied to clipboard
feat: ion-icon: ability to override tooltip
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already include this feature request, without success.
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.

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