docs: Expand Modal, Popup, and Dialog accessibility for AI codegen - #4144
Open
williamjstanton wants to merge 7 commits into
Open
docs: Expand Modal, Popup, and Dialog accessibility for AI codegen#4144williamjstanton wants to merge 7 commits into
williamjstanton wants to merge 7 commits into
Conversation
Add-on to Workday#4100. Adds upgrade guide links to the README for v15 and v16 and a link to our older fonts package README in the fonts guide. [category:Documentation]
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Reduce cross-component drift in shared a11y guidance while keeping modal-only and non-modal-only rules distinct. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (3)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expands and aligns Accessibility documentation for Modal, Popup, and Dialog to the AI-codegen template (minimum structure, built-in behaviors, requirements, anti-patterns), so agents and consumers get consistent, accurate guidance across the popup family.
usePopupModel+ behavior hooks), including reading-order/aria-ownsDIY and when to prefer Dialog or Modal.aria-owns,useFocusRedirect, conditionalaria-expanded).Cross-component polish after review:
aria-expanded/aria-haspopupas an anti-pattern (non-modal only)Release Category
Documentation
Checklist
ready for reviewhas been added to PRFor the Reviewer
Where Should the Reviewer Start?
modules/react/modal/stories/Modal.mdx—## Accessibility(canonical modal / blocking pattern)modules/react/popup/stories/Popup.mdx—## Accessibility(compose hooks; prefer Dialog/Modal first)modules/react/dialog/stories/Dialog.mdx—## Accessibility(non-modal; confirm shared vs modal-only deltas)Areas for Feedback? (optional)
Focus on:
aria-modal="false"and Popup “hooks not auto-applied”)aria-expandedguidance and Modal’s anti-pattern are clear enough for codegenTesting Manually
yarn start) and open:Overlay/Popper/ButtonGroup, hook composition on Popup).Screenshots or GIFs (if applicable)
N/A — documentation only.