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 auto-generated aria-label #1170

Merged
merged 3 commits into from
Jan 20, 2023
Merged

Conversation

averyjohnston
Copy link
Contributor

Currently, ion-icon will generate a default aria-label based on the icon name if no label is provided by the developer. However, this default label is often not useful as it doesn't give any info on the context the icon is being used in.

This PR removes the default aria-label logic as well as tests that pertained to it. Note that custom aria-labels are already handled by the inheritAttributes util.

@averyjohnston averyjohnston changed the base branch from main to feature-7.0 January 18, 2023 21:05
@averyjohnston averyjohnston marked this pull request as ready for review January 18, 2023 21:41
@averyjohnston averyjohnston requested a review from a team January 18, 2023 21:41
Copy link
Contributor

@sean-perkins sean-perkins left a comment

Choose a reason for hiding this comment

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

This looks good, great work!

@averyjohnston averyjohnston merged commit 98975ec into feature-7.0 Jan 20, 2023
@averyjohnston averyjohnston deleted the FW-2103 branch January 20, 2023 16:18
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.

2 participants