-
Notifications
You must be signed in to change notification settings - Fork 20
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
plasma-icons: Handle all sizes [React] #1258
Conversation
Theme Builder app deployed! https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1258/ |
Documentation preview deployed! website:https://plasma.sberdevices.ru/pr/pr-1258/ |
f26b4cb
to
d9464cd
Compare
⚡ Component performance testingResult: 🟢 OK |
⚡ Component performance testingResult: 🟢 OK |
React
IconDone
Before/After
New-hope
color
вIconRoot
(теперьvar(--text-primary)
)var(--text-primary)
What/why changed
Ранее система координат и область просмотра у всех иконок была одинаковая -
viewBox="0 0 24 24"
Теперь под каждый размер есть свой иконка со своим viewBox.
Пример с canary версией
IconDone
Так как у иконок теперь есть физический размер (viewBox) 16х16 часть snapshots нужно было переснять.
Bundle before
Bundle after
📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via: