joomla-cms
joomla-cms copied to clipboard
[4.3] Input field direction RTL
I am submitting this as a new feature but it could also be considered a bug fix.
Summary of Changes
If a document is in LTR then all input fields are LTR and vice versa for RTL.
However there are several types of data that should always be LTR such as urls, email addresses and telephone numbers (https://rtlstyling.com/posts/rtl-styling#form-inputs).
For a field type of url, email and tel we can add this to the layout.
However we often use the field type of text for urls eg the custom url for joomla updates this pr also adds the ability to add dir=ltr to the xml definition of a field.
There are also some instances where the field is defined completely in the php so the direction needs to be set there as well.
Testing Instructions
complete the three tests below in both an ltr and rtl language
1. Test the url layout
Enter a link into the Click URL field of a banner The inputting and display of the link should always be ltr
2. Test the direct input
Enter a link into the Install from URL field in the web installer The inputting and display of the link should always be ltr The placeholder text will also be LTR
3. Test the xml field
Enter a link to the Custom Url field of the joomla update The inputting and display of the link should always be ltr
Current Output
1. Test the url layout

2. Test the direct input


3. Test the xml field

Expected Output with this PR
1. Test the url layout

2. Test the direct input


3. Test the xml field

update to trigger drone
update to trigger drone again
Include the following:

resolve conflicts caused by change to array codestyle
This pull request has been automatically rebased to 5.0-dev. No new features will be merged into Joomla! 4.3 series. Joomla! 4.4 series is a bridge release to make migration from Joomla! 4 to 5 as smooth as possible.