-
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(Header): rm mode prop and increase size values #7863
feat(Header): rm mode prop and increase size values #7863
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
|
👀 Docs deployed
Commit 1518ddc |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7863 +/- ##
==========================================
- Coverage 95.16% 95.16% -0.01%
==========================================
Files 377 375 -2
Lines 11092 10980 -112
Branches 3687 3641 -46
==========================================
- Hits 10556 10449 -107
+ Misses 536 531 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Вроде всё круто.
Понимаю, что можем растерять некоторые состояние типа серого некапсового текста, но зато чуть систематизируем существующее.
Вкком использует Display Title в двух из трёх своих состояний Adopted компонента. Может, есть смысл добавить для них проп, который переключает шрифт на акцентный?
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.
🔥 🥇
Описание
Необходимо привести компонент
Header
к новому дизайну. А именно избавиться от свойстваmode
и увеличить количество значений свойстваsize
: добавить 's' и 'xl'Изменения
mode
size
значенияs
иxl
mode
Release notes
Улучшения
's'
и'xl'
BREAKING CHANGE
mode
было удалено. Логика удаления свойстваmode
:size="l" mode="primary"
заменяется наsize="xl"
size="m" mode="primary"
заменяется наsize="m"
mode="tertiary"
заменяется наsize="m"
mode="secondary"
заменяется наsize="s"