feat(fuselage): improve accessibility of Message components#1821
feat(fuselage): improve accessibility of Message components#1821Mubashir2611 wants to merge 2 commits intoRocketChat:mainfrom
Conversation
|
|
Muberser seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
1 similar comment
|
Muberser seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Proposed changes
This PR enhances accessibility and responsiveness across all Message components to ensure WCAG 2.1 compliance and improve user experience across all devices and assistive technologies.
Accessibility Enhancements:
role="article",role="group",role="region") to Message, MessageHeader, MessageBody, MessageReactions, and MessageMetricsaria-labelattributes for screen reader contextaria-busyandaria-selectedstate indicators to Message component<span>to semantic<time>element withdateTimeproparia-pressedstate to MessageReaction for toggle indicationResponsive Design Improvements:
clamp(8px, 3vw, 20px)for adaptive spacingclamp(0.875rem, 2.5vw, 1rem)and proper line-heightTesting:
jest-axeaccessibility validationIssue(s)
Closes #1819
Further comments
All changes are backward compatible and follow WCAG 2.1 Level AA guidelines. The implementation uses existing theme variables and breakpoint mixins to maintain consistency with the design system.