-
Notifications
You must be signed in to change notification settings - Fork 1
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
LTD-4702 Upgrade lite-frontend to use govuk-frontend v4.8.0 #1799
LTD-4702 Upgrade lite-frontend to use govuk-frontend v4.8.0 #1799
Conversation
8e750b9
to
28652e5
Compare
d815a32
to
ad1740d
Compare
943b7ac
to
e15ef51
Compare
@@ -10,7 +10,7 @@ | |||
} | |||
|
|||
.lite-case-note__controls { | |||
border: $govuk-border-width-form-element-error solid $govuk-error-colour; |
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.
I'm presuming all of these border-width things are going because this variable doesn't exist anymore but what is setting the border width now instead?
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.
good question. this variable was overriding the border width but now there is no override. this change is explained here: https://github.com/alphagov/govuk-frontend/releases/tag/v4.0.0
Remove deprecated $govuk-border-width-form-element-error variable
In GOV.UK Frontend v3.8.0, we made the border width of form elements in their error state the same as for form elements in their normal state and deprecated the $govuk-border-width-form-element-error variable.Before, an element's border got thicker to show the element was in an error state. However, elements in their focused state also have a thicker border. As a result, when users focused an element in an error state, the only visible border-change was from red to black. Not all users could perceive this change. So, we reduced the element border's width, to make sure its thickness changes when users focus.
We've now removed $govuk-border-width-form-element-error completely.
If you’re referencing $govuk-border-width-form-element-error in your own Sass, you must remove it. If you're also defining your own error state, you only need to change the border colour.
You should avoid overriding the border width. For example, replace border: $govuk-border-width-form-element-error solid $govuk-error-colour; with border-color: $govuk-error-colour;.
You should also remove any override of $govuk-border-width-form-element-error from your Sass. This override no longer does anything.
This change was introduced in alphagov/govuk-frontend#1963.
e15ef51
to
4ba6798
Compare
4ba6798
to
e416859
Compare
Aim
This upgrades lite-frontend to use govuk-frontend v4.8.0 which is a recent release for govuk-frontend including the crown logo changes.
The GOV.UK team released v5.0.0 after v4.7.0 so this was tried initially but as there are many breaking changes that may take time to resolve, we have opted for v4.8.0 which is the latest release for the 4.x series.
LTD-4702
Below is my original draft PR description: