-
Notifications
You must be signed in to change notification settings - Fork 90
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(NcCheckboxRadioSwitch): adjust to new design #5923
Conversation
Signed-off-by: Marco Ambrosini <[email protected]>
Signed-off-by: Marco Ambrosini <[email protected]>
@ reviewers the switch component is still 44px tall and I can't find out why.. .Do you have any ideas? |
// keep inner border width in mind | ||
$border-radius-outer: calc($border-radius + 2px); | ||
|
||
&--button-variant.checkbox-radio-switch { | ||
background-color: var(--color-main-background); | ||
border: 2px solid var(--color-border-maxcontrast); | ||
border: 1px solid var(--color-border-maxcontrast); |
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.
Use the variable with fallback instead
@@ -682,13 +682,13 @@ export default { | |||
color: var(--color-primary-element-light); | |||
} | |||
|
|||
$border-radius: calc(var(--default-clickable-area) / 2); | |||
$border-radius: var(--border-radius-element); |
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.
Missing fallback
@@ -198,7 +198,7 @@ export default { | |||
gap: 4px; | |||
user-select: none; | |||
min-height: var(--default-clickable-area); | |||
border-radius: var(--default-clickable-area); | |||
border-radius: var(--border-radius-element); |
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.
Missing fallback
Sorry, I forgot about this PR when did #5974 But border width change is still actual, I only fixed border-radius |
🖼️ Screenshots
Fixes #5875