-
Notifications
You must be signed in to change notification settings - Fork 328
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
Release v3.7.0 🚀 #1823
Merged
Merged
Release v3.7.0 🚀 #1823
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
govuk-design-system-ci
temporarily deployed
to
govuk-frontend-review-pr-1823
June 1, 2020 13:11
Inactive
govuk-design-system-ci
temporarily deployed
to
govuk-frontend-review-pr-1823
June 1, 2020 14:10
Inactive
govuk-design-system-ci
temporarily deployed
to
govuk-frontend-review-pr-1823
June 1, 2020 14:16
Inactive
Help users understand whether this change affects them by tying it to the deprecation warning – if they see the warning, they need to make a change; if they don't, no change is required.
hannalaakso
approved these changes
Jun 1, 2020
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.
🚢
Changes to
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New features
Add extra spacing between list items
If a list is hard to read because the items run across multiple lines, you can now add extra spacing between list items using the new
govuk-list--spaced
class.This was added in pull request #1775: Add list--spaced modifier. Thanks to @frankieroberto for raising this issue.
Use HTML for navigation items in the header
You can now use HTML for a navigation item in the header component, using the new
html
option.This was added in pull request #1819: Add the ability to specify HTML for a navigation item. Thanks to @adamsilver.
Import settings, tools and helpers CSS in one line
You can now import
node_modules/govuk-frontend/govuk/base
, instead of importingsettings
,helpers
andtools
separately.Sass now compiles faster
GOV.UK Frontend's Sass files now compile to CSS faster, because we've changed the way dependencies work when you import them.
If you already import
node_modules/govuk-frontend/govuk/all
in your Sass file, you do not need to do anything. Sass will automatically compile faster.If you import specific parts of GOV.UK Frontend in your Sass file instead, you can now make Sass compile faster by importing
base
then a component'sindex
file. This will avoid GOV.UK Frontend importing dependencies multiple times.For example:
Find out more about importing CSS.
This was added in pull request #1804: Allow components to be imported without dependencies. Thanks to @kevindew for raising this issue.
Collapse breadcrumb component on mobile
You can now collapse the breadcrumb component on mobile using the new
collapseOnMobile
option, so it:This was added in pull request #1754: Add collapseOnMobile breadcrumbs flag. Thanks to @vanitabarrett and @miaallers.
Back links are easier to select
The back link component is now:
This was added in pull request #1753: Make back link arrow consistent with breadcrumb component. Thanks to @vanitabarrett and @miaallers.
Deprecated features
Importing from the
core
andoverrides
layers withoutbase
If you import specific files from the
core
oroverrides
layers, you’ll now see a deprecation warning when compiling Sass if you do not importnode_modules/govuk-frontend/govuk/base
first.To fix the warning, import
node_modules/govuk-frontend/govuk/base
first. For example:If you do not import
node_modules/govuk-frontend/govuk/base
first, your service will no longer work from GOV.UK Frontend v4.0.0.This was added in pull request #1807: Warn if importing core, overrides without dependencies.
Fixes
We’ve made fixes to GOV.UK Frontend in the following pull requests: