-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fixes for bs5 sketchy #385
Conversation
3b45c9a
to
a6d38c5
Compare
@@ -159,8 +159,8 @@ select.form-control { | |||
border-radius: $border-radius-lg-sketchy !important; | |||
} | |||
|
|||
[type="checkbox"] { | |||
position: relative !important; | |||
#{$shiny-check} input, #{$shiny-check-inline} input, [type="checkbox"] { |
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.
For reference
bslib/inst/lib/bs5/scss/_forms.scss
Lines 1 to 7 in fff5b6b
$shiny-check: ".shiny-input-container .checkbox"; | |
$shiny-check-inline: $shiny-check + "-inline"; | |
$shiny-radio: ".shiny-input-container .radio"; | |
$shiny-radio-inline: $shiny-radio + "-inline"; | |
$form-check-input-selector: ".form-check-input, " + | |
$shiny-check + " input, " + $shiny-check-inline + " input, " + | |
$shiny-radio + " input, " + $shiny-radio-inline + " input, "; |
[type="radio"] { | ||
position: relative !important; | ||
#{$shiny-radio} input, #{$shiny-radio-inline} input, [type="radio"] { | ||
position: relative; |
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.
For context, the !important
was added by me (for BS4) to fix a similar issue (with Bootstrap's form CSS taking higher priority than these rules). However, now (with BS5) some of the other properties here (most importantly, width
) are also overridden by Bootstrap's form CSS. Instead of adding !important
everywhere, we can leverage the shiny form selector variables that I've already added to BS5 source for BS3 compatibility.
39ca081
to
c99487f
Compare
(Reviewed with @schloerke) |
Closes #382