-
Notifications
You must be signed in to change notification settings - Fork 347
Rework the rebrand toggling system to be 'on' by default #6298
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
base: main
Are you sure you want to change the base?
Conversation
Rendered HTML changes to npm packagediff --git a/packages/govuk-frontend/dist/govuk/components/task-list/template-default.html b/packages/govuk-frontend/dist/govuk/components/task-list/template-default.html
index 339af36b7..2d920b8a8 100644
--- a/packages/govuk-frontend/dist/govuk/components/task-list/template-default.html
+++ b/packages/govuk-frontend/dist/govuk/components/task-list/template-default.html
@@ -1,8 +1,8 @@
<ul class="govuk-task-list">
- <li class="govuk-task-list__item govuk-task-list__item--with-link">
+ <li class="govuk-task-list__item govuk-task-list__item--with-link :hover">
<div class="govuk-task-list__name-and-hint">
- <a class="govuk-link govuk-task-list__link" href="#" aria-describedby="task-list-1-status">
+ <a class="govuk-link govuk-task-list__link :hover" href="#" aria-describedby="task-list-1-status">
Company Directors
</a>
</div>
Action run for c8816fb |
Other changes to npm packagediff --git a/packages/govuk-frontend/dist/govuk/components/task-list/fixtures.json b/packages/govuk-frontend/dist/govuk/components/task-list/fixtures.json
index fc95b555f..187fd691f 100644
--- a/packages/govuk-frontend/dist/govuk/components/task-list/fixtures.json
+++ b/packages/govuk-frontend/dist/govuk/components/task-list/fixtures.json
@@ -7,12 +7,14 @@
"items": [
{
"title": {
- "text": "Company Directors"
+ "text": "Company Directors",
+ "classes": ":hover"
},
"href": "#",
"status": {
"text": "Completed"
- }
+ },
+ "classes": ":hover"
},
{
"title": {
@@ -44,7 +46,7 @@
"description": "",
"pageTemplateOptions": {},
"screenshot": false,
- "html": "<ul class=\"govuk-task-list\">\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-1-status\">\n Company Directors\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-1-status\">\n Completed\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-2-status\">\n Registered company details\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-2-status\">\n <strong class=\"govuk-tag govuk-tag--blue\">\n Incomplete\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-3-status\">\n Business plan\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-3-status\">\n <strong class=\"govuk-tag govuk-tag--blue\">\n Incomplete\n </strong>\n </div>\n </li>\n</ul>"
+ "html": "<ul class=\"govuk-task-list\">\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link :hover\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link :hover\" href=\"#\" aria-describedby=\"task-list-1-status\">\n Company Directors\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-1-status\">\n Completed\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-2-status\">\n Registered company details\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-2-status\">\n <strong class=\"govuk-tag govuk-tag--blue\">\n Incomplete\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-3-status\">\n Business plan\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-3-status\">\n <strong class=\"govuk-tag govuk-tag--blue\">\n Incomplete\n </strong>\n </div>\n </li>\n</ul>"
},
{
"name": "with hint text and additional states",
Action run for c8816fb |
📋 StatsNo changes to any distributed file sizes! Action run for c8816fb |
Those percy tests throw a wrench in this... We're setting rebranded examples of specific components manually using It's much trickier to reverse the polarity so that most examples are using the rebrand and these odd examples are using the old brand because the rebrand feature flag is 'addative' to the govuk-frontend baseline experience and we don't have a way to reaach in and remove that class from within examples. If we build a system for that it might get complicated. I'm putting this back into draft for now and will have a think about if this is feasible without making the review app more messy or more complex. |
What
Changes the toggling system in the review app so that now you have to opt in to see the old brand rather than the other way around. Specifically,
/set-rebrand
is now/unset-rebrand
which sets ause_old_brand
cookie rather than ause_rebrand
cookie which negatively effects the setting ofuseRebrand
rather than positively.This also updates tests and the docs for the toggling system.
Why
It's been out for a while now!
Imforned naturally as part of work on #6247. It's easier on the designers doing the auditing to see the new brand over the old brand without having to turn it on and set their cookies.
Notes
The only reason I've observed to keep the cookie which sets it to default old or default new is for checking the full page examples. Otherwise I wonder if we need to set cookies at all and can just rely on the 'show all states' functionality to see the old brand in action.
I wonder how useful that doc is and if any of the design system devs have referred to it over the course of the rebrand work rather than just checking the code + commit history.