Skip to content

Commit

Permalink
Merge pull request #893 from alphagov/release-1.1.0
Browse files Browse the repository at this point in the history
Release v1.1.0
  • Loading branch information
NickColley authored Jul 13, 2018
2 parents dbd1515 + b64773e commit b0dbaf2
Show file tree
Hide file tree
Showing 82 changed files with 1,065 additions and 728 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@

🆕 New features:

- Pull Request Title goes here

Description goes here (optional)

([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))

## 1.1.0 (feature release)

🆕 New features:

- Add `govuk-visually-hidden-focusable` class

Adds `.govuk-visually-hidden-focusable` and deprecates `.govuk-visually-hidden-focussable` in order to fix the typo in the class name. Please consider updating your code as the next major release will remove the deprecated class.
Expand Down
2 changes: 1 addition & 1 deletion dist/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.1.0
3 changes: 0 additions & 3 deletions dist/govuk-frontend-1.0.0.min.css

This file was deleted.

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

Large diffs are not rendered by default.

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

This file was deleted.

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

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -1677,8 +1677,10 @@ Tabs.prototype.getHref = function ($tab) {
};

function initAll () {
// Find all buttons with [role=button] on the document to enhance.
new Button(document).init();

// Find all global details elements to enhance.
var $details = document.querySelectorAll('details');
nodeListForEach($details, function ($detail) {
new Details($detail).init();
Expand All @@ -1689,7 +1691,7 @@ function initAll () {
new Checkboxes($checkbox).init();
});

// Find first Error Summary module to enhance.
// Find first error summary module to enhance.
var $errorSummary = document.querySelector('[data-module="error-summary"]');
new ErrorSummary($errorSummary).init();

Expand Down
30 changes: 23 additions & 7 deletions package/components/back-link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,41 @@ Link back component, to go back a page.

## Guidance

Find out when to use the Back link component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/back-link).
Find out when to use the back link component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/back-link).

## Quick start examples

### Component default
### Back link

[Preview the back-link component](http://govuk-frontend-review.herokuapp.com/components/back-link/preview)
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/back-link/preview)

#### Markup

<a href="https://gov.uk" class="govuk-back-link">Back</a>
<a href="#" class="govuk-back-link">Back</a>

#### Macro

{% from 'back-link/macro.njk' import govukBackLink %}
{% from "back-link/macro.njk" import govukBackLink %}

{{ govukBackLink({
"href": "https://gov.uk",
"text": "Back"
"href": "#"
}) }}

### Back link with custom text

[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/back-link/with-custom-text/preview)

#### Markup

<a href="#" class="govuk-back-link">Back to home</a>

#### Macro

{% from "back-link/macro.njk" import govukBackLink %}

{{ govukBackLink({
"href": "#",
"text": "Back to home"
}) }}

## Requirements
Expand Down
3 changes: 0 additions & 3 deletions package/components/back-link/back-link.njk

This file was deleted.

52 changes: 26 additions & 26 deletions package/components/breadcrumbs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ The Breadcrumbs component helps users to understand where they are within a webs

## Guidance

Find out when to use the Breadcrumbs component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/breadcrumbs).
Find out when to use the breadcrumbs component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/breadcrumbs).

## Quick start examples

### Component default
### Breadcrumbs

[Preview the breadcrumbs component](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/preview)
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/preview)

#### Markup

<div class="govuk-breadcrumbs">
<ol class="govuk-breadcrumbs__list">

<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="/section">Section 1</a>
<a class="govuk-breadcrumbs__link" href="/section">Section</a>
</li>

