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): fix icon normalization to handle x-times-named icons #6422

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Feb 4, 2023

Related Issue: #6272

Summary

This fixes an issue where our icon names weren't mapped correctly to some newly added icons (e.g., 1x, 1-8x).

@jcfranco jcfranco requested a review from a team as a code owner February 4, 2023 02:23
@jcfranco jcfranco requested a review from benelan February 4, 2023 02:24
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Feb 4, 2023
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Feb 4, 2023
const firstNonDigitInPartPattern = /[a-z]/i;

name = name
.split("-")
Copy link
Member

Choose a reason for hiding this comment

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

We also already split name into parts on line 66, so we can use that here instead of splitting again?

Copy link
Member Author

Choose a reason for hiding this comment

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

Doh! Excellent catch! Fixing!

@jcfranco jcfranco merged commit f3dd490 into master Feb 6, 2023
@jcfranco jcfranco deleted the jcfranco/6272-properly-handle-x-times-named-icons branch February 6, 2023 18:21
benelan added a commit that referenced this pull request Feb 8, 2023
…c-rulez

* origin/master:
  docs: update component READMEs (#6352)
  ci(next): fix commit message (#6425)
  fix(vite): resolve lazying loading error in dist build (#6436)
  docs(changelog): remove reverted feature (#6435)
  revert: "feat(pagination, split-button, dropdown, date-picker) action-group): add setFocus method (#6405)" (#6426)
  1.1.0-next.2
  docs(segmented-control): update event description for calciteSegmentedControlChange (#6428)
  fix(tree-item): reverses regression to bring back focus when navigating with keyboard (#6424)
  fix(icon): fix icon normalization to handle x-times-named icons (#6422)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants