Skip to content

Commit

Permalink
fix(button): styling for disabled anchor (#2649)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Jan 18, 2021
1 parent 8a7d52c commit 19a5b43
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/framework/theme/components/button/_button-filled.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
border-color: nb-theme(button-filled-#{$status}-active-border-color);
}

&[disabled] {
&[disabled],
&.btn-disabled {
background-color: nb-theme(button-filled-#{$status}-disabled-background-color);
border-color: nb-theme(button-filled-#{$status}-disabled-border-color);
color: nb-theme(button-filled-#{$status}-disabled-text-color);
Expand Down
3 changes: 2 additions & 1 deletion src/framework/theme/components/button/_button-ghost.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
color: nb-theme(button-ghost-#{$status}-active-text-color);
}

&[disabled] {
&[disabled],
&.btn-disabled {
background-color: nb-theme(button-ghost-#{$status}-disabled-background-color);
border-color: nb-theme(button-ghost-#{$status}-disabled-border-color);
color: nb-theme(button-ghost-#{$status}-disabled-text-color);
Expand Down
3 changes: 2 additions & 1 deletion src/framework/theme/components/button/_button-hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
background-image: linear-gradient(to right, $left-active-color, $right-active-color);
}

&[disabled] {
&[disabled],
&.btn-disabled {
background-color: nb-theme(button-hero-#{$status}-disabled-background-color);
background-image: none;
color: nb-theme(button-hero-#{$status}-disabled-text-color);
Expand Down
3 changes: 2 additions & 1 deletion src/framework/theme/components/button/_button-outline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
color: nb-theme(button-outline-#{$status}-active-text-color);
}

&[disabled] {
&[disabled],
&.btn-disabled {
background-color: nb-theme(button-outline-#{$status}-disabled-background-color);
border-color: nb-theme(button-outline-#{$status}-disabled-border-color);
color: nb-theme(button-outline-#{$status}-disabled-text-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
@include nb-outline(nb-theme(button-outline-width), nb-theme(button-outline-color));
}

&[disabled] {
&[disabled],
&.btn-disabled {
cursor: nb-theme(button-disabled-cursor);
}

Expand Down

0 comments on commit 19a5b43

Please sign in to comment.