-
Notifications
You must be signed in to change notification settings - Fork 201
feat(icon, ui-icons): add missing ui icons and sizing classes #3866
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
feat(icon, ui-icons): add missing ui icons and sizing classes #3866
Conversation
🦋 Changeset detectedLatest commit: 69b8f90 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
File metricsSummaryTotal size: 1.42 MB*
File change detailsicon
ui-icons
* An ASCII character in UTF-8 is 8 bits or 1 byte. |
🚀 Deployed on https://pr-3866--spectrum-css.netlify.app |
42d4e2c
to
38d28cd
Compare
return workflowIconsCleaned.sort().map((iconName) => IconWithLabelTemplate({ ...args, iconName }, context)); | ||
return workflowIconsCleaned.map((iconName) => IconWithLabelTemplate({ ...args, iconName }, context)); | ||
}, () => { | ||
return uiIconsWithDirections.sort().map((iconName) => IconWithLabelTemplate({ ...args, uiIconName: iconName }, context)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe these two were already being sorted in a way that separates the icon name and numerical size (in components/icon/stories/utilities.js
), so adding .sort()
here was reverting the sorted icons list back to ASCII order (so that Add100
appears before Add50
, for instance).
.changeset/upset-roses-live.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we haven't done releases for ui-icons
or icon
yet so the original changesets are still hanging out, if it's better to update those changesets instead of adding a new one, I'm happy to do that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran through validation steps and everything looks good!✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
38d28cd
to
69b8f90
Compare
Description
Newly added S2 UI icons did not yet have tokens available for their sizes (that define width/height for both platform scales). This work adds these icons back (they had previously been added in a commit on #3001) and adds the tokens to their respective CSS classes now that they are available.
The tokens added here are:
NOTE: It appears that link-out-icon-size-75 is missing from this list and should have been included (it's needed for the small sized menu linkout). It does not appear to be in the same a4u package that the other UI icons came from (even on the latest version), so it may need to be added. A follow-up ticket has been created for this work and linked to the appropriate existing follow-up tickets for the menu component's S2 migration, see CSS-1221.
CSS-1194
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
ui-icons
package (use the "Display the source diff" option) are the inverse of the commit where they were removed. (The changeset is different, however; I've created a new changeset forui-icons
for this work.) [@cdransf]yarn nx reset
beforeyarn install
andyarn start
to ensure that icons rebuild properly. [@cdransf]--spectrum-add-icon-size-50
,--spectrum-add-icon-size-75
, etc.). You can also compare this to the S2 token spec (on the "S2 Foundational tokens" page) to confirm that the sizes for medium/large contexts are rendering appropriately. [@cdransf]Regression testing
Validate:
Screenshots
To-do list