Skip to content

Commit

Permalink
feat(input): add more input color options (#3108)
Browse files Browse the repository at this point in the history
  • Loading branch information
lugovsky committed Sep 9, 2022
1 parent 010f312 commit 54da714
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/framework/theme/components/input/_input-statuses.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
background-color: nb-theme(input-#{$status}-hover-background-color);
border-color: nb-theme(input-#{$status}-hover-border-color);
}
&:focus:hover {
background-color: nb-theme(input-#{$status}-focus-and-hover-background-color);
border-color: nb-theme(input-#{$status}-focus-and-hover-border-color);
}

&:disabled {
background-color: nb-theme(input-#{$status}-disabled-background-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
background-color: nb-theme(select-filled-#{$status}-hover-background-color);
border-color: nb-theme(select-filled-#{$status}-hover-border-color);
}
&:focus:hover {
background-color: nb-theme(select-filled-#{$status}-focus-and-hover-background-color);
border-color: nb-theme(select-filled-#{$status}-focus-and-hover-border-color);
}

&[disabled] {
background-color: nb-theme(select-filled-#{$status}-disabled-background-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
$right-color: nb-theme(select-hero-#{$status}-hover-right-background-color);
background-image: linear-gradient(to right, $left-color, $right-color);
}
&:focus:hover {
$left-color: nb-theme(select-hero-#{$status}-focus-and-hover-left-background-color);
$right-color: nb-theme(select-hero-#{$status}-focus-and-hover-right-background-color);
background-image: linear-gradient(to right, $left-color, $right-color);
}
&[disabled] {
color: nb-theme(select-hero-#{$status}-disabled-text-color);
background-color: nb-theme(select-hero-#{$status}-disabled-background-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
background-color: nb-theme(select-outline-#{$status}-hover-background-color);
border-color: nb-theme(select-outline-#{$status}-hover-border-color);
}
&:focus:hover {
background-color: nb-theme(select-outline-#{$status}-focus-and-hover-background-color);
border-color: nb-theme(select-outline-#{$status}-focus-and-hover-border-color);
}

&[disabled] {
color: nb-theme(select-outline-#{$status}-disabled-text-color);
Expand Down
4 changes: 4 additions & 0 deletions src/framework/theme/components/select/_select-filled.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
background-color: nb-theme(select-filled-#{$status}-hover-background-color);
border-color: nb-theme(select-filled-#{$status}-hover-border-color);
}
&:focus:hover {
background-color: nb-theme(select-filled-#{$status}-focus-and-hover-background-color);
border-color: nb-theme(select-filled-#{$status}-focus-and-hover-border-color);
}

&[disabled] {
background-color: nb-theme(select-filled-#{$status}-disabled-background-color);
Expand Down
5 changes: 5 additions & 0 deletions src/framework/theme/components/select/_select-hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
$right-color: nb-theme(select-hero-#{$status}-hover-right-background-color);
background-image: linear-gradient(to right, $left-color, $right-color);
}
&:focus:hover {
$left-color: nb-theme(select-hero-#{$status}-focus-and-hover-left-background-color);
$right-color: nb-theme(select-hero-#{$status}-focus-and-hover-right-background-color);
background-image: linear-gradient(to right, $left-color, $right-color);
}
&[disabled] {
color: nb-theme(select-hero-#{$status}-disabled-text-color);
background-color: nb-theme(select-hero-#{$status}-disabled-background-color);
Expand Down
4 changes: 4 additions & 0 deletions src/framework/theme/components/select/_select-outline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
background-color: nb-theme(select-outline-#{$status}-hover-background-color);
border-color: nb-theme(select-outline-#{$status}-hover-border-color);
}
&:focus:hover {
background-color: nb-theme(select-outline-#{$status}-focus-and-hover-background-color);
border-color: nb-theme(select-outline-#{$status}-focus-and-hover-border-color);
}

&[disabled] {
color: nb-theme(select-outline-#{$status}-disabled-text-color);
Expand Down
56 changes: 56 additions & 0 deletions src/framework/theme/styles/themes/_mapping.scss

Large diffs are not rendered by default.

0 comments on commit 54da714

Please sign in to comment.