Skip to content

🎨 Palette: Add tooltip to disabled bulk action buttons#95

Open
mapleleaflatte03 wants to merge 2 commits into
mainfrom
palette-bulk-actions-tooltip-18085669579238905860
Open

🎨 Palette: Add tooltip to disabled bulk action buttons#95
mapleleaflatte03 wants to merge 2 commits into
mainfrom
palette-bulk-actions-tooltip-18085669579238905860

Conversation

@mapleleaflatte03
Copy link
Copy Markdown
Owner

💡 What
Added a native HTML title="Select items to enable bulk actions" attribute to the four bulk action buttons (approve, stale, revoke, unresolved) in the Trust Ops queue surface (trust-ops.html). Updated the meridian.js frontend script to dynamically remove this title when items are selected (and the buttons are enabled), and restore it when the selection is cleared.

🎯 Why
When operators open the Trust Ops queue, the bulk action buttons are disabled by default. Without an explanation, it might be unclear why they cannot take action. This micro-UX improvement clarifies the required interaction pattern (selecting queue items first) without adding any visual clutter or requiring new CSS rules.

📸 Before/After

  • Before: Disabled buttons had no hover explanation.
  • After: Hovering over the disabled buttons reveals a native system tooltip explaining "Select items to enable bulk actions".

Accessibility
Improves accessibility and cognitive ease by providing an explicit reason for the disabled state. Screen readers and mouse users alike benefit from understanding the prerequisite action required to enable the controls.


PR created automatically by Jules for task 18085669579238905860 started by @mapleleaflatte03

Adds an explanatory title to the initially disabled bulk action buttons in the operator Trust Ops queue, and dynamically removes/restores the title based on the selection state using existing javascript.

Co-authored-by: mapleleaflatte03 <240846662+mapleleaflatte03@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Adds an explanatory title to the initially disabled bulk action buttons in the operator Trust Ops queue, and dynamically removes/restores the title based on the selection state using existing javascript.

Co-authored-by: mapleleaflatte03 <240846662+mapleleaflatte03@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant