RocketChat / RocketChat/Rocket.Chat
[Bug] Accordion headers stay left-aligned in RTL languages
Nobody has claimed this yet.
- 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:
- Open
http://localhost:3000/account/preferences. - Change language to Arabic and save.
- Observe accordion section headers.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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