From: "Michael Köppl" <m.koeppl@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH widget-toolkit 1/1] css: add class for making elements unclickable
Date: Fri, 19 Sep 2025 17:29:00 +0200 [thread overview]
Message-ID: <20250919152901.291068-2-m.koeppl@proxmox.com> (raw)
In-Reply-To: <20250919152901.291068-1-m.koeppl@proxmox.com>
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@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
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-09-19 15:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 15:28 [pve-devel] [PATCH manager/widget-toolkit 0/2] make rule status checkmark Michael Köppl
2025-09-19 15:29 ` Michael Köppl [this message]
2025-09-19 15:29 ` [pve-devel] [PATCH manager 1/1] ui: ha: rules: make status icon unclickable if there are no errors Michael Köppl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250919152901.291068-2-m.koeppl@proxmox.com \
--to=m.koeppl@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.