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

[core] fix(Icon): accept standard HTML attributes #4556

Merged
merged 2 commits into from
Mar 3, 2021
Merged

[core] fix(Icon): accept standard HTML attributes #4556

merged 2 commits into from
Mar 3, 2021

Conversation

ChristianIvicevic
Copy link
Contributor

Fixes #4500

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

This PR adds standard default HTML attributes to the core Icon component. The motivation was the inability to set a role for icons and with the proposed solution in the linked issue this is now possible.

Reviewers should focus on:

Unfortunately the IIconProps type already declares a title property which collides with the definition in HTMLAttributes due to deviating types. In order to prevent issue in the HTMLSelect component I decided to omit the latter. This fix is open for dicussion.

@adidahiya adidahiya changed the title fix(core): add standard html attributes to Icon component [core] fix(Icon): accept standard HTML attributes Mar 3, 2021
@adidahiya adidahiya merged commit 78a450e into palantir:develop Mar 3, 2021
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.

Icon component cannot accept ARIA role prop
2 participants