From 61abf9e706f87ba7ee19ab1f83fc40c8ba7e4f57 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 3 May 2026 19:12:50 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Add=20tooltip=20expla?= =?UTF-8?q?ining=20disabled=20button=20state?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a `title` attribute to disabled bulk-action buttons in Trust Ops to explain why they are disabled, improving accessibility. Co-authored-by: mapleleaflatte03 <240846662+mapleleaflatte03@users.noreply.github.com> --- intelligence/company/www/assets/meridian.js | 5 +++++ intelligence/company/www/trust-ops.html | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/intelligence/company/www/assets/meridian.js b/intelligence/company/www/assets/meridian.js index a4a014b2..62d5f6f4 100644 --- a/intelligence/company/www/assets/meridian.js +++ b/intelligence/company/www/assets/meridian.js @@ -302,6 +302,11 @@ window.__meridianFetchJsonWithTimeout = window.__meridianFetchJsonWithTimeout || }); Array.prototype.forEach.call(shell.querySelectorAll('[data-bulk-decision]'), function (button) { button.disabled = !selectedCount; + if (button.disabled) { + button.setAttribute('title', 'Select items to enable bulk actions'); + } else { + button.removeAttribute('title'); + } }); } diff --git a/intelligence/company/www/trust-ops.html b/intelligence/company/www/trust-ops.html index e4693a61..acf8a41e 100644 --- a/intelligence/company/www/trust-ops.html +++ b/intelligence/company/www/trust-ops.html @@ -135,10 +135,10 @@