Skip to content

Commit

Permalink
Merge pull request #1566 from alphagov/release-v3.2.0
Browse files Browse the repository at this point in the history
Release v3.2.0
  • Loading branch information
NickColley authored Sep 11, 2019
2 parents bc8e5d4 + 12c320d commit 3ef1d76
Show file tree
Hide file tree
Showing 14 changed files with 60 additions and 28 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## 3.2.0 (Feature release)

### New features

#### Add classes to the form group wrapper of the character count component
Expand Down
2 changes: 1 addition & 1 deletion dist/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.0
3.2.0
3 changes: 0 additions & 3 deletions dist/govuk-frontend-3.1.0.min.css

This file was deleted.

3 changes: 3 additions & 0 deletions dist/govuk-frontend-3.2.0.min.css

Large diffs are not rendered by default.

File renamed without changes.
3 changes: 0 additions & 3 deletions dist/govuk-frontend-ie8-3.1.0.min.css

This file was deleted.

1 change: 1 addition & 0 deletions dist/govuk-frontend-ie8-3.2.0.min.css

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions package/govuk/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@
box-shadow: inset 0 0 0 1px $govuk-focus-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited links a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors so
// so that unvisited links styled as buttons do not end up with dark blue
// text when focussed.
@include govuk-compatibility(govuk_template) {
&:link:focus {
color: $govuk-button-text-colour;
}
}

&:focus:not(:active):not(:hover) {
border-color: $govuk-focus-colour;
color: $govuk-focus-text-colour;
Expand Down
14 changes: 14 additions & 0 deletions package/govuk/components/character-count/macro-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@
"description": "Options for the errorMessage component (e.g. text).",
"isComponent": true
},
{
"name": "formGroup",
"type": "object",
"required": false,
"description": "Options for the form-group wrapper",
"params": [
{
"name": "classes",
"type": "string",
"required": false,
"description": "Classes to add to the form group (e.g. to show error state for the whole group)"
}
]
},
{
"name": "classes",
"type": "string",
Expand Down
1 change: 1 addition & 0 deletions package/govuk/components/character-count/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
describedBy: params.id + '-info',
rows: params.rows,
value: params.value,
formGroup: params.formGroup,
classes: 'govuk-js-character-count ' + (' govuk-textarea--error' if params.errorMessage) + (params.classes if params.classes),
label: {
html: params.label.html,
Expand Down
2 changes: 0 additions & 2 deletions package/govuk/components/fieldset/_fieldset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
max-width: 100%; // 1
margin-bottom: govuk-spacing(2);
padding: 0;
// Hack to let legends or elements within legends have margins in webkit browsers
overflow: hidden;

white-space: normal; // 1
}
Expand Down
6 changes: 6 additions & 0 deletions package/govuk/components/summary-list/macro-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"required": true,
"description": "Array of row item objects.",
"params": [
{
"name": "classes",
"type": "string",
"required": false,
"description": "Classes to add to the row `div`"
},
{
"name": "key.text",
"type": "string",
Expand Down
38 changes: 20 additions & 18 deletions package/govuk/helpers/_font-faces.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,28 @@
/// @access private

@mixin _govuk-font-face-gds-transport {
@include govuk-exports("govuk/helpers/font-faces") {
@at-root {
/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */
@include govuk-not-ie8 { // In IE8, which cannot render WOFF format, we fall back to system fonts
@include govuk-exports("govuk/helpers/font-faces") {
@at-root {
/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */

@font-face {
font-family: "GDS Transport";
src: govuk-font-url("light-94a07e06a1-v2.woff2") format("woff2"),
govuk-font-url("light-f591b13f7d-v2.woff") format("woff");
font-weight: normal;
font-style: normal;
font-display: fallback;
}
@font-face {
font-family: "GDS Transport";
src: govuk-font-url("light-94a07e06a1-v2.woff2") format("woff2"),
govuk-font-url("light-f591b13f7d-v2.woff") format("woff");
font-weight: normal;
font-style: normal;
font-display: fallback;
}

@font-face {
font-family: "GDS Transport";
src: govuk-font-url("bold-b542beb274-v2.woff2") format("woff2"),
govuk-font-url("bold-affa96571d-v2.woff") format("woff");
font-weight: bold;
font-style: normal;
font-display: fallback;
@font-face {
font-family: "GDS Transport";
src: govuk-font-url("bold-b542beb274-v2.woff2") format("woff2"),
govuk-font-url("bold-affa96571d-v2.woff") format("woff");
font-weight: bold;
font-style: normal;
font-display: fallback;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "govuk-frontend",
"description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.",
"version": "3.1.0",
"version": "3.2.0",
"main": "govuk/all.js",
"sass": "govuk/all.scss",
"engines": {
Expand Down

0 comments on commit 3ef1d76

Please sign in to comment.