From d8199859d321e1392ec8742e90469792fc71af8b Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Sun, 12 Jan 2025 23:18:27 +0100 Subject: [PATCH] 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. --- app/styles/input.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/styles/input.css b/app/styles/input.css index 81dcff0..4305eab 100644 --- a/app/styles/input.css +++ b/app/styles/input.css @@ -27,7 +27,8 @@ input::file-selector-button { input:disabled, textarea:disabled, button:disabled, -select:disabled { +select:disabled, +label[disabled] { opacity: 0.4; }