<li class="govuk-breadcrumbs__list-item">
Expand All @@ -32,12 +32,12 @@ Find out when to use the Breadcrumbs component in your service in the [GOV.UK De

#### Macro

{% from 'breadcrumbs/macro.njk' import govukBreadcrumbs %}
{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}

{{ govukBreadcrumbs({
"items": [
{
"text": "Section 1",
"text": "Section",
"href": "/section"
},
{
Expand All @@ -47,38 +47,38 @@ Find out when to use the Breadcrumbs component in your service in the [GOV.UK De
]
}) }}

### Breadcrumbs--single-section
### Breadcrumbs with one level

[Preview the breadcrumbs--single-section example](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/single-section/preview)
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/with-one-level/preview)

#### Markup

<div class="govuk-breadcrumbs">
<ol class="govuk-breadcrumbs__list">

<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="/section">Section 1</a>
<a class="govuk-breadcrumbs__link" href="/section">Section</a>
</li>

</ol>
</div>

#### Macro

{% from 'breadcrumbs/macro.njk' import govukBreadcrumbs %}
{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}

{{ govukBreadcrumbs({
"items": [
{
"text": "Section 1",
"text": "Section",
"href": "/section"
}
]
}) }}

### Breadcrumbs--many-breadcrumbs
### Breadcrumbs with multiple levels

[Preview the breadcrumbs--many-breadcrumbs example](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/many-breadcrumbs/preview)
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/with-multiple-levels/preview)

#### Markup

Expand All @@ -90,23 +90,23 @@ Find out when to use the Breadcrumbs component in your service in the [GOV.UK De
</li>

<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="/section">Section 3</a>
<a class="govuk-breadcrumbs__link" href="/section">Section</a>
</li>

<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="/section/sub-section">Sub-section 1</a>
<a class="govuk-breadcrumbs__link" href="/section/sub-section">Sub-section</a>
</li>

<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="/section/sub-section/sub-sub-section">Sub Sub-section 1</a>
<a class="govuk-breadcrumbs__link" href="/section/sub-section/sub-sub-section">Sub Sub-section</a>
</li>

</ol>
</div>

#### Macro

{% from 'breadcrumbs/macro.njk' import govukBreadcrumbs %}
{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}

{{ govukBreadcrumbs({
"items": [
Expand All @@ -115,23 +115,23 @@ Find out when to use the Breadcrumbs component in your service in the [GOV.UK De
"href": "/"
},
{
"text": "Section 3",
"text": "Section",
"href": "/section"
},
{
"text": "Sub-section 1",
"text": "Sub-section",
"href": "/section/sub-section"
},
{
"text": "Sub Sub-section 1",
"text": "Sub Sub-section",
"href": "/section/sub-section/sub-sub-section"
}
]
}) }}

### Breadcrumbs--no-home-section
### Breadcrumbs without the home section

[Preview the breadcrumbs--no-home-section example](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/no-home-section/preview)
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/without-the-home-section/preview)

#### Markup

Expand All @@ -151,7 +151,7 @@ Find out when to use the Breadcrumbs component in your service in the [GOV.UK De

#### Macro

{% from 'breadcrumbs/macro.njk' import govukBreadcrumbs %}
{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}

{{ govukBreadcrumbs({
"items": [
Expand All @@ -166,9 +166,9 @@ Find out when to use the Breadcrumbs component in your service in the [GOV.UK De
]
}) }}

### Breadcrumbs--last-breadcrumb-is-current-page
### Breadcrumbs with last breadcrumb as current page

[Preview the breadcrumbs--last-breadcrumb-is-current-page example](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/last-breadcrumb-is-current-page/preview)
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/breadcrumbs/with-last-breadcrumb-as-current-page/preview)

#### Markup

Expand All @@ -190,7 +190,7 @@ Find out when to use the Breadcrumbs component in your service in the [GOV.UK De

#### Macro

{% from 'breadcrumbs/macro.njk' import govukBreadcrumbs %}
{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}

{{ govukBreadcrumbs({
"items": [
Expand Down
14 changes: 0 additions & 14 deletions package/components/breadcrumbs/breadcrumbs.njk

This file was deleted.

Loading

0 comments on commit b0dbaf2

Please sign in to comment.