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

feat(icon): removed all duplicate icon classes #2346

Merged
merged 4 commits into from
Jun 21, 2024
Merged

feat(icon): removed all duplicate icon classes #2346

merged 4 commits into from
Jun 21, 2024

Conversation

agliga
Copy link
Contributor

@agliga agliga commented May 30, 2024

Fixes #2339

  • This PR contains CSS changes
  • This PR does not contain CSS changes

Description

  • Removed all icon--{name} classes
  • Added icon--{size} classes
  • Used generate SVG to do so
  • For colored, used only height which should maintain aspect ratio

note I will do visual regression once we get a thumbs up for this approach

Checklist

  • I verify the build is in a non-broken state

  • I verify all changes are within scope of the linked issue

  • I regenerated all CSS files under dist folder

  • I tested the UI in all supported browsers

  • I did a visual regression check of the components impacted by doing a Percy build and approved the build

  • I tested the UI in dark mode and RTL mode

  • I added/updated/removed Storybook coverage as appropriate

@agliga agliga requested review from ArtBlue and saiponnada May 30, 2024 17:36
@agliga agliga self-assigned this May 30, 2024
Copy link

changeset-bot bot commented May 30, 2024

🦋 Changeset detected

Latest commit: e5f45e4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ebay/skin Major

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

@agliga agliga changed the base branch from master to 18.0.0 May 30, 2024 17:36
@agliga agliga force-pushed the icon-classes branch 2 times, most recently from d547ae8 to 271f4a4 Compare June 5, 2024 23:21
Copy link
Contributor

@ArtBlue ArtBlue left a comment

Choose a reason for hiding this comment

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

Looks good overall, but some stuff...

src/sass/icon/icon.scss Outdated Show resolved Hide resolved
Copy link
Contributor

@ArtBlue ArtBlue left a comment

Choose a reason for hiding this comment

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

Looks good. I found one last issue.

dist/icon/icon.css Show resolved Hide resolved
Copy link
Contributor

@ArtBlue ArtBlue left a comment

Choose a reason for hiding this comment

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

Nice.

@agliga agliga merged commit 9eacce0 into 18.0.0 Jun 21, 2024
2 checks passed
@agliga agliga deleted the icon-classes branch June 21, 2024 19:37
This was referenced Jun 21, 2024
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.

ebay-icon: remove all duplicate classes
2 participants