Skip to content

Commit

Permalink
lux: fix disabled btn-outline-secondary color in v5 #1307
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspark committed Jul 17, 2024
1 parent 896463e commit 2fca8f5
Show file tree
Hide file tree
Showing 16 changed files with 100 additions and 70 deletions.
7 changes: 7 additions & 0 deletions dist/lux/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;3
color: $gray-600;
border-color: $gray-600;

&.disabled,
&:disabled,
fieldset:disabled & {
color: $gray-600;
border-color: $gray-600;
}

&:not([disabled]):not(.disabled):hover,
&:not([disabled]):not(.disabled):focus,
&:not([disabled]):not(.disabled):active {
Expand Down
2 changes: 1 addition & 1 deletion dist/lux/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $danger: $red !default;
$light: $white !default;
$dark: $gray-800 !default;

$min-contrast-ratio: 2.3 !default;
$min-contrast-ratio: 1.9 !default;

// Options

Expand Down
34 changes: 19 additions & 15 deletions dist/lux/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -3081,18 +3081,18 @@ textarea.form-control-lg {
}

.btn-warning {
--bs-btn-color: #000;
--bs-btn-color: #fff;
--bs-btn-bg: #f0ad4e;
--bs-btn-border-color: #f0ad4e;
--bs-btn-hover-color: #000;
--bs-btn-hover-bg: #f2b969;
--bs-btn-hover-border-color: #f2b560;
--bs-btn-focus-shadow-rgb: 204, 147, 66;
--bs-btn-active-color: #000;
--bs-btn-active-bg: #f3bd71;
--bs-btn-active-border-color: #f2b560;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #cc9342;
--bs-btn-hover-border-color: #c08a3e;
--bs-btn-focus-shadow-rgb: 242, 185, 105;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #c08a3e;
--bs-btn-active-border-color: #b4823b;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
--bs-btn-disabled-color: #000;
--bs-btn-disabled-color: #fff;
--bs-btn-disabled-bg: #f0ad4e;
--bs-btn-disabled-border-color: #f0ad4e;
}
Expand Down Expand Up @@ -3219,11 +3219,11 @@ textarea.form-control-lg {
.btn-outline-warning {
--bs-btn-color: #f0ad4e;
--bs-btn-border-color: #f0ad4e;
--bs-btn-hover-color: #000;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #f0ad4e;
--bs-btn-hover-border-color: #f0ad4e;
--bs-btn-focus-shadow-rgb: 240, 173, 78;
--bs-btn-active-color: #000;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #f0ad4e;
--bs-btn-active-border-color: #f0ad4e;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
Expand Down Expand Up @@ -6588,7 +6588,7 @@ textarea.form-control-lg {
}

.text-bg-warning {
color: #000 !important;
color: #fff !important;
background-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;
}

Expand Down Expand Up @@ -6657,9 +6657,9 @@ textarea.form-control-lg {
text-decoration-color: RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important;
}
.link-warning:hover, .link-warning:focus {
color: RGBA(243, 189, 113, var(--bs-link-opacity, 1)) !important;
-webkit-text-decoration-color: RGBA(243, 189, 113, var(--bs-link-underline-opacity, 1)) !important;
text-decoration-color: RGBA(243, 189, 113, var(--bs-link-underline-opacity, 1)) !important;
color: RGBA(192, 138, 62, var(--bs-link-opacity, 1)) !important;
-webkit-text-decoration-color: RGBA(192, 138, 62, var(--bs-link-underline-opacity, 1)) !important;
text-decoration-color: RGBA(192, 138, 62, var(--bs-link-underline-opacity, 1)) !important;
}

.link-danger {
Expand Down Expand Up @@ -11822,6 +11822,10 @@ textarea.form-control-lg {
color: #919aa1;
border-color: #919aa1;
}
.btn-outline-secondary.disabled, .btn-outline-secondary:disabled, fieldset:disabled .btn-outline-secondary {
color: #919aa1;
border-color: #919aa1;
}
.btn-outline-secondary:not([disabled]):not(.disabled):hover, .btn-outline-secondary:not([disabled]):not(.disabled):focus, .btn-outline-secondary:not([disabled]):not(.disabled):active {
color: #fff;
background-color: #ced4da;
Expand Down
2 changes: 1 addition & 1 deletion dist/lux/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lux/bootstrap.min.css.map

Large diffs are not rendered by default.

34 changes: 19 additions & 15 deletions dist/lux/bootstrap.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3079,18 +3079,18 @@ textarea.form-control-lg {
}

.btn-warning {
--bs-btn-color: #000;
--bs-btn-color: #fff;
--bs-btn-bg: #f0ad4e;
--bs-btn-border-color: #f0ad4e;
--bs-btn-hover-color: #000;
--bs-btn-hover-bg: #f2b969;
--bs-btn-hover-border-color: #f2b560;
--bs-btn-focus-shadow-rgb: 204, 147, 66;
--bs-btn-active-color: #000;
--bs-btn-active-bg: #f3bd71;
--bs-btn-active-border-color: #f2b560;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #cc9342;
--bs-btn-hover-border-color: #c08a3e;
--bs-btn-focus-shadow-rgb: 242, 185, 105;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #c08a3e;
--bs-btn-active-border-color: #b4823b;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
--bs-btn-disabled-color: #000;
--bs-btn-disabled-color: #fff;
--bs-btn-disabled-bg: #f0ad4e;
--bs-btn-disabled-border-color: #f0ad4e;
}
Expand Down Expand Up @@ -3217,11 +3217,11 @@ textarea.form-control-lg {
.btn-outline-warning {
--bs-btn-color: #f0ad4e;
--bs-btn-border-color: #f0ad4e;
--bs-btn-hover-color: #000;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #f0ad4e;
--bs-btn-hover-border-color: #f0ad4e;
--bs-btn-focus-shadow-rgb: 240, 173, 78;
--bs-btn-active-color: #000;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #f0ad4e;
--bs-btn-active-border-color: #f0ad4e;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
Expand Down Expand Up @@ -6570,7 +6570,7 @@ textarea.form-control-lg {
}

.text-bg-warning {
color: #000 !important;
color: #fff !important;
background-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;
}

Expand Down Expand Up @@ -6639,9 +6639,9 @@ textarea.form-control-lg {
text-decoration-color: RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important;
}
.link-warning:hover, .link-warning:focus {
color: RGBA(243, 189, 113, var(--bs-link-opacity, 1)) !important;
-webkit-text-decoration-color: RGBA(243, 189, 113, var(--bs-link-underline-opacity, 1)) !important;
text-decoration-color: RGBA(243, 189, 113, var(--bs-link-underline-opacity, 1)) !important;
color: RGBA(192, 138, 62, var(--bs-link-opacity, 1)) !important;
-webkit-text-decoration-color: RGBA(192, 138, 62, var(--bs-link-underline-opacity, 1)) !important;
text-decoration-color: RGBA(192, 138, 62, var(--bs-link-underline-opacity, 1)) !important;
}

.link-danger {
Expand Down Expand Up @@ -11796,6 +11796,10 @@ textarea.form-control-lg {
color: #919aa1;
border-color: #919aa1;
}
.btn-outline-secondary.disabled, .btn-outline-secondary:disabled, fieldset:disabled .btn-outline-secondary {
color: #919aa1;
border-color: #919aa1;
}
.btn-outline-secondary:not([disabled]):not(.disabled):hover, .btn-outline-secondary:not([disabled]):not(.disabled):focus, .btn-outline-secondary:not([disabled]):not(.disabled):active {
color: #fff;
background-color: #ced4da;
Expand Down
2 changes: 1 addition & 1 deletion dist/lux/bootstrap.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lux/bootstrap.rtl.min.css.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/5/lux/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;3
color: $gray-600;
border-color: $gray-600;

&.disabled,
&:disabled,
fieldset:disabled & {
color: $gray-600;
border-color: $gray-600;
}

&:not([disabled]):not(.disabled):hover,
&:not([disabled]):not(.disabled):focus,
&:not([disabled]):not(.disabled):active {
Expand Down
2 changes: 1 addition & 1 deletion docs/5/lux/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $danger: $red !default;
$light: $white !default;
$dark: $gray-800 !default;

$min-contrast-ratio: 2.3 !default;
$min-contrast-ratio: 1.9 !default;

// Options

Expand Down
34 changes: 19 additions & 15 deletions docs/5/lux/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -3081,18 +3081,18 @@ textarea.form-control-lg {
}

.btn-warning {
--bs-btn-color: #000;
--bs-btn-color: #fff;
--bs-btn-bg: #f0ad4e;
--bs-btn-border-color: #f0ad4e;
--bs-btn-hover-color: #000;
--bs-btn-hover-bg: #f2b969;
--bs-btn-hover-border-color: #f2b560;
--bs-btn-focus-shadow-rgb: 204, 147, 66;
--bs-btn-active-color: #000;
--bs-btn-active-bg: #f3bd71;
--bs-btn-active-border-color: #f2b560;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #cc9342;
--bs-btn-hover-border-color: #c08a3e;
--bs-btn-focus-shadow-rgb: 242, 185, 105;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #c08a3e;
--bs-btn-active-border-color: #b4823b;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
--bs-btn-disabled-color: #000;
--bs-btn-disabled-color: #fff;
--bs-btn-disabled-bg: #f0ad4e;
--bs-btn-disabled-border-color: #f0ad4e;
}
Expand Down Expand Up @@ -3219,11 +3219,11 @@ textarea.form-control-lg {
.btn-outline-warning {
--bs-btn-color: #f0ad4e;
--bs-btn-border-color: #f0ad4e;
--bs-btn-hover-color: #000;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #f0ad4e;
--bs-btn-hover-border-color: #f0ad4e;
--bs-btn-focus-shadow-rgb: 240, 173, 78;
--bs-btn-active-color: #000;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #f0ad4e;
--bs-btn-active-border-color: #f0ad4e;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
Expand Down Expand Up @@ -6588,7 +6588,7 @@ textarea.form-control-lg {
}

.text-bg-warning {
color: #000 !important;
color: #fff !important;
background-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;
}

Expand Down Expand Up @@ -6657,9 +6657,9 @@ textarea.form-control-lg {
text-decoration-color: RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important;
}
.link-warning:hover, .link-warning:focus {
color: RGBA(243, 189, 113, var(--bs-link-opacity, 1)) !important;
-webkit-text-decoration-color: RGBA(243, 189, 113, var(--bs-link-underline-opacity, 1)) !important;
text-decoration-color: RGBA(243, 189, 113, var(--bs-link-underline-opacity, 1)) !important;
color: RGBA(192, 138, 62, var(--bs-link-opacity, 1)) !important;
-webkit-text-decoration-color: RGBA(192, 138, 62, var(--bs-link-underline-opacity, 1)) !important;
text-decoration-color: RGBA(192, 138, 62, var(--bs-link-underline-opacity, 1)) !important;
}

.link-danger {
Expand Down Expand Up @@ -11822,6 +11822,10 @@ textarea.form-control-lg {
color: #919aa1;
border-color: #919aa1;
}
.btn-outline-secondary.disabled, .btn-outline-secondary:disabled, fieldset:disabled .btn-outline-secondary {
color: #919aa1;
border-color: #919aa1;
}
.btn-outline-secondary:not([disabled]):not(.disabled):hover, .btn-outline-secondary:not([disabled]):not(.disabled):focus, .btn-outline-secondary:not([disabled]):not(.disabled):active {
color: #fff;
background-color: #ced4da;
Expand Down
2 changes: 1 addition & 1 deletion docs/5/lux/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/5/lux/bootstrap.min.css.map

Large diffs are not rendered by default.

34 changes: 19 additions & 15 deletions docs/5/lux/bootstrap.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3079,18 +3079,18 @@ textarea.form-control-lg {
}

.btn-warning {
--bs-btn-color: #000;
--bs-btn-color: #fff;
--bs-btn-bg: #f0ad4e;
--bs-btn-border-color: #f0ad4e;
--bs-btn-hover-color: #000;
--bs-btn-hover-bg: #f2b969;
--bs-btn-hover-border-color: #f2b560;
--bs-btn-focus-shadow-rgb: 204, 147, 66;
--bs-btn-active-color: #000;
--bs-btn-active-bg: #f3bd71;
--bs-btn-active-border-color: #f2b560;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #cc9342;
--bs-btn-hover-border-color: #c08a3e;
--bs-btn-focus-shadow-rgb: 242, 185, 105;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #c08a3e;
--bs-btn-active-border-color: #b4823b;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
--bs-btn-disabled-color: #000;
--bs-btn-disabled-color: #fff;
--bs-btn-disabled-bg: #f0ad4e;
--bs-btn-disabled-border-color: #f0ad4e;
}
Expand Down Expand Up @@ -3217,11 +3217,11 @@ textarea.form-control-lg {
.btn-outline-warning {
--bs-btn-color: #f0ad4e;
--bs-btn-border-color: #f0ad4e;
--bs-btn-hover-color: #000;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #f0ad4e;
--bs-btn-hover-border-color: #f0ad4e;
--bs-btn-focus-shadow-rgb: 240, 173, 78;
--bs-btn-active-color: #000;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #f0ad4e;
--bs-btn-active-border-color: #f0ad4e;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
Expand Down Expand Up @@ -6570,7 +6570,7 @@ textarea.form-control-lg {
}

.text-bg-warning {
color: #000 !important;
color: #fff !important;
background-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;
}

Expand Down Expand Up @@ -6639,9 +6639,9 @@ textarea.form-control-lg {
text-decoration-color: RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important;
}
.link-warning:hover, .link-warning:focus {
color: RGBA(243, 189, 113, var(--bs-link-opacity, 1)) !important;
-webkit-text-decoration-color: RGBA(243, 189, 113, var(--bs-link-underline-opacity, 1)) !important;
text-decoration-color: RGBA(243, 189, 113, var(--bs-link-underline-opacity, 1)) !important;
color: RGBA(192, 138, 62, var(--bs-link-opacity, 1)) !important;
-webkit-text-decoration-color: RGBA(192, 138, 62, var(--bs-link-underline-opacity, 1)) !important;
text-decoration-color: RGBA(192, 138, 62, var(--bs-link-underline-opacity, 1)) !important;
}

.link-danger {
Expand Down Expand Up @@ -11796,6 +11796,10 @@ textarea.form-control-lg {
color: #919aa1;
border-color: #919aa1;
}
.btn-outline-secondary.disabled, .btn-outline-secondary:disabled, fieldset:disabled .btn-outline-secondary {
color: #919aa1;
border-color: #919aa1;
}
.btn-outline-secondary:not([disabled]):not(.disabled):hover, .btn-outline-secondary:not([disabled]):not(.disabled):focus, .btn-outline-secondary:not([disabled]):not(.disabled):active {
color: #fff;
background-color: #ced4da;
Expand Down
2 changes: 1 addition & 1 deletion docs/5/lux/bootstrap.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/5/lux/bootstrap.rtl.min.css.map

Large diffs are not rendered by default.

0 comments on commit 2fca8f5

Please sign in to comment.