Skip to content

๐ŸŽจ Palette: Add aria-describedby to disabled export buttons - #628

Closed
seonghobae wants to merge 1 commit into
mainfrom
palette-ux-export-disabled-hint-18173860570032496301
Closed

๐ŸŽจ Palette: Add aria-describedby to disabled export buttons#628
seonghobae wants to merge 1 commit into
mainfrom
palette-ux-export-disabled-hint-18173860570032496301

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

๐ŸŽจ Palette: Add aria-describedby to disabled export buttons

This UX/a11y improvement links disabled artifact export buttons in the ExportModal to their adjacent description text using aria-describedby. This ensures screen reader users understand why the buttons are disabled (e.g., "๋จผ์ € ํ…Œ์ด๋ธ”์„ ์ถ”๊ฐ€ํ•˜์„ธ์š”" / "Please add tables first") since many browsers do not expose tooltips or read titles on disabled controls.

It also includes updates to the ExportModal.test.tsx to verify this behavior and maintains 100% test coverage.


PR created automatically by Jules for task 18173860570032496301 started by @seonghobae

Links disabled artifact export buttons in the ExportModal to their
adjacent description text using `aria-describedby` so screen reader
users understand why the buttons are disabled.

Updates `ExportModal.test.tsx` to explicitly verify this accessibility
improvement.
@google-labs-jules

Copy link
Copy Markdown

๐Ÿ‘‹ 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.

Copilot AI review requested due to automatic review settings July 23, 2026 21:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR improves ExportModal accessibility by linking disabled artifact export buttons to their adjacent helper/description text via aria-describedby, so screen reader users can understand why an export action is unavailable.

Changes:

  • Add per-artifact description element IDs and conditionally apply aria-describedby to disabled export buttons in ExportModal.
  • Update ExportModal.test.tsx to assert the new aria-describedby behavior for disabled export actions.
  • Document the pattern in .Jules/palette.md as a reusable accessibility guideline.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
frontend/src/components/modals/ExportModal.tsx Generates stable description IDs per artifact and wires them to disabled buttons with aria-describedby.
frontend/src/components/modals/ExportModal.test.tsx Adds assertions to validate disabled export buttons expose aria-describedby.
.Jules/palette.md Records the disabled-button + aria-describedby accessibility practice for future work.

๐Ÿ’ก Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +159 to +172
const checkDisabledExportButton = (name: string, artifactLabel: string) => {
const button = screen.getByRole('button', { name });
expect(button).toBeDisabled();
const descId = `artifact-desc-${artifactLabel.replace(/\s+/g, '-')}`;
expect(button).toHaveAttribute('aria-describedby', descId);
};

checkDisabledExportButton('SQL DDL ๋ณต์‚ฌ', 'SQL DDL');
checkDisabledExportButton('SVG ์ด๋ฏธ์ง€ ๋‚ด๋ณด๋‚ด๊ธฐ', 'SVG ์ด๋ฏธ์ง€');
checkDisabledExportButton('PlantUML ๋‚ด๋ณด๋‚ด๊ธฐ', 'PlantUML');
checkDisabledExportButton('Mermaid ๋‚ด๋ณด๋‚ด๊ธฐ', 'Mermaid');
checkDisabledExportButton('DBML ๋‚ด๋ณด๋‚ด๊ธฐ', 'DBML');
checkDisabledExportButton('๋ฐ์ดํ„ฐ ์‚ฌ์ „ CSV ๋‚ด๋ณด๋‚ด๊ธฐ', 'Data Dictionary CSV');
checkDisabledExportButton('๋ฐ์ดํ„ฐ ์‚ฌ์ „ Markdown ๋‚ด๋ณด๋‚ด๊ธฐ', 'Data Dictionary MD');
@seonghobae

Copy link
Copy Markdown
Collaborator Author

Closed as superseded/duplicate Palette a11y PR; keyboard/form a11y baseline already on main (#568/#567/#534). Remaining a11y land via priority PR or follow-up if needed.

@seonghobae seonghobae closed this Jul 31, 2026
@google-labs-jules

Copy link
Copy Markdown

Closed as superseded/duplicate Palette a11y PR; keyboard/form a11y baseline already on main (#568/#567/#534). Remaining a11y land via priority PR or follow-up if needed.

Understood. Acknowledging that this work is superseded and stopping work on this PR.

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.

2 participants