[pve-devel] [PATCH widget-toolkit 1/1] css: add class for making elements unclickable

Michael Köppl m.koeppl at proxmox.com
Fri Sep 19 17:29:00 CEST 2025


This is useful for elements which have a click handler defined, but the
action of that handler is dependent on some condition. Without adding
pointer-events:none; the element would be displayed as clickable.

Signed-off-by: Michael Köppl <m.koeppl at proxmox.com>
---
 src/proxmox-dark/scss/proxmox/_general.scss | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/proxmox-dark/scss/proxmox/_general.scss b/src/proxmox-dark/scss/proxmox/_general.scss
index 1342f02..35a5a01 100644
--- a/src/proxmox-dark/scss/proxmox/_general.scss
+++ b/src/proxmox-dark/scss/proxmox/_general.scss
@@ -42,3 +42,8 @@ div.eol-notice + div[id^="panel-"] > div[id^="panel-"][id$="-bodyWrap"] > div {
 .pmx-hint a:active {
   color: $highlighted-text;
 }
+
+// Unclickable elements (mostly for elements with conditional handlers)
+.pmx-unclickable {
+  pointer-events: none;
+}
-- 
2.47.3





More information about the pve-devel mailing list