-
Notifications
You must be signed in to change notification settings - Fork 186
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(Counter): add prop appearance and change mode values #7919
base: master
Are you sure you want to change the base?
feat(Counter): add prop appearance and change mode values #7919
Conversation
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
e2e tests |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7919 +/- ##
==========================================
- Coverage 95.30% 95.28% -0.02%
==========================================
Files 378 378
Lines 11196 11210 +14
Branches 3735 3740 +5
==========================================
+ Hits 10670 10682 +12
- Misses 526 528 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
👀 Docs deployed
Commit 6b365ba |
Thanks! |
Описание
Расширение функциональности компонента
Counter
путем добавления новых свойств для более гибкой настройки внешнего вида.Изменения
Новые свойства
appearance
для управления цветовой схемой компонентаcolor
для установки пользовательского цвета (работает только приappearance="custom"
)Изменения существующих свойств
Обновлены значения свойства
mode
:Техническая реализация
mode
Counter
Release notes
Улучшения
appearance
, которое отвечает за цветcolor
, с помощью которого можно изменить цвет компонента. Работает только совместно сappearance="custom"
BREAKING CHANGE
mode
Было
'secondary' | 'primary' | 'prominent' | 'contrast' | 'inherit'
Стало
'primary' | 'contrast' | 'tertiary' | 'inherit'
Логика перехода на новые значения:
Таблица миграции значений: