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

[v4] [icons] feat: add getIconFontCodepoint() API #4999

Merged
merged 4 commits into from
Oct 29, 2021

Conversation

adidahiya
Copy link
Contributor

Changes proposed in this pull request:

It turns out the icon font build pipeline changes made the IconCodepoints API much less usable in v4.0. It now contains the base 10 number representations of the icon codepoints, when what you really need when rendering these strings to the DOM is a base 16 hex code.

This new public API getIconFontCodepoint makes it easy to get the hex code, achieving parity with Blueprint 3.x.

@blueprint-bot
Copy link

fix compilation, add jsdoc

Previews: documentation | landing | table | modern colors demo

@blueprint-bot
Copy link

fix lint

Previews: documentation | landing | table | modern colors demo

@adidahiya adidahiya merged commit 7244616 into next Oct 29, 2021
@adidahiya adidahiya deleted the ad/v4-icon-codepoints-api branch October 29, 2021 21:15
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