a11y: labels for theme toggle, search, category chips - #43
Conversation
|
@KhyFee is attempting to deploy a commit to the create-node-app Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review available on request
Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📝 WalkthroughWalkthroughThe changes add explicit button types, selected-state attributes, accessible labels, and hidden decorative icon attributes to extension, template, and theme controls. ChangesInteractive control accessibility
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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 |
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 `@src/app/templates/TemplatesPageClient.tsx`:
- Around line 111-113: Update the category buttons rendered by categories.map in
TemplatesPageClient so each chip includes type="button" and aria-pressed
reflecting whether its category is selected, matching the existing All button
behavior.
- Around line 111-113: Update the All-category button handler in
TemplatesPageClient so it clears categoryParam through the existing
URL/query-state mechanism as well as resetting selectedCategory to ''. Keep
aria-pressed aligned with the cleared local and URL category state.
🪄 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: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 30eec269-4062-4eb0-bc53-d86a44a7c4b4
📒 Files selected for processing (3)
src/app/extensions/ExtensionsPageClient.tsxsrc/app/templates/TemplatesPageClient.tsxsrc/components/theme-toggle.tsx
|
Theme toggle, search One gap vs this PR’s own scope: named template chips in {categories.map((cat) => (
<button
type="button"
key={cat.slug}
onClick={() => setSelectedCategory(cat.slug)}
aria-pressed={selectedCategory === cat.slug}After that this can squash-merge. Vercel “Authorization required” on the fork is not a content blocker. |
|
Thanks @ulises-jeremias — really appreciate the clear review. Applied |
|
Thanks for merging #43, @ulises-jeremias — #44 now follows your single-shell |
Summary
aria-label(closes a11y: add aria-label to interactive elements missing them #38 partially)type="button"+aria-pressedaria-labelon extensions + templates filtersTest plan
Summary by CodeRabbit
Accessibility Improvements
Style