Skip to content

Commit

Permalink
feat(colors): final adjustments for accessible orange handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Jul 21, 2020
1 parent de6b0de commit 7c5e781
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ $form-range-track-box-shadow: inset 0 .25rem .25rem rgba($black, .1) !defaul

$form-range-thumb-width: 1rem !default;
$form-range-thumb-height: $form-range-thumb-width !default;
$form-range-thumb-bg: $component-active-color !default;
$form-range-thumb-bg: $white !default;
$form-range-thumb-border: $border-width solid $black !default;
$form-range-thumb-border-radius: 50% !default;
$form-range-thumb-box-shadow: 0 .1rem .25rem rgba($black, .1) !default;
Expand Down
4 changes: 2 additions & 2 deletions scss/forms/_form-check.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@

&:hover + .btn,
+ .btn:hover {
color: $primary;
color: $orange-2;
background-color: $white;
border-color: $gray-500;
}
Expand All @@ -270,7 +270,7 @@
&:active + .btn,
+ .btn:active,
+ .btn.active {
color: $white;
color: color-contrast($primary);
background-color: $primary;
// Remove CSS gradients if they're enabled
background-image: if($enable-gradients, none, null);
Expand Down
2 changes: 1 addition & 1 deletion scss/helpers/_colored-links.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@each $color, $value in ("primary": $primary, "light": $light) { // Boosted mod: restrict to primary and light
@each $color, $value in ("primary": $orange-2, "light": $light) { // Boosted mod: restrict to primary and light
.link-#{$color} {
color: $value;
background-color: color-contrast($value); // Boosted mod: ensure contrast
Expand Down

0 comments on commit 7c5e781

Please sign in to comment.