Skip to content

🎨 Palette: [UX improvement] Add context-aware delete confirmations and ARIA labels - #77

Open
rauhmaru wants to merge 1 commit into
mainfrom
palette/context-aware-delete-confirmations-6691994056818307762
Open

🎨 Palette: [UX improvement] Add context-aware delete confirmations and ARIA labels#77
rauhmaru wants to merge 1 commit into
mainfrom
palette/context-aware-delete-confirmations-6691994056818307762

Conversation

@rauhmaru

@rauhmaru rauhmaru commented Jul 7, 2026

Copy link
Copy Markdown
Owner

💡 What

This PR updates the delete confirmation dialogs across the application to be context-aware, explicitly displaying the name of the item being deleted. It also adds descriptive aria-labels to the edit and remove action buttons.

🎯 Why

Using generic strings like "Remover este produto?" in delete confirmations provides a poor user experience, as it doesn't reassure the user of exactly which item they are confirming deletion for. Furthermore, relying on generic text for action buttons (or just an icon) can make it difficult for screen reader users to understand what item the button targets.

📸 Before/After

Before:

  • Confirmation dialog: "Remover este produto?"
  • Screen reader reads: "Remover" (without knowing what is being removed)

After:

  • Confirmation dialog: "Remover Vodka?" (Uses data-name to prevent XSS/syntax errors)
  • Screen reader reads: "Remover Vodka" (via aria-label)

♿ Accessibility

  • Added aria-label to the "Editar" and "Remover" buttons in product, recipe, and type lists so that screen reader users are provided with context about the item being targeted.

PR created automatically by Jules for task 6691994056818307762 started by @rauhmaru

…d ARIA labels

- Added dynamic `aria-label`s to "Editar" and "Remover" buttons in `visualizar.html`, `visualizar_cocktails.html`, and `cadastrar_tipo.html`.
- Updated inline confirmation dialogs to use `data-name` attributes, providing context-aware prompts (e.g., "Remover Vodka?") instead of generic messages.
- Documented learning in `.Jules/palette.md`.

Co-authored-by: rauhmaru <2289237+rauhmaru@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.

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