-
Notifications
You must be signed in to change notification settings - Fork 333
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
Remove legacy colour palette #3576
Conversation
|
||
$_govuk-colour-palette-modern: ( | ||
$govuk-colours: ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was quick 🚀
I know we have #3575 in progress but will we follow up with the Review app changes?
Things like the ?legacy=true
query handling:
app.use(middleware.legacy)
Plus all the href: "/" + legacyQuery
Nunjucks wrangling etc
@colinrotherham I imagine that's all going to be handled as part of #2794 |
All looking good 👍🏻 A couple of comments:
|
Good point that we never explicitly deprecated We could keep accepting the parameter and add a deprecation message, but given it won't actually work anymore, it doesn't strike me as technically being a deprecation, it's just a removal with fewer error messages. Though given we have deprecated the |
@querkmachine I've just found an example of it being used in govuk_publishing_components: https://github.com/alphagov/govuk_publishing_components/blob/99938773aef7a14e8f67c878f5ed0d9deddd09e0/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss#L7 There are quite a few examples in gpc, I suspect from when they had to support legacy frameworks on some of their apps that consume this gem. 99% of govuk isn't using compatibility mode which is why I suspect this is primarily a best practice, however this will mean we have a scenario where teams will be using
I'm leaning towards 1 for the sake of code hygiene and us following a positive deprecation model, but I'm open to discussion. |
Good practice for a v4 patch release to mop up any missed deprecations? |
I think a v4.6.x patch is probably a good shout. I can see the v4 releases still being used for a while, no matter how v5 development goes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a 2nd approval 🎨
146216d
to
4fd51c6
Compare
Remove legacy colour palette
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
The $legacy param was deprecated in the GOV.UK Frontend V5 release, which our govuk_publishing_components gem is working on bundling soon. See https://github.com/alphagov/govuk-frontend/releases/tag/v5.0.0 / alphagov/govuk-frontend#3576
govuk-frontend v5 deprecates the `$legacy` param in the `govuk-colour` mixin. Continuing to use it produces warnings for each instance of it in the CSS. It can be safely removed as alphagov/govuk-frontend#3576 notes that `it is non-operational and the parameter is only maintained to prevent compilation errors`.
The $legacy param was deprecated in the GOV.UK Frontend V5 release, which our govuk_publishing_components gem is working on bundling soon. See https://github.com/alphagov/govuk-frontend/releases/tag/v5.0.0 / alphagov/govuk-frontend#3576
The $legacy param was deprecated in the GOV.UK Frontend V5 release, which our govuk_publishing_components gem is working on bundling soon. See https://github.com/alphagov/govuk-frontend/releases/tag/v5.0.0 / alphagov/govuk-frontend#3576
The $legacy param was deprecated in the GOV.UK Frontend V5 release, which our govuk_publishing_components gem is working on bundling soon. See https://github.com/alphagov/govuk-frontend/releases/tag/v5.0.0 / alphagov/govuk-frontend#3576
The $legacy param was deprecated in the GOV.UK Frontend V5 release, which our govuk_publishing_components gem is working on bundling soon. See https://github.com/alphagov/govuk-frontend/releases/tag/v5.0.0 / alphagov/govuk-frontend#3576
Part of removing compatibility mode.
Closes #2792.
Changes
Removing legacy colour palette
$legacy
parameter from instances ofgovuk-colour
in components.border-top
style to account for removed variable.$govuk-use-legacy-palette
and$govuk-colours
settings.$_govuk-colour-palette-legacy
variable.$_govuk-colour-palette-modern
to$govuk-colours
, making it public and overrideable as per the original$govuk-colours
setting.Deprecations
We mistakenly did not deprecate the
govuk-colour
function's$legacy
parameter at the same time as the related code in v4.4.0, so it's being deprecated in this release instead.However, due to the removal of the other legacy colour palette code, it is non-operational and the parameter is only maintained to prevent compilation errors from outdated function references.
govuk-colour
to note the deprecation.govuk-colour
function to output a deprecation warning if the$legacy
parameter is used.