Commit 2690a3dc authored by Mark Otto's avatar Mark Otto

Add to #9578 and fix #9614: use cursor not-allowed on radios and checkboxes

parent 5a0ba42a
...@@ -1711,10 +1711,14 @@ textarea.form-control { ...@@ -1711,10 +1711,14 @@ textarea.form-control {
margin-left: 10px; margin-left: 10px;
} }
input[type="radio"][disabled],
input[type="checkbox"][disabled],
.radio[disabled], .radio[disabled],
.radio-inline[disabled], .radio-inline[disabled],
.checkbox[disabled], .checkbox[disabled],
.checkbox-inline[disabled], .checkbox-inline[disabled],
fieldset[disabled] input[type="radio"],
fieldset[disabled] input[type="checkbox"],
fieldset[disabled] .radio, fieldset[disabled] .radio,
fieldset[disabled] .radio-inline, fieldset[disabled] .radio-inline,
fieldset[disabled] .checkbox, fieldset[disabled] .checkbox,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -133,8 +133,8 @@ input[type="number"] { ...@@ -133,8 +133,8 @@ input[type="number"] {
.form-control-focus(); .form-control-focus();
// Disabled and read-only inputs // Disabled and read-only inputs
// Note: HTML5 says that controls under a fieldset > legend:first-child won't be // Note: HTML5 says that controls under a fieldset > legend:first-child won't
// disabled if the fieldset is disabled. Due to implementation difficulty, // be disabled if the fieldset is disabled. Due to implementation difficulty,
// we don't honor that edge case; we style them as disabled anyway. // we don't honor that edge case; we style them as disabled anyway.
&[disabled], &[disabled],
&[readonly], &[readonly],
...@@ -208,10 +208,10 @@ input[type="number"] { ...@@ -208,10 +208,10 @@ input[type="number"] {
} }
// Apply same disabled cursor tweak as for inputs // Apply same disabled cursor tweak as for inputs
// Note: HTML5 says that controls under a fieldset > legend:first-child won't be //
// disabled if the fieldset is disabled. Due to implementation difficulty,
// we don't honor that edge case; we style them as disabled anyway.
// Note: Neither radios nor checkboxes can be readonly. // Note: Neither radios nor checkboxes can be readonly.
input[type="radio"],
input[type="checkbox"],
.radio, .radio,
.radio-inline, .radio-inline,
.checkbox, .checkbox,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment