Skip to content
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 v2.8.0 🚀 #1237

Merged
merged 1 commit into from
Mar 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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