You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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
The text was updated successfully, but these errors were encountered: