-
Notifications
You must be signed in to change notification settings - Fork 2
[FRNT-536, FRNT-435] Rewrite Button on box model #110
Conversation
6762c05
to
3701b5b
Compare
button { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
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.
Лучше не добавлять глобальные стили, ведь тогда не получится встроить библиотеку компонентов в сущетсвующий проект, ведь можем спокойно получить конфликт стилей
@@ -40,10 +41,11 @@ export const Button = styled(ButtonBase)` | |||
--local-shape-color: var(--woly-shape-default); | |||
--local-border-color: var(--woly-shape-default); | |||
|
|||
${box}; |
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.
Почему бы не удалить переменные local-vertical, gap, compensate из компонента?
@@ -6,6 +6,11 @@ export const Global = styled.div` | |||
font-family: 'Helvetica Neue', sans-serif; | |||
} | |||
|
|||
button { |
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.
а мы здесь будем сброс стилей описывать для компонентов?
); | ||
--local-gap: calc(1px * var(--woly-component-level) * var(--woly-main-level)); | ||
--local-compensate: var(--local-vertical); | ||
& > * { |
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.
мб стоит отступы между блоками делами делать? читать не очень
@@ -40,10 +41,11 @@ export const Button = styled(ButtonBase)` | |||
--local-shape-color: var(--woly-shape-default); | |||
--local-border-color: var(--woly-shape-default); | |||
|
|||
${box}; | |||
|
|||
box-sizing: border-box; | |||
display: flex; |
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.
Мне кажется, было бы хорошо делать примеры с самими мелкими элементами, т.к. они чаще всего будут вложенными и на них будет ломаться box model
Rewrite Button on box model