question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Button shadow is hardcoded

See original GitHub issue

We have 3 variables for button shadow:

  • $btn-box-shadow
  • $btn-focus-box-shadow
  • $btn-active-box-shadow

2 issues here:

  1. 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:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
manavm1990commented, Apr 23, 2018

$input-focus-width: 0; might help.

3reactions
Glidehcommented, Dec 28, 2017

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 screenshot from 2017-12-28 10-58-46 The background color would be sufficient for me. The question is how to disable this shadow ? I tried simply with:

$btn-active-box-shadow: none;

But this has no effect

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found