Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ion-icon: ability to override tooltip #1049

Closed
3 tasks done
cjorasch opened this issue Feb 24, 2022 · 1 comment
Closed
3 tasks done

feat: ion-icon: ability to override tooltip #1049

cjorasch opened this issue Feb 24, 2022 · 1 comment
Labels
type: feature request A request to add new functionality

Comments

@cjorasch
Copy link

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

@ionitron-bot ionitron-bot bot added the triage New issues label Feb 24, 2022
@liamdebeasi liamdebeasi transferred this issue from ionic-team/ionic-framework Feb 24, 2022
@brandyscarney brandyscarney added type: feature request A request to add new functionality and removed triage New issues labels Sep 27, 2022
liamdebeasi added a commit that referenced this issue Jan 17, 2023
@liamdebeasi
Copy link
Contributor

Thanks for the report. This has been resolved via #1166 and a fix will be available in Ionicons 6.1. In this release, developers will be able to set a custom title attribute on ion-icon. This title will be shown in a tooltip when hovering the icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request A request to add new functionality
Projects
None yet
Development

No branches or pull requests

3 participants