Patch #6012
closedRTL layout
100%
Description
Hello,
Following #5972 I thought of a better way to implement RTL support.
Instead of using a theme, which affects all users (unless installing theme changer, see #5993), I moved the css file to the standard stylesheet directory, named rtl.css, and added a link tag if current language is Hebrew (suppose Arabic support will be added, it will need to be added to this patch as well).
Another downside that is handled with this method is the dependency between the language and the selected theme - the rtl theme uses 'alternate' as its base theme, so if the admin wants to use it, he must either use the alternate theme or manually edit the css file to include some other theme.
With this new method, this dependency is removed, and any theme should work with it.
rtl.css should be added to public/stylesheets, and the rtl theme may be removed
Files
Related issues