You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2026/08/26 16:51:09 UTC

(juneau) 01/02: Stop disabled ribbon buttons from painting hover/active feedback, and give the paging-pill menu button a distinct open state.

This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git

commit c94e7aab827d8a3768e9423b8e83a27f4a047840
Author: James Bognar <ja...@apache.org>
AuthorDate: Wed Aug 26 12:50:41 2026 -0400

    Stop disabled ribbon buttons from painting hover/active feedback, and give the paging-pill menu button a distinct open state.
    
    .juneau-view-ribbon-btn's hover and active rules applied regardless of the button's
    disabled state, so a control the user cannot actually invoke still lit up with the accent
    wash on hover and took the solid accent fill on press. That reads as an affordance the
    button does not have. Both rules now carry the :not(:disabled) guard that the sibling
    .juneau-view-pagingpill-btn rule already used, which keeps the two button families
    consistent rather than introducing a new convention.
    
    The paging-pill menu button's hover and [aria-expanded="true"] states shared one
    comma-joined selector, so an open menu was indistinguishable from a merely hovered one --
    and once the pointer left, the open menu lost even that much feedback and looked closed.
    Splitting the selector lets the open state take the solid accent fill while hover keeps
    the lighter wash, so "this menu is open" survives the pointer moving away.
---
 .../src/main/resources/org/apache/juneau/console/chrome.css       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/juneau-rest/juneau-rest-server-console-ui/src/main/resources/org/apache/juneau/console/chrome.css b/juneau-rest/juneau-rest-server-console-ui/src/main/resources/org/apache/juneau/console/chrome.css
index fac062af5d..85703df65b 100644
--- a/juneau-rest/juneau-rest-server-console-ui/src/main/resources/org/apache/juneau/console/chrome.css
+++ b/juneau-rest/juneau-rest-server-console-ui/src/main/resources/org/apache/juneau/console/chrome.css
@@ -680,8 +680,8 @@ table.dataTable.display > tbody > tr:hover {
    inherits the body's near-black text color instead of a subtle gray; themed here with --jc-border, plus a
    white face so a button reads as a distinct control against the card's tinted background. */
 .juneau-view-ribbon-btn { border-color: var(--jc-border); background-color: var(--jc-control-bg); color: var(--jc-text-soft); }
-.juneau-view-ribbon-btn:hover { background-color: var(--jc-accent-wash); color: var(--jc-accent); }
-.juneau-view-ribbon-btn:active { background-color: var(--jc-accent); color: var(--jc-on-accent); }
+.juneau-view-ribbon-btn:hover:not(:disabled) { background-color: var(--jc-accent-wash); color: var(--jc-accent); }
+.juneau-view-ribbon-btn:active:not(:disabled) { background-color: var(--jc-accent); color: var(--jc-on-accent); }
 
 /* Themed accent for an ACTIVE toggle (option/optionGroup member button's aria-pressed="true" - see -views'
    neutral border-width rule for this same attribute selector). Without this, a persisted, still-active filter
@@ -744,8 +744,8 @@ table.dataTable.display > tbody > tr:hover {
 .juneau-view-pagingpill-btn:hover:not(:disabled) { background-color: var(--jc-accent-wash); color: var(--jc-accent); }
 .juneau-view-pagingpill-menuwrap { border-color: var(--jc-border); }
 .juneau-view-pagingpill-menubtn { color: var(--jc-text-soft); }
-.juneau-view-pagingpill-menubtn:hover,
-.juneau-view-pagingpill-menubtn[aria-expanded="true"] { background-color: var(--jc-accent-wash); color: var(--jc-accent); }
+.juneau-view-pagingpill-menubtn:hover { background-color: var(--jc-accent-wash); color: var(--jc-accent); }
+.juneau-view-pagingpill-menubtn[aria-expanded="true"] { background-color: var(--jc-accent); color: var(--jc-on-accent); }
 .juneau-view-pagingpill-menu { border-color: var(--jc-border); background-color: var(--jc-control-bg); }
 .juneau-view-pagingpill-menu-option:hover,
 .juneau-view-pagingpill-menu-option:focus { background-color: var(--jc-accent-wash); color: var(--jc-accent); }