RocketChat / RocketChat/Rocket.Chat

[Bug] Accordion headers stay left-aligned in RTL languages

Open
#38,660 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Accordion headers are always left-aligned, even when the UI is in RTL languages (for example Arabic).
This causes incorrect layout direction in pages that use AccordionItem (text should align to the right in RTL).

Video demo of the issue:

https://github.com/user-attachments/assets/c7c00ada-f9e0-4a26-8390-c009967945cd

Steps to reproduce:
  1. Open http://localhost:3000/account/preferences.
  2. Change language to Arabic and save.
  3. Observe accordion section headers.
  4. Notice header text remains left-aligned instead of RTL-aligned.
Expected behavior:

Accordion header text should follow writing direction:

  • LTR: start/left alignment
  • RTL: start/right alignment
Actual behavior:

Accordion header text remains left-aligned in RTL pages.

Server Setup Information:
  • Version of Rocket.Chat Server: 8.1.0-develop (local source)
  • License Type:
  • Number of Users:
  • Operating System:
  • Deployment Method: Local development
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
Client Setup Information
  • Desktop App or Browser Version: Browser (Chrome)
  • Operating System: Ubuntu
Additional context

This impacts multiple screens, since AccordionItem is reused across account/admin areas.

Relevant logs:

N/A (UI alignment issue)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the reusable AccordionItem component and reproduce the issue at /account/preferences with Arabic selected. Verify the header alignment in both Arabic and an LTR language; done means headers align to the writing direction without regressing LTR pages.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, internationalization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.