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 sizing #2037

Merged
merged 12 commits into from
Jul 19, 2023
Merged

fix: icon sizing #2037

merged 12 commits into from
Jul 19, 2023

Conversation

mlogsdon18
Copy link
Contributor

Description

Updates the Icon component (and all affected components) to no longer overwrite scale that is passed in with the icon name. Default icon sizing still exists if a scale is not passed in but an icon name and size is passed (i.e. "ChevronDown" along with a size param). This was the previous behavior. If an icon name is passed in along with the scale (i.e. "ChevronDown100") that scale will be kept and not overwritten. This allows for the few components that utilize different icon sizing than the default.

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.

Regression testing

Validate:

  1. A legacy documentation page (such as accordion), including:
  • The page renders correctly
  • The page is accessible
  • The page is responsive
  1. A migrated documentation page (such as action group), including:
  • The page renders correctly
  • The page is accessible
  • The page is responsive

To-do list

  • I have read the contribution guidelines.

  • I have updated relevant storybook stories and templates.

  • I have tested these changes in Windows High Contrast mode.

  • If my change impacts other components, I have tested to make sure they don't break.

  • If my change impacts documentation, I have updated the documentation accordingly.

  • ✨ This pull request is ready to merge. ✨

@github-actions
Copy link
Contributor

github-actions bot commented Jul 18, 2023

🚀 Deployed on https://pr-2037--spectrum-css.netlify.app

@github-actions github-actions bot temporarily deployed to pull request July 18, 2023 14:40 Inactive
@github-actions github-actions bot temporarily deployed to pull request July 18, 2023 15:35 Inactive
@pfulton pfulton added the run_vrt For use on PRs looking to kick off VRT label Jul 18, 2023
@github-actions github-actions bot removed the run_vrt For use on PRs looking to kick off VRT label Jul 18, 2023
@pfulton pfulton merged commit c90c8a3 into main Jul 19, 2023
4 checks passed
@pfulton pfulton deleted the fix--icon-sizing branch July 19, 2023 13:40
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