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

fix(icon): remove default <title> #1166

Merged
merged 1 commit into from Jan 17, 2023
Merged

fix(icon): remove default <title> #1166

merged 1 commit into from Jan 17, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Jan 17, 2023

Most Ionicons SVGs contain a <title> element embedded in the SVG data. The contents of these titles are usually autogenerated (ex: <title>ionicons-v5-a</title>) and as a result are not helpful to users consuming a site that display ionicons.

This behavior also prevents developers from being able to specify custom title attributes.

resolves #1082, resolves #1049, resolves #838

This PR removes the <title> tags from the SVG sources. As a result, developers will now be able to provide a title on the ion-icon:

<ion-icon name="add" title="Add a recipe"></ion-icon>

Hovering over the icon will display a tooltip that reads "Add a recipe".


This is not considered a breaking change as the existing behavior is not correct. However, we are going to ship this in a minor release to minimize any unforeseen disruptions with this change.

@liamdebeasi liamdebeasi requested a review from a team January 17, 2023 16:34
Copy link
Contributor

@amandaejohnston amandaejohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full disclosure that I just skimmed this, what with the 1k+ files changed, but I trust you 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants