-
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
fix(Footer): fix design review notes #4627
Conversation
BlackySoul
commented
Mar 28, 2023
- fix [Bug]: Привести компонент Footer в соответствие с дизайном #3695
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. Latest deployment of this branch, based on commit c034fbf:
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #4627 +/- ##
===========================================
- Coverage 81.70% 54.16% -27.55%
===========================================
Files 339 335 -4
Lines 8835 6526 -2309
Branches 2942 1848 -1094
===========================================
- Hits 7219 3535 -3684
- Misses 1616 2991 +1375
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
size-limit report 📦
|
👀 Styleguide deployedSee the styleguide for this PR at https://vkcom.github.io/VKUI/pull/4627/ |
export type FooterProps = React.AllHTMLAttributes<HTMLElement> & HasComponent; | ||
export type FooterProps = React.AllHTMLAttributes<HTMLElement> & | ||
HasComponent & { | ||
mode?: 'group' | 'list' | 'loader'; |
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.
group
и list
это ассоциации с названиями компонентов? ты если использую внутри Group, то надо передать mode="group"
и т.д.?
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.
Вроде бы логика такая, да х)
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.
Вот так может попробовать?
.Footer {
--vkui_internal--footer_padding: 24px var(--vkui--size_base_padding_horizontal--regular);
padding: var(--vkui_internal--footer_padding);
/* TODO v6: переделать в List на padding */
margin: var(--vkui_internal--footer_margin);
text-align: var(--vkui_internal--footer_text-align, center);
}
.Group {
--vkui_internal--footer_padding: 4px var(--vkui--size_base_padding_horizontal--regular) 0;
--vkui_internal--footer_text-align: left;
}
.List {
--vkui_internal--footer_padding: 0;
/* TODO v6: переделать в List на padding */
--vkui_internal--footer_margin: 24px var(--vkui--size_base_padding_horizontal--regular);
}
743d2ca
to
c034fbf
Compare
export type FooterProps = React.AllHTMLAttributes<HTMLElement> & | ||
HasComponent & { | ||
mode?: 'group' | 'list' | 'loader'; |
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.
Может, заодно с type на interface переделаем, раз появилось свое свойство?
export type FooterProps = React.AllHTMLAttributes<HTMLElement> & | |
HasComponent & { | |
mode?: 'group' | 'list' | 'loader'; | |
export interface FooterProps extends React.AllHTMLAttributes<HTMLElement>, HasComponent { | |
mode?: 'group' | 'list' | 'loader'; | |
} |
PR закрыт из-за отсутствия активности в течение последних 14 дней. Если это произошло по ошибке или изменения все ещё актуальны, откройте PR повторно. |
PR закрыт из-за отсутствия активности в течение последних 14 дней. Если это произошло по ошибке или изменения все ещё актуальны, откройте PR повторно. |