Add CSS for right-to-left language input fields (#5021)

This commit is contained in:
Raphael Michel
2025-04-25 09:13:58 +02:00
committed by GitHub
parent 698f687c54
commit 8796b4359c
2 changed files with 7 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ LANGUAGES_OFFICIAL = {
'en', 'de', 'de-informal'
}
LANGUAGES_RTL = {
# When adding more right-to-left languages, also update pretix/static/pretixbase/scss/_rtl.scss
'ar', 'hw'
}
LANGUAGES_INCUBATING = {

View File

@@ -47,3 +47,9 @@ html.rtl {
}
}
}
input[lang=ar], textarea[lang=ar], div[lang=ar], pre[lang=ar],
input[lang=hw], textarea[lang=hw], div[lang=hw], pre[lang=hw] {
/* Keep list of languages in sync with pretix._base_settings.LANGUAGES_RTL */
direction: rtl;
}