diff --git a/less/checkbox-no-js.less b/less/checkbox-no-js.less index fbc68c9c..241dbf31 100644 --- a/less/checkbox-no-js.less +++ b/less/checkbox-no-js.less @@ -37,7 +37,7 @@ .checkbox { &.highlight { - input:not(.sr-only) { + input[type="checkbox"]:not(.sr-only) { & ~ label { left: -4px; } diff --git a/less/forms.less b/less/forms.less index e712667d..78f1c360 100644 --- a/less/forms.less +++ b/less/forms.less @@ -40,7 +40,7 @@ &.highlight { - input:not(.sr-only) { + input[type="checkbox"]:not(.sr-only), input[type="radio"]:not(.sr-only) { & ~ label { padding: 4px; border-radius: @baseBorderRadius; @@ -53,7 +53,7 @@ } } - input:not(.sr-only) { + input[type="checkbox"]:not(.sr-only), input[type="radio"]:not(.sr-only) { position: absolute; width: 1px; @@ -148,7 +148,7 @@ &.highlight { - input:not(.sr-only) { + input[type="checkbox"]:not(.sr-only), input[type="radio"]:not(.sr-only) { & ~ label { left: -8px; position: relative;