Skip to content

🎨 Palette: [UX improvement] Add focus-visible styling to utility icon buttons#68

Merged
dhaatrik merged 1 commit into
mainfrom
palette-focus-visible-utility-1244639872652554326
Mar 31, 2026
Merged

🎨 Palette: [UX improvement] Add focus-visible styling to utility icon buttons#68
dhaatrik merged 1 commit into
mainfrom
palette-focus-visible-utility-1244639872652554326

Conversation

@dhaatrik

Copy link
Copy Markdown
Owner

💡 What:

Added explicit keyboard focus styling (focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none rounded-sm) to secondary utility icon buttons across the application (e.g., 'X' to close modals, 'Trash' to delete items, 'Edit' pens).

🎯 Why:

Because these utility buttons often have transparent backgrounds and rely on subtle hover effects in the brutalist design system, the default browser focus ring is either insufficient, hidden, or clashing. This makes it very difficult for keyboard users and those relying on assistive technologies to see which utility action is currently focused, particularly inside complex components like lists or modals.

📸 Before/After:

Before: Tabbing to the edit or delete icon button on a saved favorite would not provide a clear visual indicator that the button was focused.
After: Tabbing to these buttons now shows a clear, primary-colored focus ring that matches the button's border radius, making navigation clear.

♿ Accessibility:

  • Significantly improves keyboard accessibility by providing explicit, high-contrast focus indicators for interactive utility elements.
  • Added a missing aria-label to the 'Remove item' button within the BulkOrder component.

PR created automatically by Jules for task 1244639872652554326 started by @DhaatuTheGamer

… buttons

- Added explicit `focus-visible` ring styling to various close, cancel, edit, and delete icon buttons.
- These buttons often have subtle or transparent styling which makes default browser focus rings hard to see, hindering keyboard navigation.
- Included buttons in LiveTracking, VehicleSelectModal, SaveAddressDialog, FuelCart, CheckoutOffersSheet, Garage, NotificationToast, Favorites, and BulkOrder.
- Added `aria-label` to the remove item button in BulkOrder.
- Documented learning in `.jules/palette.md`.

Co-authored-by: DhaatuTheGamer <90041791+DhaatuTheGamer@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.

@dhaatrik dhaatrik merged commit e5b2973 into main Mar 31, 2026
1 check passed
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