summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni@vaadin.com>2014-12-04 15:58:07 +0200
committerVaadin Code Review <review@vaadin.com>2014-12-09 06:47:17 +0000
commit285b4bc21f85a4570b5f3b45fc4fd120104b4d11 (patch)
tree9e065ea885b4662b174f387a6d88a6e585477f65 /WebContent
parent449e5e496898b56e07f65e0b6be830024492c5ce (diff)
downloadvaadin-framework-285b4bc21f85a4570b5f3b45fc4fd120104b4d11.tar.gz
vaadin-framework-285b4bc21f85a4570b5f3b45fc4fd120104b4d11.zip
Fix opacity for disabled checkboxes and option groups. (#15239)
Change-Id: I2d09a116d07621053f2fc9524f95e47bf7fc834e
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/VAADIN/themes/valo/components/_checkbox.scss36
1 files changed, 17 insertions, 19 deletions
diff --git a/WebContent/VAADIN/themes/valo/components/_checkbox.scss b/WebContent/VAADIN/themes/valo/components/_checkbox.scss
index 3c418ec9b7..7283c4cbbf 100644
--- a/WebContent/VAADIN/themes/valo/components/_checkbox.scss
+++ b/WebContent/VAADIN/themes/valo/components/_checkbox.scss
@@ -99,7 +99,7 @@
}
& ~ label:before {
- @include valo-button-style($background-color: $background-color, $unit-size: $size, $border-radius: min(round($size/3), $v-border-radius));
+ @include valo-button-style($background-color: $background-color, $unit-size: $size, $border-radius: min(round($size/3), $v-border-radius), $states: normal);
padding: 0;
height: round($size);
}
@@ -119,24 +119,6 @@
&:checked ~ label:after {
color: $selection-color;
}
-
- &[disabled] {
- ~ label,
- ~ label .v-icon,
- ~ .v-icon {
- cursor: default;
- }
-
- ~ label:before,
- ~ label:after {
- @include opacity($v-disabled-opacity);
- }
-
- &:active ~ label:after {
- background: transparent;
- }
- }
-
}
& > .v-icon,
@@ -146,4 +128,20 @@
cursor: pointer;
}
+ &.v-disabled {
+ > label,
+ > .v-icon {
+ cursor: default;
+ @include opacity($v-disabled-opacity);
+ }
+
+ > label > .v-icon {
+ cursor: default;
+ }
+
+ :root & > input:active ~ label:after {
+ background: transparent;
+ }
+ }
+
}