RTC NPM Resource Changed bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar RickR2H
RickR2H
12 Feb 2024

Pull Request for Issue #42679

Summary of Changes

In the current Cassiopeiatemplate the link hover colors don't work anymore. Also in the Bootstrap overrides of the custom properties in the theme color CSS of Cassiopeia files are ignored due to the loading order of the CSS files. See screenshot below:
image
Also added the --link-hover-color property in line with the --link-color

Testing Instructions

Checkout this PR and run in console: npm run build:css to build the CSS

Actual result BEFORE applying this Pull Request

Links hover colors don't work and Bootstrap custom properties overrides in the colors_standard.css and colors_alternative.css are rejected

Expected result AFTER applying this Pull Request

Links hover colors work and Bootstrap custom properties overrides in the colors_standard.css and colors_alternative.css are accepted.

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 RickR2H RickR2H - open - 12 Feb 2024
avatar RickR2H RickR2H - change - 12 Feb 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Feb 2024
Category Repository NPM Change Front End Templates (site)
avatar RickR2H RickR2H - change - 12 Feb 2024
Labels Added: NPM Resource Changed PR-4.4-dev
avatar RickR2H RickR2H - change - 12 Feb 2024
Title
Fix link hover colors and change color them files order
Fix link hover colors and change color theme CSS files order
avatar RickR2H RickR2H - edited - 12 Feb 2024
avatar sergejsteinz
sergejsteinz - comment - 24 Feb 2024

I have tested this item ✅ successfully


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

avatar hans2103
hans2103 - comment - 6 Mar 2024

Question... at global.scss you can clearly see that a prefix can be set

Scherm­afbeelding 2024-03-06 om 08 39 58

When a prefix is set both link-color and link-hover-color will not work

Scherm­afbeelding 2024-03-06 om 08 40 04

The prefix is missing in de declaration of both link-color and link-hover-color.
They should be written as:

  --#{prefix}link-color: #{$alternative-color-link};
  --#{prefix}link-color-rgb: #{to-rgb($alternative-color-link)};
  --cassiopeia-color-hover: #{$alternative-color-hover};
  --#{prefix}link-hover-color: #{$alternative-color-hover};
  --#{prefix}link-hover-color-rgb: #{to-rgb($alternative-color-hover)};
avatar RickR2H
RickR2H - comment - 6 Mar 2024

@hans2103 I do get it that to be fully Bootstrap compliant its better to use the prefixes. At the moment most of the custom properties in the Cassiopeia don't have prefixes. Adding prefixes to only the theme CSS files will break the template. Better address this in a separate PR.

avatar hans2103 hans2103 - test_item - 6 Mar 2024 - Tested successfully
avatar hans2103
hans2103 - comment - 6 Mar 2024

I have tested this item ✅ successfully on e0344a0


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

avatar Hackwar Hackwar - alter_testresult - 6 Mar 2024 - sergejsteinz: Tested successfully
avatar Quy Quy - change - 6 Mar 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 6 Mar 2024

RTC


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

avatar Quy Quy - change - 6 Mar 2024
Labels Added: RTC bug
avatar MacJoom
MacJoom - comment - 6 Mar 2024

Thank you!

avatar MacJoom MacJoom - change - 6 Mar 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-03-06 15:45:12
Closed_By MacJoom
avatar MacJoom MacJoom - close - 6 Mar 2024
avatar MacJoom MacJoom - merge - 6 Mar 2024

Add a Comment

Login with GitHub to post a comment