Skip to content

[6.0] Remove template special color #42017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: 6.0-dev
Choose a base branch
from

Conversation

wilsonge
Copy link
Contributor

@wilsonge wilsonge commented Oct 1, 2023

Summary of Changes

Removes the template special color from core. The only potential place this is used is in toolbar secondary buttons. As far as I can tell no core extensions actually use this. But there is a chance third parties do. We now revert back to using the default bootstrap secondary color in this case.

This is a b/c break if other people are using this CSS Var. However I can't see any obvious way for us to actually deprecate CSS variables.

Testing Instructions

Change the class of an existing button from btn-*** (success/error/action) etc. to btn-secondary.

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

@wilsonge wilsonge requested a review from chmst as a code owner October 1, 2023 22:17
@HLeithner HLeithner added the bug label Oct 5, 2023
@Cybernary
Copy link

Have tested this successfully.

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators NPM Resource Changed This Pull Request can't be tested by Patchtester labels Oct 6, 2023
@HLeithner HLeithner added this to the Joomla! 5.0.1 milestone Oct 7, 2023
@HLeithner
Copy link
Member

@wilsonge deprecation is at least needed in the manual. is it critical to remove it in 5.0 or 5.x?

@HLeithner HLeithner changed the title [5.0] Remove template special color [6.0] Remove template special color Oct 18, 2023
@HLeithner HLeithner changed the base branch from 5.0-dev to 5.1-dev October 18, 2023 19:04
@Quy Quy added PR-6.0-dev and removed PR-5.0-dev labels Mar 13, 2024
@HLeithner HLeithner changed the title [6.0] Remove template special color [5.1] Remove template special color Apr 24, 2024
@webmasterab
Copy link
Contributor

Tested this but it seems that this has already been resolved.

For patch test
patch test before
installed after patch test
patch test_path installed
Removed again after patch
patch test patch revert

@HLeithner HLeithner changed the base branch from 5.1-dev to 5.2-dev September 2, 2024 08:28
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 5.2-dev.

@HLeithner HLeithner changed the title [5.1] Remove template special color [5.2] Remove template special color Sep 2, 2024
@Hackwar
Copy link
Member

Hackwar commented Nov 22, 2024

@wilsonge could you update the PR to solve the conflicts?

@Hackwar
Copy link
Member

Hackwar commented Jan 16, 2025

@wilsonge Any news about this one?

@rdeutz rdeutz changed the base branch from 5.2-dev to 6.0-dev January 18, 2025 15:42
@rdeutz rdeutz removed the PR-5.2-dev label Jan 18, 2025
@rdeutz
Copy link
Contributor

rdeutz commented Jan 18, 2025

I have solved ther conflicts this needs to be tested

@rdeutz rdeutz changed the title [5.2] Remove template special color [6.0] Remove template special color Jan 18, 2025
@Bodge-IT
Copy link
Contributor

Tested, btn-secondary resolved to same colour before and after patch. Special color gone from Atum options.

No 'result selection' options in https://issues.joomla.org/tracker/joomla-cms/42017

@@ -842,7 +842,7 @@ CREATE TABLE IF NOT EXISTS `#__template_styles` (
--

INSERT INTO `#__template_styles` (`id`, `template`, `client_id`, `home`, `title`, `inheritable`, `parent`, `params`) VALUES
(10, 'atum', 1, '1', 'Atum - Default', 1, '', '{"hue":"hsl(214, 63%, 20%)","bg-light":"#f0f4fb","text-dark":"#495057","text-light":"#ffffff","link-color":"#2a69b8","special-color":"#001b4c","colorScheme":"os","monochrome":"0","loginLogo":"","loginLogoAlt":"","logoBrandLarge":"","logoBrandLargeAlt":"","logoBrandSmall":"","logoBrandSmallAlt":""}'),
(10, 'atum', 1, '1', 'Atum - Default', 1, '', '{"hue":"hsl(214, 63%, 20%)","bg-light":"#f0f4fb","text-dark":"#495057","text-light":"#ffffff","link-color":"#2a69b8","monochrome":"0","loginLogo":"","loginLogoAlt":"","logoBrandLarge":"","logoBrandLargeAlt":"","logoBrandSmall":"","logoBrandSmallAlt":""}'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert removing "colorScheme":"os"?

@QuyTon QuyTon added the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Feb 7, 2025
@Bodge-IT
Copy link
Contributor

@wilsonge Can you please have a look at this and see if it's still relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Dark Mode Language Change This is for Translators NPM Resource Changed This Pull Request can't be tested by Patchtester PR-6.0-dev Updates Requested Indicates that this pull request needs an update from the author and should not be tested.
Projects
None yet
Development

Successfully merging this pull request may close these issues.