Skip to content

🎨 Palette: SectionControls accessibility & visual polish#397

Closed
aafre wants to merge 2 commits into
mainfrom
palette/section-controls-ux-improvements-3546324879042574751
Closed

🎨 Palette: SectionControls accessibility & visual polish#397
aafre wants to merge 2 commits into
mainfrom
palette/section-controls-ux-improvements-3546324879042574751

Conversation

@aafre
Copy link
Copy Markdown
Owner

@aafre aafre commented Mar 17, 2026

💡 What: The UX enhancement added type="button", aria-labels, and title tooltips to the icon-only buttons in the SectionControls component. Also replaced the raw text emojis with high-quality SVG icons from react-icons/md (MdArrowUpward, MdArrowDownward, MdDeleteOutline).
🎯 Why: The user problem it solves is two-fold: First, icon-only buttons without aria-labels are inaccessible to screen readers. Second, raw text emojis look unprofessional and do not conform to the styling conventions used throughout the rest of the app. This addresses both issues while keeping the component under the 50-lines-changed limit for Palette.
Accessibility: Added screen reader descriptions using aria-labels to all icon-only buttons, preventing confusing or empty readouts. Added standard tooltip behaviors using titles.
📸 Before/After: See visual verification step screenshots.


PR created automatically by Jules for task 3546324879042574751 started by @aafre

- Add explicit `type="button"` attributes
- Add `aria-label` and `title` tooltips for improved accessibility
- Replace raw text emojis with standard SVG icons from `react-icons/md`

Co-authored-by: aafre <8656674+aafre@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.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the SectionControls component by addressing critical accessibility concerns and improving its visual design. By adding proper ARIA attributes and tooltips, it ensures that all users, including those relying on screen readers, can effectively interact with the controls. Furthermore, the replacement of raw emojis with high-quality SVG icons modernizes the component's appearance, aligning it with the application's overall aesthetic standards.

Highlights

  • Accessibility Enhancements: Implemented type="button", aria-labels, and title tooltips for icon-only buttons in SectionControls to improve screen reader accessibility and user experience.
  • Visual Polish: Replaced raw text emojis (↑, ↓, 🗑) with professional SVG icons (MdArrowUpward, MdArrowDownward, MdDeleteOutline) from react-icons/md for a consistent UI.
Changelog
  • resume-builder-ui/package.json
    • Added @tiptap/core, @tiptap/extension-document, @tiptap/extension-paragraph, and @tiptap/extension-text dependencies.
  • resume-builder-ui/src/components/SectionControls.tsx
    • Imported React and specific icons from react-icons/md.
    • Added type="button", aria-label, and title attributes to the move up, move down, and delete buttons.
    • Replaced the '↑' emoji with MdArrowUpward icon.
    • Replaced the '↓' emoji with MdArrowDownward icon.
    • Replaced the '🗑' emoji with MdDeleteOutline icon.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the SectionControls component by improving accessibility with aria-labels and tooltips, and by replacing text emojis with SVG icons for a more polished look. These are great improvements.

I have two suggestions to further improve the codebase:

  1. Align the versions of @tiptap dependencies in package.json to prevent potential compatibility issues.
  2. Improve type safety in SectionControls.tsx by defining a specific type for the sections prop instead of using any.

Please see my detailed comments on the specific files.

Comment thread resume-builder-ui/package.json Outdated
"@supabase/supabase-js": "^2.89.0",
"@tanstack/react-query": "^5.90.12",
"@tanstack/react-query-devtools": "^5.91.1",
"@tiptap/core": "^3.20.4",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

There's a version mismatch between the newly added @tiptap packages (^3.20.4) and the existing ones (^3.10.7). All @tiptap packages should use the same version to ensure compatibility and prevent potential build or runtime errors. Please align the versions, likely by using ^3.10.7 for the new packages to match the existing ones.

Comment on lines +6 to 9
// eslint-disable-next-line @typescript-eslint/no-explicit-any
sections: any[];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
setSections: (sections: any[]) => void;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve type safety and code clarity, it's better to use a specific type for sections instead of any[] with an ESLint suppression. A Section interface is already used in the parent SectionEditor component. A similar interface could be defined here or, ideally, moved to a shared types file and imported in both places.

For example:

interface Section {
  name: string;
  type: string;
  content: any;
}
Suggested change
// eslint-disable-next-line @typescript-eslint/no-explicit-any
sections: any[];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
setSections: (sections: any[]) => void;
sections: Section[];
setSections: (sections: Section[]) => void;
References
  1. Using specific types instead of any[] directly improves robustness and type safety, aligning with the principle of enhancing type safety in the codebase.

- Add explicit `type="button"` attributes
- Add `aria-label` and `title` tooltips for improved accessibility
- Replace raw text emojis with standard SVG icons from `react-icons/md`

Co-authored-by: aafre <8656674+aafre@users.noreply.github.com>
@aafre
Copy link
Copy Markdown
Owner Author

aafre commented Apr 11, 2026

Closing: SectionControls a11y was already merged via #381 (PR #368). See #457 for the consolidated Jules batch-2 PR.

@aafre aafre closed this Apr 11, 2026
@google-labs-jules
Copy link
Copy Markdown
Contributor

Closing: SectionControls a11y was already merged via #381 (PR #368). See #457 for the consolidated Jules batch-2 PR.

Understood. Acknowledging that this work is now obsolete and stopping work on 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