Unit/System Tests NPM Resource Changed PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar krishnaGandhi11
krishnaGandhi11
8 Mar 2025

Pull Request for Issue #45082

Summary of Changes :
-Fixed the issue where the selected day in the calendar was not highlighted in the frontend.
-Applied correct styling to match the backend calendar appearance.

Testing Instructions :
-Open an article and try to set a publishing date (this opens the calendar).
-Select a date and check if it gets highlighted properly.
-Test on multiple browsers (Chrome, Firefox, Edge, Safari).

Actual result BEFORE applying this Pull Request :
-The selected date in the calendar was not highlighted in the frontend.
-The backend calendar worked correctly, but the frontend did not.
Before

Expected result AFTER applying this Pull Request :
-The selected date should now be properly highlighted in the frontend calendar, just like in the backend.

Fixed.mp4

Fixes #45082

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar krishnaGandhi11 krishnaGandhi11 - open - 8 Mar 2025
avatar krishnaGandhi11 krishnaGandhi11 - change - 8 Mar 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Mar 2025
Category Repository NPM Change
avatar exlemor exlemor - test_item - 8 Mar 2025 - Tested successfully
avatar exlemor
exlemor - comment - 8 Mar 2025

I have tested this item ✅ successfully on 052f224

I have tested this successfully via Download package. Good job Krishna.


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

avatar chmst
chmst - comment - 8 Mar 2025

Sorry, but this is wrong. We cannot use hard coded colours. My screen shows clearly that there is a bootstap variable missing.

avatar krishnaGandhi11
krishnaGandhi11 - comment - 8 Mar 2025

Sorry, but this is wrong. We cannot use hard coded colours. My screen shows clearly that there is a bootstap variable missing.

Hey @chmst, Thank you for reviewing my PR, I will be raising another PR soon, fixing this issue.

avatar krishnaGandhi11 krishnaGandhi11 - change - 8 Mar 2025
Labels Added: NPM Resource Changed PR-5.2-dev
avatar joomla-cms-bot joomla-cms-bot - change - 8 Mar 2025
Category Repository NPM Change Repository NPM Change Front End Templates (site)
avatar brianteeman
brianteeman - comment - 8 Mar 2025

Sorry this is completely wrong.

The problem is that the css for the calendar field is using a bootstrap variable that is for some reason not present in the cassiopeia template.

The correct fix is not to hard code colours (both your approaches are hard coding colours) but to understand why some of the bootstrap variables are not present in the cassiopeia template and then to fix the cassiopeia template so that those variables are present.

There should be no need to even touch the css file for the calendar field

avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2025
Category Repository NPM Change Front End Templates (site) Repository NPM Change Front End Templates (site) Unit Tests
avatar krishnaGandhi11
krishnaGandhi11 - comment - 10 Mar 2025

Changes Made:
Defined missing Bootstrap variables in :root {} inside templates/cassiopeia/index.php to ensure proper styling of buttons:
--btn-primary-bg: #007bdb;
--btn-primary-color: #ffffff;
--btn-primary-border: #00a1e3;
Ensured that bootstrap.loadCss is included in the Cassiopeia template to properly load Bootstrap styles.
Fixed a typo in tests/System/README.md for consistency.

avatar brianteeman
brianteeman - comment - 10 Mar 2025

One topic per pull request please. Your changes to the tests readme are unrelated to the subject of this pr

avatar brianteeman
brianteeman - comment - 10 Mar 2025

Why are you loading bootstrap CSS twice. The Cassiopeia template is already using bootstrap.

avatar krishnaGandhi11 krishnaGandhi11 - change - 10 Mar 2025
Labels Added: Unit/System Tests
avatar krishnaGandhi11
krishnaGandhi11 - comment - 10 Mar 2025

Why are you loading bootstrap CSS twice. The Cassiopeia template is already using bootstrap.

Yeah sorry about that, as i have to first pull before pushing in that process, it happened by mistake.

avatar krishnaGandhi11
krishnaGandhi11 - comment - 10 Mar 2025

Hey @brianteeman I have removed the Double boot-strap loading issue, please look into this now.

avatar brianteeman
brianteeman - comment - 10 Mar 2025

sorry but this is completely wrong - you are now loading bootstrap three times.

Maybe someone else can help you on this as I am clearly failing to make myself understood

avatar krishnaGandhi11
krishnaGandhi11 - comment - 10 Mar 2025

sorry but this is completely wrong - you are now loading bootstrap three times.

Maybe someone else can help you on this as I am clearly failing to make myself understood

https://github.com/user-attachments/assets/39bdd6ab-7bc3-48b4-a622-0270c501fbe6
I am sorry, @brianteeman now it's fine ?

avatar brianteeman
brianteeman - comment - 10 Mar 2025

no. Stop and think. Is the cassiopeia template already using bootstrap. The answer is yes. So if the answer is yes you dont need to additionally load bootstrap!!

Sorry but this is my last comment - if I have to walk you through every step then I might as well fix it myself - maybe someone else can help you

avatar krishnaGandhi11
krishnaGandhi11 - comment - 10 Mar 2025

no. Stop and think. Is the Cassiopeia template already using bootstrap? The answer is yes. So if yes, you don't need to load bootstrap additionally!!

Sorry but this is my last comment - if I have to walk you through every step then I might as well fix it myself - maybe someone else can help you

I am sorry now I know that every bootstrap loading I was trying to do was unnecessary, now in the last PR Update I have fixed that.

avatar exlemor exlemor - test_item - 11 Mar 2025 - Tested successfully
avatar exlemor
exlemor - comment - 11 Mar 2025

I have tested this item ✅ successfully on e20d16e

I have tested this successfully.

Hoping the coding part meets the standards - from a visual perspective it is corrected.


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

avatar fgsw
fgsw - comment - 11 Mar 2025

@krishnaGandhi11 Can you please change the title, as it is used for the changelog. Hav a look to other pull requests so it should be something like "[5.2] Calendar: Highlight selected day in frontend". The issue-number isn't needed.

avatar krishnaGandhi11 krishnaGandhi11 - change - 11 Mar 2025
Title
fix(calendar): highlight selected day in frontend issue:#45082
[5.2] Calendar: Highlight selected day in frontend
avatar krishnaGandhi11 krishnaGandhi11 - edited - 11 Mar 2025
avatar krishnaGandhi11
krishnaGandhi11 - comment - 11 Mar 2025

@krishnaGandhi11 Can you please change the title, as it is used for the changelog. Hav a look to other pull requests so it should be something like "[5.2] Calendar: Highlight selected day in frontend". The issue-number isn't needed.

Sure, it’s done.

avatar krishnaGandhi11 krishnaGandhi11 - change - 11 Mar 2025
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2025-03-11 18:32:57
Closed_By krishnaGandhi11
avatar krishnaGandhi11 krishnaGandhi11 - close - 11 Mar 2025
avatar krishnaGandhi11 krishnaGandhi11 - change - 12 Mar 2025
The description was changed
avatar krishnaGandhi11 krishnaGandhi11 - edited - 12 Mar 2025
avatar krishnaGandhi11 krishnaGandhi11 - change - 12 Mar 2025
The description was changed
avatar krishnaGandhi11 krishnaGandhi11 - edited - 12 Mar 2025

Add a Comment

Login with GitHub to post a comment