Skip to content

🎨 Palette: Use semantic fieldset/legend for form groups#482

Open
n24q02m wants to merge 1 commit into
mainfrom
palette-semantic-form-grouping-1391499113738085438
Open

🎨 Palette: Use semantic fieldset/legend for form groups#482
n24q02m wants to merge 1 commit into
mainfrom
palette-semantic-form-grouping-1391499113738085438

Conversation

@n24q02m

@n24q02m n24q02m commented Jun 13, 2026

Copy link
Copy Markdown
Owner

💡 What

Replaced generic <div class="setting-row"> and <label id="..."> combinations with native semantic HTML <fieldset> and <legend> elements for grouped form controls (Operation, Execution Mode, and Scope) in popup.html.

🎯 Why

Using native <fieldset> and <legend> is the web standard for grouping related form controls. It provides automatic, robust context for assistive technologies (like screen readers) without relying on verbose and sometimes brittle ARIA attributes (role="radiogroup", role="group", aria-labelledby). This change simplifies the DOM, improves semantic correctness, and removes technical debt.

📸 Before/After

Visually, the UI is identical. The visual styles of <fieldset> have been reset to match the standard layout, and <legend> is styled precisely like the previous labels. See attached screenshots in verification steps for proof of unaltered visuals.

♿ Accessibility

  • Removed workaround attributes: role="radiogroup", role="group", aria-labelledby.
  • Added native HTML structure (<fieldset>, <legend>) which natively establishes group boundaries and names for screen readers.
  • Updated DOM test assertions to rely on semantic tags rather than ARIA strings.

PR created automatically by Jules for task 1391499113738085438 started by @n24q02m

Replaced generic `<div class="setting-row">` elements with native `<fieldset>` and `<legend>` for radio button/button groups in `popup.html`. Removed duplicate/workaround ARIA attributes, ensuring cleaner markup and more robust accessibility for screen readers, while preserving visual presentation via `popup.css`.

Co-authored-by: n24q02m <135627235+n24q02m@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.

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

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