lukin / keywind

Keywind is a component-based Keycloak Login Theme built with Tailwind CSS
Apache License 2.0
779 stars 274 forks source link

Add dir attribute in the html tag #69

Open maxsivkov opened 12 months ago

maxsivkov commented 12 months ago

To respect RTL languages keywind has to use dir HTML attribute https://html.spec.whatwg.org/multipage/dom.html#the-dir-attribute

So the suggestion is to modify template.ftl with following

  <html <#if realm.internationalizationEnabled> lang="${locale.currentLanguageTag}"</#if> dir=auto>
paulwer commented 11 months ago

hey @maxsivkov have you done a test yourself? feel free to PR this change <3