fix(search): fix a11y violations in Storybook stories #599 - #600
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe pull request updates form-control documentation and Search accessibility examples. It adds Search and Slider guidance, clarifies Checkbox and Dropdown behavior, and applies conditional ARIA associations, dialog semantics, focus management, and accessible labels to Search stories. ChangesForms and Search updates
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant SearchInput
participant ResultActionsDialog
participant FocusManager
SearchInput->>ResultActionsDialog: Open result-actions panel
ResultActionsDialog->>FocusManager: Defer focus into dialog
SearchInput->>ResultActionsDialog: Transfer focus with ArrowDown
ResultActionsDialog->>FocusManager: Restore focus to input on close
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed: dependency version conflict. Check your lock file or package.json. 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 |
♿ Accessibility — ✅ no blocking violationsNo accessibility violations in the components changed by this PR.
|
| Component | Rules | Stories |
|---|---|---|
| TEDI-Ready/Components/Form/InputGroup | aria-input-field-name ×3 |
3 |
Stories
- TEDI-Ready/Components/Form/InputGroup — All Controls, End Dynamic, Start Dynamic
🔕 Known issues — 21 stories marked todo (warn only)
Stories
- TEDI-Ready/Content/Calendar — Availability, Day Statuses, Header Variants, Multiple Selected Dates, No Controls, Range, With Footer, With Weeks Count
- TEDI-Ready/Content/TextGroup — Types
- TEDI-Ready/Layout/Header — Logged In With Sidenav, Logged Out With Search, With Inline Search, With Mobile Bottom Search
- TEDI-Ready/Layout/SideNav — Collapsible Toggle, Default, Medium Sidenav Items, Second Level Menu Items, Second Level Menu Items Parents Are Links, Small Sidenav Items, Third Level Menu Items, Third Level Menu Items Parents Are Links
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@skills/tedi-angular/references/forms.md`:
- Around line 158-159: Correct the ARIA guidance in
skills/tedi-angular/references/forms.md lines 158-159 and
tedi/components/form/search/search.stories.ts lines 322-326: state that
aria-controls is permitted on plain text inputs, while aria-expanded requires a
role="combobox" popup trigger; alternatively, the text input may trigger a
role="dialog" panel with aria-haspopup="dialog".
In `@tedi/components/form/search/search.stories.ts`:
- Line 367: Update the search story’s dialog popup behavior around the combobox
input and the element marked role="dialog": move focus into the dialog on
ArrowDown, handle Escape within the dialog, and restore focus to the combobox
input whenever the popup closes, including result selection and other close
paths.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 69eb1347-7ab8-40fd-be93-650347e9a508
📒 Files selected for processing (2)
skills/tedi-angular/references/forms.mdtedi/components/form/search/search.stories.ts
Summary by CodeRabbit
Documentation
Accessibility