Skip to content

refactor: Message Components for Accessibility and Responsiveness #1819

@Mubashir2611

Description

@Mubashir2611
  1. Description
    Several UI components in packages/fuselage/src/components/Message/ lack accessibility features such as appropriate ARIA attributes, roles, keyboard navigation support, or focus management. Additionally, some components are not fully responsive and may not adapt gracefully to different device sizes or themes. This impacts both usability and inclusiveness of Rocket.Chat's UI.

  2. Proposed Solution

  • Audit all Message components for accessibility and responsiveness gaps.
  • Add ARIA roles and attributes (e.g., role="region", aria-label, etc.) to support screen readers.
  • Ensure all interactive elements are reachable and usable via keyboard navigation, implementing logical focus order and focus trapping where necessary.
  • Refactor layouts using modern CSS techniques (Flexbox, Grid, clamp()) for responsive design across mobile, tablet, and desktop screens.
  • Replace hardcoded styles with theme variables or CSS custom properties to support dynamic theming and maintain strong color contrast.
  • Update color, font size, padding, etc. to meet WCAG 2.1 guidelines.
  • Add or enhance tests: unit tests, a11y checks with jest-axe, and potentially E2E for critical flows.
  1. Why this matters
  • Ensures Rocket.Chat is inclusive and usable for all users, including those relying on assistive technologies.
  • Makes the product more robust and ready for enterprise or public sector adoption, where accessibility is a requirement.
  • Enhances the experience for all users across varied devices and display settings.
  • Aligns Rocket.Chat's UI framework with industry standards and best practices, supporting GSoC-level contributions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions