Skip to content

Commit

Permalink
SAK-34097: Style the disabled checkboxes and radios (and their labels…
Browse files Browse the repository at this point in the history
…) to distinguish them from enabled ones
  • Loading branch information
fostersdesign authored and bjones86 committed Jun 27, 2018
1 parent b39ad34 commit 224b992
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions library/src/morpheus-master/sass/_defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ $secondary-color: #F00 !default;
$alt-colour: #d36f00 !default;

$text-color: #212121 !default;
$text-color-disabled: #767676 !default;

$body-background-color: #FAFAFA !default;

Expand Down
7 changes: 4 additions & 3 deletions library/src/morpheus-master/sass/base/_defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,17 @@ input[type="checkbox"], input[type="radio"]{

//SAK-30977
&[disabled],&[disabled="disabled"],&[disabled="true"]{
opacity: 0.8;
opacity: 0.5;
& + label{
color: lighten($text-color, 10%);
cursor: not-allowed;
color: $text-color-disabled;
}
}
}

label.disabled{
color: lighten($text-color, 10%);
cursor: not-allowed;
color: $text-color-disabled;
}

input[type="checkbox"]{
Expand Down

0 comments on commit 224b992

Please sign in to comment.