Skip to content

Commit

Permalink
Merge pull request #784 from alphagov/bol-label-variant
Browse files Browse the repository at this point in the history
Use the correct class name in bold label example
  • Loading branch information
Jani Kraner authored Jun 13, 2018
2 parents b155ae9 + f7babee commit 9fd1798
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ Note: We're not following semantic versioning yet, we are going to talk about th
and footer (the OGL logo) by marking them as non-focusable elements
([PR #774](https://github.com/alphagov/govuk-frontend/pull/774))

- Use the correct class name in bold label example
(govuk-label--s rather than govuk-label--bold)
([PR #784](https://github.com/alphagov/govuk-frontend/pull/784))


🆕 New features:

Expand Down
4 changes: 2 additions & 2 deletions src/components/label/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Use labels for all form fields.

#### Markup

<label class="govuk-label govuk-label--bold">
<label class="govuk-label govuk-label--s">
National Insurance number
</label>

Expand All @@ -39,7 +39,7 @@ Use labels for all form fields.
{% from 'label/macro.njk' import govukLabel %}

{{ govukLabel({
"classes": "govuk-label--bold",
"classes": "govuk-label--s",
"text": "National Insurance number"
}) }}

Expand Down
2 changes: 1 addition & 1 deletion src/components/label/label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ examples:
text: National Insurance number
- name: with bold text
data:
classes: govuk-label--bold
classes: govuk-label--s
text: National Insurance number
- name: as page heading
data:
Expand Down

0 comments on commit 9fd1798

Please sign in to comment.