From f49c554aa65d3b829e341aaf08670df62fb41fc0 Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Sat, 4 Jul 2015 13:09:54 -0400 Subject: [PATCH] #2505 Fixes indeterminate checkbox styles causing radios to appear checked when none selected --- src/definitions/modules/checkbox.less | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/definitions/modules/checkbox.less b/src/definitions/modules/checkbox.less index c076057de..b3a7cdc69 100755 --- a/src/definitions/modules/checkbox.less +++ b/src/definitions/modules/checkbox.less @@ -203,13 +203,13 @@ Indeterminate ---------------*/ -.ui.checkbox input:indeterminate ~ .box:before, -.ui.checkbox input:indeterminate ~ label:before { +.ui.checkbox input[type="checkbox"]:indeterminate ~ .box:before, +.ui.checkbox input[type="checkbox"]:indeterminate ~ label:before { background: @checkboxIndeterminateBackground; border-color: @checkboxIndeterminateBorderColor; } -.ui.checkbox input:indeterminate ~ .box:after, -.ui.checkbox input:indeterminate ~ label:after { +.ui.checkbox input[type="checkbox"]:indeterminate ~ .box:after, +.ui.checkbox input[type="checkbox"]:indeterminate ~ label:after { opacity: @checkboxIndeterminateCheckOpacity; color: @checkboxIndeterminateCheckColor; } @@ -218,10 +218,10 @@ Active Focus ---------------*/ -.ui.checkbox input[type="radio"]:indeterminate:focus ~ .box:before, -.ui.checkbox input[type="radio"]:indeterminate:focus ~ label:before, -.ui.checkbox input[type="radio"]:checked:focus ~ .box:before, -.ui.checkbox input[type="radio"]:checked:focus ~ label:before { +.ui.checkbox input[type="checkbox"]:indeterminate:focus ~ .box:before, +.ui.checkbox input[type="checkbox"]:indeterminate:focus ~ label:before, +.ui.checkbox input[type="checkbox"]:checked:focus ~ .box:before, +.ui.checkbox input[type="checkbox"]:checked:focus ~ label:before { background: @checkboxFocusedBackground; border-color: @checkboxFocusedBorderColor; }