Skip to content

Commit

Permalink
feat(focus-visible): forms focus styles, almost matching v4-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed May 27, 2020
1 parent 00789c2 commit a0522ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scss/forms/_form-check.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@

.form-switch {
// Boosted mod
--o-switch-gradient: linear-gradient(to right, $white $form-switch-bg-square-size, transparent);
--o-switch-gradient: #{linear-gradient(to right, $white $form-switch-bg-square-size, transparent)};
min-height: $form-switch-width / 2;
padding-left: $form-switch-padding-left;

Expand Down
3 changes: 2 additions & 1 deletion scss/forms/_form-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
&:focus {
color: $input-focus-color;
background-color: $input-focus-bg;
border-color: $input-focus-border-color;
border-color: $input-focus-border-color !important; // stylelint-disable-line declaration-no-important
outline: 0;
@if $enable-shadows {
@include box-shadow($input-box-shadow, $input-focus-box-shadow);
} @else {
Expand Down
2 changes: 1 addition & 1 deletion scss/forms/_form-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
appearance: none;

&:focus {
border-color: $form-select-focus-border-color;
border-color: $form-select-focus-border-color !important; // stylelint-disable-line declaration-no-important
@if $enable-shadows {
@include box-shadow($form-select-box-shadow, $form-select-focus-box-shadow);
} @else {
Expand Down
13 changes: 6 additions & 7 deletions scss/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@
// Boosted mod: validation icon in .*-feedback

// Boosted mod: no box-shadow
&:focus {
border-color: $color;
}

// Boosted mod: focus styles don't match validation state
}
}

Expand All @@ -82,9 +81,8 @@
// Boosted mod: no icon in background

// Boosted mod: no box-shadow
&:focus {
border-color: $color;
}

// Boosted mod: focus styles don't match validation state
}
}

Expand Down Expand Up @@ -117,7 +115,8 @@

&:focus {
~ .form-file-label {
border-color: $color;
// Boosted mod: focus styles don't match validation state

// Boosted mod: no box-shadow
}
}
Expand Down

0 comments on commit a0522ea

Please sign in to comment.