decaporg / decaporg/decap-cms

add right-to-left layout support

Open
#1,769 4 comments 0 reactions 0 assignees View on GitHub
area: i18n area: ui kind: enhancement pinned
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Is your feature request related to a problem? Please describe.**

Languages like Arabic, Persian, Hebrew, require right-to-left support for the admin layout.

**Describe the solution you'd like**

Enable right-to-left for the admin panel. This could be done:

1. Via configuration so that it is always enabled. This could work well if the site is uni-lingual and the layout can be pre-determined to be right-to-left.
2. Via a button on the admin panel that can switch the layout on demand. This is good for multi-lingual sites like English and Arabic which is common.
3. Per collection so the user can define collections that are right-to-left which will also work well for multi-lingual sites.

I guess we can start with #1 and then increase the complexity of the support afterwards.

**Describe alternatives you've considered**

I tried putting dir="rtl" in the root html element of the admin page. but it didn't work well (see the screenshot below).

**Additional context**

![09-24-2018 12-27-36 pm](https://user-images.githubusercontent.com/1318592/45965602-e898fb00-bff6-11e8-9227-bbb1f8a3e944.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.