Button shadow is hardcoded
See original GitHub issueWe have 3 variables for button shadow:
- $btn-box-shadow
- $btn-focus-box-shadow
- $btn-active-box-shadow
2 issues here:
- If i set $btn-box-shadow value to “none”, button mixin generates incorrect box-shadow for :focus/.focus states:
box-shadow: none, 0 0 0 3px rgba(244, 67, 54, 0.5);
Same for $btn-focus-box-shadow variable. 2. Seems like i can’t remove 3px shadow in focus/active states as it’s hardcoded in button mixin:
box-shadow: $btn-box-shadow, 0 0 0 3px rgba($border, .5);
Please make it optional.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Shadow DOM in a button - Stack Overflow
Because some elements used Shadow DOM internally (such as video) or planned to (such as input elements) there's a hard-coded restriction that disallows...
Read more >[BUG] Docked Window box-shadow hard-coded, breaks ...
In this example, I've turned off box-shadow for the right-side Docked View. The Label is part of the Docked View and the Button...
Read more >box-shadow - CSS-Tricks
The box-shadow property in CSS is for putting shadows on elements (sometimes referred to as “drop shadows”, ala Photoshop/Figma).
Read more >Please add an Option to toggle Zoom/Ironsight Mode
As the Title says please add an Option to toggle Zoom/Ironsight Mode instead of holding the Button down. Other than that very cool...
Read more >Learn the CSS Box-Shadow Property by Coding a Beautiful ...
Today we're gonna learn how to use CSS's box-shadow property to make beautiful website components. Along the way, we'll create a button and ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

$input-focus-width: 0;might help.I’m using beta2 and I’d like to disable the box-shadow for active buttons (not focus). Since multiple buttons can be active, I find it does not look well in button groups (shadows overlapping) As we can see in the checkbox/radio button doc by checking multiple boxes
The background color would be sufficient for me.
The question is how to disable this shadow ?
I tried simply with:
But this has no effect