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.

$input-btn-* overrides doesn't work using SCSS

See original GitHub issue

There are several $input-btn-* variables that are used by both $input-* and $btn-* counterparts like this:

$input-btn-focus-box-shadow:  0 0 0 $input-btn-focus-width $input-btn-focus-color !default;
$input-focus-box-shadow:      $input-btn-focus-box-shadow !default;
$btn-focus-box-shadow:        $input-btn-focus-box-shadow !default;

But, when I modify the value of the $-input-btn-* variables it doesn’t affect the $input-* nor the $btn-* counterpart.

I am not that familiar with SCSS, so I can’t see the cause, but this seriously add more complexity to the variables since I have to override all places the $input-btn-* variables are used.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Johann-Scommented, Jun 12, 2018

Hmm ok, maybe @andresgalante or @mdo can confirm that

0reactions
XhmikosRcommented, Jun 23, 2018

!default means you can override it. So you are not doing it properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input type="button" not overriding styles with class, but normal ...
When I use <button type="button" class="orange">Orange button</button> it works fine, but when I use <input type="button" class="orange" value=" ...
Read more >
Overriding Default Button Styles | CSS-Tricks
There are a variety of “buttons” in HTML. You've got: <button>Button</button> <input type="button" value="Button">.
Read more >
Find invalid, overridden, inactive, and other CSS
To get a hint at what goes wrong, open the Computed pane to see the "final" CSS applied to an element and compare...
Read more >
Issue with variable overrides · Issue #43 · twbs/bootstrap-npm ...
Overriding some variable default only affect that variable, and does not affect other variables using that variable.
Read more >
Sass: @use
To load a module with configuration, write @use <url> with (<variable>: <value>, <variable>: <value>) . The configured values will override the variables' ...
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