Skip to content

Commit

Permalink
Move hardcoded opacity value in .btn:disabled to variable `$btn-dis…
Browse files Browse the repository at this point in the history
…abled-opacity` (#24680)
  • Loading branch information
pat270 authored and mdo committed Nov 6, 2017
1 parent 1524837 commit e2c15da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// Disabled comes first so active can properly restyle
&.disabled,
&:disabled {
opacity: .65;
opacity: $btn-disabled-opacity;
@include box-shadow(none);
}

Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ $btn-font-weight: $font-weight-normal !default;
$btn-box-shadow: inset 0 1px 0 rgba($white, .15), 0 1px 1px rgba($black, .075) !default;
$btn-focus-width: $input-btn-focus-width !default;
$btn-focus-box-shadow: $input-btn-focus-box-shadow !default;
$btn-disabled-opacity: .65 !default;
$btn-active-box-shadow: inset 0 3px 5px rgba($black, .125) !default;

$btn-link-disabled-color: $gray-600 !default;
Expand Down

0 comments on commit e2c15da

Please sign in to comment.