-
Notifications
You must be signed in to change notification settings - Fork 13k
feat(a11y): Missing FieldGroup legend in accessibility page
#37134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 5c14897 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
|
WalkthroughAdds a visually hidden legend for a fieldset in the AccessibilityPage to satisfy WCAG by importing and using Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Areas to check:
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📓 Common learnings⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (1)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
apps/meteor/client/views/account/accessibility/AccessibilityPage.tsx (1)
138-140: Consider screen reader user experience with duplicate context.The legend text
t('Adjustable_layout')duplicates the accordion item title on line 136. Screen reader users will hear this label twice in quick succession:
- When navigating to the accordion item ("Adjustable_layout")
- When entering the fieldset ("Adjustable_layout")
While technically correct for WCAG compliance, consider one of these alternatives for better UX:
- Use a more descriptive legend that adds context, e.g.,
t('Adjustable_layout_preferences')ort('Adjustable_layout_settings').- Keep the current text if the duplication is acceptable in your UX testing.
You can validate the screen reader experience using tools like NVDA, JAWS, or VoiceOver to ensure the repetition isn't jarring.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
⛔ Files ignored due to path filters (1)
packages/apps-engine/deno-runtime/deno.lockis excluded by!**/*.lock
📒 Files selected for processing (1)
apps/meteor/client/views/account/accessibility/AccessibilityPage.tsx(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: 📦 Build Packages
- GitHub Check: Builds matrix rust bindings against alpine
- GitHub Check: CodeQL-Build
🔇 Additional comments (2)
apps/meteor/client/views/account/accessibility/AccessibilityPage.tsx (2)
138-140: Verify FieldGroup legend support and avoid redundant announcements
- Ensure
@rocket.chat/fuselage’sFieldGrouprenders a native<fieldset>and accepts a<legend>child without layout or accessibility regressions.- Consider whether using the same text as the accordion title causes redundant announcements for screen reader users or if a more descriptive legend is needed.
23-23: Verify VisuallyHidden export and consider stable react-aria version
Confirm thatVisuallyHiddenis correctly exported by your pre-releasereact-ariadependency and consider upgrading to the latest stable release (e.g., 3.43.2) to reduce risk from nightly builds.
d-gubert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert the deno.lock file. It seems out of scope for your PR and looks like it was generated by a different version of Deno
FieldGroup legend in profile page
FieldGroup legend in profile pageFieldGroup legend in accessibility page
FieldGroup legend in accessibility pageFieldGroup legend in accessibility page
For WCAG compability, a fieldset must have a legend. The FieldGroup-component used in the profile-page returns a fieldset. To assure WCAG-compability a visually hidden fieldset is added
WA-64
Summary by CodeRabbit
New Features
Chores