🎨 Palette: [UX improvement] Add context-aware delete confirmations and ARIA labels - #77
Conversation
…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>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 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:
After:
data-nameto prevent XSS/syntax errors)aria-label)♿ Accessibility
aria-labelto 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