Closed mlthrk closed 7 months ago
Actually this is a regression but we can accept a bug since exists in long while.
:dir="$panel.direction"
is provided from direction()
method:
https://github.com/getkirby/kirby/blob/4.1.2/panel/src/panel/panel.js#L158-L160
And translation.direction
is provided from user language:
https://github.com/getkirby/kirby/blob/4.1.2/src/Panel/View.php#L299-L301
Seems $direction
prop doesn't work/run:
https://github.com/getkirby/kirby/blob/4.1.2/src/Panel/View.php#L149-L160
Description
The content of panel fields (Text, Textarea, Writer) is not displayed in the writing direction of the selected content language. Instead, the writing direction of the selected user language is used, with the effect that 'rtl' lanugages are shown 'ltr' and vice versa, if the writing direction of the content language and of the user language do not match.
Expected behavior
Display correct writing direction for editing texts when switching content language in panel, independent of the selected user language.
To reproduce
Your setup
Kirby Version
4.1.2 (seems to have started in 3.6, though, see below)
Additional context
User vandelay decribes the problem with screenshots in the Kirby forum