Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1360 from interactivellama/disabled-checkbox-radi…
Browse files Browse the repository at this point in the history
…o-label-opacity

Gray out disabled checkbox/radio while maintaining accessibility
  • Loading branch information
Kevin Parkerson committed Jun 30, 2015
2 parents 69e5d33 + 9a343b1 commit 728d7e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion less/checkbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@

&.disabled {
cursor: not-allowed;
opacity: .65;

&:before
{
cursor: not-allowed;
opacity: .5;
opacity: .65;
}
}

Expand Down
2 changes: 1 addition & 1 deletion less/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
&[disabled="disabled"], &[disabled], &:disabled {
& ~ label, & ~ label:before {
color: @text-color;
opacity: 0.5 !important;
opacity: .65;
cursor: not-allowed !important;
outline: none;
box-shadow: none;
Expand Down
3 changes: 2 additions & 1 deletion less/radio.less
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@
}
&.disabled {
cursor: not-allowed;
opacity: .65;

&:after {
cursor: not-allowed;
}
&:before {
cursor: not-allowed;
opacity: .5;
opacity: .65;
}
}
&.radio-inline {
Expand Down

0 comments on commit 728d7e9

Please sign in to comment.