Skip to content

Commit

Permalink
refactor: add more consistent styles to disabled input and hover state
Browse files Browse the repository at this point in the history
  • Loading branch information
sebnitu committed May 26, 2021
1 parent dc5587d commit 6d74f08
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/dist/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/dist/styles.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/styles.min.css.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions packages/input/src/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ $_b: var.$prefix-block;
&:hover {
@include mix.box-shadow("hover");
border-color: var.$border-color-hover;
background-color: var.$background-hover;
}

&:focus {
Expand All @@ -40,6 +41,13 @@ $_b: var.$prefix-block;

&[disabled] {
background-color: var.$disabled-background;

&:hover,
&:focus {
@include mix.box-shadow();
border-color: var.$border-color;
background-color: var.$disabled-background;
}
}

&[readonly] {
Expand Down
1 change: 1 addition & 0 deletions packages/input/src/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $border-color-hover: core.$border-color-darker !default;
$border-color-focus: core.$primary !default;
$border-radius: core.$border-radius !default;
$background: core.$white !default;
$background-hover: core.$white !default;
$background-focus: core.$white !default;
$box-shadow-values: 0 0 0 0 !default;
$box-shadow-color: core.$black !default;
Expand Down

0 comments on commit 6d74f08

Please sign in to comment.