Open slowbot opened 4 years ago
All Drupal sites have a dir attribute in the html tag. (See selfhelf.courts.ca.gov.) When the language is set to a rtl language, it's [dir="rtl"]. All it does by default is change the text direction. (See w3schools)
In places where margins, positioning etc need to be changed, I would just add the appropriate css inline [dir="rtl"] .my class { }
. For demo purposes you could add another select to the theme switcher to switch between rtl and ltr.
Here's an example of a multilingual Drupal 8 site: http://iraplegalinfo.org/en/language/selection
We'll need to investigate and implement right to left language support in Pattern Lab in order to test individual components.
Initial tests showed that applying the dir="rtl" class to the html element of Pattern Lab did not have an effect but applying it to the body element did effect the components.
@zakiya