Skip to content
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

Fix our RTL support for RTL languages #4896

Merged
merged 4 commits into from
May 29, 2024
Merged

Fix our RTL support for RTL languages #4896

merged 4 commits into from
May 29, 2024

Conversation

hexylena
Copy link
Member

Currently when viewing the training materials in (e.g.) arabic, it does not render correctly according to RTL expectations.

Ignoring my lack of font support, everything is displayed incorrectly, on the left.
image

It should all be on the right, but note that the 'tab' on the box is still on the wrong side, it should be on the right.

image

This PR fixes that by replacing -left with -inline-start in the appropriate places and adding dir="auto" to ensure that if the GTN is loaded in an RTL language (through google translate) that we are giving the user the experience they are used to and expect.

See this for more details
https://firefox-source-docs.mozilla.org/code-quality/coding-style/rtl_guidelines.html

@shiltemann shiltemann marked this pull request as ready for review May 29, 2024 10:08
@hexylena hexylena merged commit fd2204c into main May 29, 2024
2 checks passed
@shiltemann shiltemann deleted the duck-basking branch July 9, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants