Support 'disabled' attribute on labels

Note that the :disabled selector only works on inputs, buttons and the
like.

The current method of applying .noVNC_disabled to the settings
labels is still used. This support is added mostly for completeness.

Note that when a label wraps an input, only the label should have the
disabled attribute. Otherwise the effect applies twice to the input.
This commit is contained in:
Samuel Mannehed 2025-01-12 23:18:27 +01:00
parent e092f06d01
commit d8199859d3

View File

@ -27,7 +27,8 @@ input::file-selector-button {
input:disabled,
textarea:disabled,
button:disabled,
select:disabled {
select:disabled,
label[disabled] {
opacity: 0.4;
}