-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
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
Disabling box shadows on buttons still renders box-shadows #32032
Comments
We don't use the |
Just use simple class (.shadow-none), like this
|
I was hoping Bootstraps was able to disable box-shadow on buttons when customizing in sass. |
I found the following issue while customizing Bootstrap (version 4.5.3)
When disabling shadows using the following settings, buttons still have a box shadow:
$enable-shadows: false;
$btn-focus-box-shadow: none;
$btn-active-box-shadow: none;
The button mixin has the following code (lines 23-28, 54-59 and 93-98):
As shown in the else-statement a box shadow is still generated.
Suggested change:
Move the box shadow settings to the
_variables.scss
file and apply the variables in the mixin.The forms mixins already has this setup, see example below.
Example from the forms mixin (line 19-24)
The text was updated successfully, but these errors were encountered: