Skip to content

chore(skill): add Drawer and Dialog accessibility rules to frontend skill#2937

Merged
alx-xo merged 1 commit into
mainfrom
alexm/chore-update-frontend-skill-dialog-drawer
May 20, 2026
Merged

chore(skill): add Drawer and Dialog accessibility rules to frontend skill#2937
alx-xo merged 1 commit into
mainfrom
alexm/chore-update-frontend-skill-dialog-drawer

Conversation

@alx-xo
Copy link
Copy Markdown
Contributor

@alx-xo alx-xo commented May 19, 2026

Summary

  • Documents that DrawerContent requires DrawerTitle (and optionally DrawerDescription) to avoid console errors and satisfy screen reader accessibility
  • Same rule applied to DialogContentDialogTitle
  • Includes sr-only escape hatch for visually redundant titles

Root cause

Missing DrawerTitle/DialogTitle generates a console warning (DialogContent requires a DialogTitle for the component to be accessible for screen reader users) and breaks accessibility. This was not documented in the frontend skill, making it easy to miss when adding new drawers or dialogs. As this is an accessibility error it does not break anything but does generate error noise in console and DataDog

Recently fixed a bug about this here and adding to frontend skill to prevent this in future. #2929

Test plan

  • Audited all DrawerContent/DialogContent usages in the dashboard — 0 violations found
  • Verified ChatDetailPanel (the main DrawerContent consumer) renders DrawerTitle in all branches (loading, not-found, populated)

DrawerTitle/DialogTitle are required inside DrawerContent/DialogContent
to avoid console errors and satisfy screen reader requirements.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@alx-xo alx-xo requested a review from a team as a code owner May 19, 2026 23:43
@alx-xo alx-xo added the documentation Improvements or additions to documentation label May 19, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gram-docs-redirect Ready Ready Preview, Comment May 19, 2026 11:43pm

Request Review

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 19, 2026

⚠️ No Changeset found

Latest commit: 0914e23

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@alx-xo alx-xo requested review from a team and walker-tx May 19, 2026 23:47
@alx-xo alx-xo added this pull request to the merge queue May 20, 2026
Merged via the queue into main with commit 3f00725 May 20, 2026
65 checks passed
@alx-xo alx-xo deleted the alexm/chore-update-frontend-skill-dialog-drawer branch May 20, 2026 16:06
@github-actions github-actions Bot locked and limited conversation to collaborators May 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants