Skip to content

Commit

Permalink
Merge pull request #1237 from alphagov/release-2.8.0
Browse files Browse the repository at this point in the history
Release v2.8.0 🚀
  • Loading branch information
36degrees authored Mar 5, 2019
2 parents f9b2e11 + 55966b1 commit b52474c
Show file tree
Hide file tree
Showing 53 changed files with 384 additions and 145 deletions.
38 changes: 28 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,34 @@

([PR #N](https://github.com/alphagov/govuk-frontend/pull/N))

🔧 Fixes:

- Pull Request Title goes here

Description goes here (optional)

([PR #N](https://github.com/alphagov/govuk-frontend/pull/N))


## 2.8.0 (Feature release)

🆕 New features:

- Enable `pattern` attribute for input

You can now set the `pattern` attribute on input fields using the component macros:
You can now set the `pattern` attribute on input fields using the component
macros:

```js
{{ govukInput({
name: "example",
pattern: "[0-9]*"
}) }}
```

As well as `pattern`, custom attributes can also be added on day/month/year inputs (e.g. `data-example`) shown below:
As well as `pattern`, custom attributes can also be added on day/month/year
inputs (e.g. `data-example`) shown below:

```js
{{ govukDateInput({
items: [
Expand All @@ -46,6 +63,7 @@

([PR #1172](https://github.com/alphagov/govuk-frontend/pull/1172))


- Prevent horizontal jump as scrollbars appear

As content vertical height grows (e.g. autocomplete results appear), browsers
Expand All @@ -56,23 +74,28 @@

([PR #1230](https://github.com/alphagov/govuk-frontend/pull/1230))


- Accommodate camera notches on new devices (iPhone X, Google Pixel 3 etc)

On newer devices with "camera notches", browsers reserve a safe area in landscape orientation (known as pillarboxing) so content isn't obscured.
On newer devices with "camera notches", browsers reserve a safe area in
landscape orientation (known as pillarboxing) so content isn't obscured.
To avoid this, support has been added for `viewport-fit=cover` as shown here:
https://webkit.org/blog/7929/designing-websites-for-iphone-x/
([PR #1176](https://github.com/alphagov/govuk-frontend/pull/1176))
- Prefix error messages with a visually hidden "Error:", to make it clearer to
users of assistive technologies
([PR #1221](https://github.com/alphagov/govuk-frontend/pull/1221))
- Prevent accidental multiple submissions of forms
If a user double clicks a submit button in a form, we debounce this event and ignore the second click.
If a user double clicks a submit button in a form, we debounce this event and
ignore the second click.
HTML data attribute:
Expand All @@ -93,13 +116,8 @@
([PR #1018](https://github.com/alphagov/govuk-frontend/pull/1018))
🔧 Fixes:
- Pull Request Title goes here
Description goes here (optional)
([PR #N](https://github.com/alphagov/govuk-frontend/pull/N))
🔧 Fixes:
- Ensure that files within the core, objects and overrides layers can be
imported individually
Expand Down
2 changes: 1 addition & 1 deletion dist/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.0
2.8.0
3 changes: 0 additions & 3 deletions dist/govuk-frontend-2.7.0.min.css

This file was deleted.

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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

This file was deleted.

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

Large diffs are not rendered by default.

Loading

0 comments on commit b52474c

Please sign in to comment.