RTC Backend Template NPM Resource Changed Frontend Template bug PR-5.4-dev RTL Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
18 Feb 2026

Pull Request resolves #46904 .

Summary of Changes

  1. Removes the need for a seperate rtl css stylesheet
  2. Stops reversing the hours/minutes cell

The code was using direction: rtl to visually flip the grid.

But:
RTL was designed for text flow — not structural layout inversion of tables with mixed content (like time selectors).
The time row is semantically LTR (HH:MM), so it should never inherit RTL layout direction.

This PR keeps the calendar RTL where it matters (header + day grid), but force only the time row to behave LTR without breaking table layout.

Testing Instructions

This has js and css changes so either use a prebuilt package or npm ci

Install the Persian Farsi language
Check the display of the calendar field in BOTH the site and the admin interface (the publish date is a good field to check)
You can check that the fields are hours or minutes by simply observing how big the select is.

Actual result BEFORE applying this Pull Request

screenshot showing some missing styling AND the time is displayed minutes/hours

image

Expected result AFTER applying this Pull Request

image

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar brianteeman brianteeman - open - 18 Feb 2026
avatar brianteeman brianteeman - change - 18 Feb 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Feb 2026
Category Repository NPM Change JavaScript Layout
avatar brianteeman brianteeman - change - 18 Feb 2026
The description was changed
avatar brianteeman brianteeman - edited - 18 Feb 2026
avatar brianteeman brianteeman - change - 18 Feb 2026
The description was changed
avatar brianteeman brianteeman - edited - 18 Feb 2026
avatar richard67 richard67 - change - 18 Feb 2026
The description was changed
avatar richard67 richard67 - edited - 18 Feb 2026
avatar richard67
richard67 - comment - 18 Feb 2026

@brianteeman No idea why the js linter does not complain. But as far as I can see you have used tabs for indentation in the js, but we use spaces. Could you check and if necessary correct that?

avatar brianteeman brianteeman - change - 18 Feb 2026
Labels Added: NPM Resource Changed Frontend Template bug PR-5.4-dev RTL
avatar brianteeman
brianteeman - comment - 18 Feb 2026

@richard67 i converted it to spaces as requested but please note that it was tabs before. And just looking at the files in this folder they are a mix of tabs and spaces

also please add the admin template tag as this fix is universal

avatar richard67
richard67 - comment - 18 Feb 2026

@richard67 i converted it to spaces as requested but please note that it was tabs before. And just looking at the files in this folder they are a mix of tabs and spaces

Oh, I'm sorry, it was not my intention that you change it completely in these js files. I only meant some places where you had added or modified code. Maybe better revert the last commit, then I can make a few change suggestions so you know what I meant.

Again, sorry for the trouble, I was not clear enough.

also please add the admin template tag as this fix is universal

Done.

avatar brianteeman brianteeman - change - 18 Feb 2026
Labels Added: Backend Template
293f13e 18 Feb 2026 avatar brianteeman cs
336920f 18 Feb 2026 avatar brianteeman asset
avatar richard67
richard67 - comment - 18 Feb 2026

@brianteeman Now it looks good. Again sorry for the inconvenience, it was my mistake.

avatar richard67
richard67 - comment - 18 Feb 2026

RTL was designed for text flow — not structural layout inversion of tables with mixed content (like time selectors).
The time row is semantically LTR (HH:MM), so it should never inherit RTL layout direction.

I fully agree with that, 100% right.

avatar krishnagandhicode krishnagandhicode - test_item - 18 Feb 2026 - Tested successfully
avatar krishnagandhicode
krishnagandhicode - comment - 18 Feb 2026

I have tested this item ✅ successfully on 336920f

Tested successfully using the prebuilt package!
In the RTL layout (tested with Persian), the calendar highlighting applies correctly and the time selector successfully maintains its ltr direction.
Screenshot 2026-02-18 174418

@brianteeman Just wanted to say I learned a lot looking at your commits here. Instead of adding another SCSS patch, dropping the redundant calendar-rtl.css entirely and using that JS DOM swap for the time row was brilliant. Really cool to see "the best code is no code" in action. Thanks for taking this over and showing how it's done!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46910.

avatar mortezahonar mortezahonar - test_item - 18 Feb 2026 - Tested successfully
avatar mortezahonar
mortezahonar - comment - 18 Feb 2026

I have tested this item ✅ successfully on 336920f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46910.

Great and enjoyable. Thank you very, very much.

Screenshot of time - test.

avatar richard67 richard67 - change - 18 Feb 2026
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 18 Feb 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46910.

avatar muhme muhme - change - 19 Feb 2026
Labels Added: RTC
avatar muhme
muhme - comment - 19 Feb 2026

✅ Final test before merge using JBT

  • Installed de-DE, set for super user and RTL language ur-PK and second user using it
  • Seen minutes left and hours right
before
  • Grafted PR's full package
    • Checked in backend and frontend for ur-PK, de-DE and en-UK selected date is highlighted, current date green underscored, hours left and minutes right
    • No related JS console errors, no related Joomla log messages
after
avatar muhme muhme - close - 19 Feb 2026
avatar muhme muhme - merge - 19 Feb 2026
avatar muhme muhme - change - 19 Feb 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-02-19 09:42:16
Closed_By muhme
avatar muhme
muhme - comment - 19 Feb 2026

Thank you @brianteeman for your contribution. Thank you @richard67 for support. Thank you @krishnagandhicode and @mortezahonar for testing.

avatar brianteeman
brianteeman - comment - 19 Feb 2026

thanks

Add a Comment

Login with GitHub to post a comment