Skip to content

Commit

Permalink
New lines linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ju committed Jan 4, 2018
1 parent 0b881da commit d511eb3
Show file tree
Hide file tree
Showing 27 changed files with 3 additions and 51 deletions.
3 changes: 0 additions & 3 deletions src/components/back-link/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ There are 2 ways to use the Back link component. You can use HTML or, if you are
## Research on this component

If you’ve used this component, [get in touch](Anchor link to Get in touch panel at bottom of page) to share your user research findings.



3 changes: 0 additions & 3 deletions src/components/button/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,3 @@ Only use disabled buttons if research shows it makes the user interface easier t
## Research on this component

If you’ve used this component, [get in touch](Anchor link to Get in touch panel at bottom of page) to share your user research findings.



1 change: 0 additions & 1 deletion src/components/checkboxes/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ There are 2 ways to use the Checkboxes component. You can use HTML or, if you’
## Research on this component

Read a blog post about [updates to the Radios and Checkboxes components](https://designnotes.blog.gov.uk/2016/11/30/weve-updated-the-radios-and-checkboxes-on-gov-uk/).

2 changes: 0 additions & 2 deletions src/components/date-input/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ Check that a valid date is entered by the user. Invalid dates should be shown to
If you’ve used this pattern, [get in touch](Anchor link to Get in touch panel at bottom of page) to share your user research findings.

More research is needed to determine the extent to which users struggle to enter months as numbers, and whether allowing them to enter months as text is helpful.


3 changes: 0 additions & 3 deletions src/components/fieldset/address-group.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
layout: layout-example.njk
---


<fieldset class="govuk-c-fieldset">
<legend class="govuk-c-fieldset__legend">
<h1 class="govuk-heading-xl">What is your address?</h1>
Expand Down Expand Up @@ -33,5 +32,3 @@ layout: layout-example.njk
</label>
<input class="govuk-c-input" id="address-postcode" name="address-postcode" type="text">
</fieldset>


1 change: 0 additions & 1 deletion src/components/fieldset/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ Include any general help text which is important for filling in the form and can
## Research on this component

If you’ve used this component, [get in touch](Anchor link to Get in touch panel at bottom of page) to share your user research findings.

1 change: 0 additions & 1 deletion src/components/file-upload/default.njk
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ layout: layout-example.njk
text: 'Upload a file'
}
}) }}

1 change: 0 additions & 1 deletion src/components/file-upload/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ There are 2 ways to use the File upload component. You can use HTML or, if you
## Research on this component

Read a blog post about [design tips for helping users upload things](https://designnotes.blog.gov.uk/2017/02/14/some-design-tips-for-uploading-things/).

6 changes: 0 additions & 6 deletions src/components/panel/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ Use the Panel component to display important information when a transaction has

In most cases, the Panel component is used on [Confirmation pages](../../patterns/confirmation-pages), to tell the user they have successfully completed the transaction.



You can also use the Panel component in services that give users instant results, such as confirming the MOT status of a vehicle, to highlight the most important information on the page.

For example:



### When not to use

Don’t use the Panel component to highlight important information within body content. In this instance you should use the ‘Inset text’ component instead.
Expand All @@ -39,5 +35,3 @@ There are 2 ways to use the Panel component. You can use HTML or, if you are usi
## Research on this component

If you’ve used this component, [get in touch](Anchor link to Get in touch panel at bottom of page) to share your user research findings.


2 changes: 0 additions & 2 deletions src/components/radios/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ aliases:
layout: layout-components.njk
---


{% from "_example.njk" import example %}

{{ example({group: 'components', item: 'radios', example: 'default'}) }}
Expand Down Expand Up @@ -38,4 +37,3 @@ If there are only two options, you can either stack the radios or display them i
## Research on this component

Read a blog post about updates to the [Radios and Checkboxes components](https://designnotes.blog.gov.uk/2016/11/30/weve-updated-the-radios-and-checkboxes-on-gov-uk/).

2 changes: 0 additions & 2 deletions src/components/select/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ There are 2 ways to use the Select component. You can use HTML or, if you’re u
## Research on this component

Watch a video about how some [users struggle with selects](https://www.youtube.com/watch?v=CUkMCQR4TpY).


5 changes: 0 additions & 5 deletions src/components/skip-link/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,3 @@ There are 2 ways to use the Skip link component. You can use HTML or, if you are
## Research on this component

If you’ve used this component, [get in touch](Anchor link to Get in touch panel at bottom of page) to share your user research findings.





3 changes: 0 additions & 3 deletions src/components/tag/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ There are 2 ways to use the Tag component. You can use HTML or, if you are using
## Research on this component

If you’ve used this component, [get in touch](Anchor link to Get in touch panel at bottom of page) to share your user research findings.



1 change: 0 additions & 1 deletion src/components/text-input/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ layout: layout-components.njk

{{ example({group: 'components', item: 'text-input', example: 'default'}) }}


## When to use this component

Use the Text input component when you need to let users enter text that’s no longer than a single line, such as their name or phone number.
Expand Down
1 change: 0 additions & 1 deletion src/components/textarea/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ layout: layout-components.njk

{{ example({group: 'components', item: 'textarea', example: 'default'}) }}


## When to use this component

Use the Textarea component when you need to let users enter an amount of text that’s longer than a single line.
Expand Down
2 changes: 1 addition & 1 deletion src/patterns/addresses/multiple.njk
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ layout: layout-example.njk
Postcode
</label>
<input class="govuk-c-input" id="address-postcode" name="address-postcode" type="text">
</fieldset>
</fieldset>
2 changes: 1 addition & 1 deletion src/patterns/addresses/textarea.njk
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ layout: layout-example.njk
"label": {
"text": "What is your address?"
}
}) }}
}) }}
1 change: 0 additions & 1 deletion src/patterns/check-a-service-is-suitable/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ aliases:
layout: layout-patterns.njk
---


Ask users questions to help them work out if they can or should use your service.

Doing this helps users save time as it tells them upfront whether they are eligible to use it and if they need it.
Expand Down
1 change: 0 additions & 1 deletion src/patterns/check-answers/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ aliases:
layout: layout-patterns.njk
---


Let users check their answers before submitting information to a service.

![Check answers example](check-answers-page.png)
Expand Down
1 change: 0 additions & 1 deletion src/patterns/confirm-an-email-address/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ aliases:
layout: layout-patterns.njk
---


Use an email confirmation loop to check that a user has access to a specific email account.

## When to use this pattern
Expand Down
3 changes: 1 addition & 2 deletions src/patterns/confirmation-pages/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ layout: layout-patterns.njk

{% from "_example.njk" import example %}


Let users know they’ve completed a transaction.

{{ example({group: 'patterns', item: 'confirmation-pages', example: 'default'}) }}
Expand Down Expand Up @@ -45,4 +44,4 @@ If you can’t, make sure your service responds in a helpful way when users retu

## Research on this pattern

Read a blog post about users who bookmark confirmation pages.
Read a blog post about users who bookmark confirmation pages.
1 change: 0 additions & 1 deletion src/patterns/create-a-username/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ aliases:
layout: layout-patterns.njk
---


Help users to create a unique and memorable username to sign into a service with.

## When to use this pattern
Expand Down
1 change: 0 additions & 1 deletion src/patterns/create-accounts/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ aliases:
layout: layout-patterns.njk
---


Help users create an account for your service.

## When to use this pattern
Expand Down
2 changes: 0 additions & 2 deletions src/patterns/fill-in-a-form/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,3 @@ Read a blog post about [how the Carer’s Allowance team removed a 12-step progr
## Research on this pattern
Learn more about the [question protocol](https://www.uxmatters.com/mt/archives/2010/06/the-question-protocol-how-to-make-sure-every-form-field-is-necessary.php).
Read a blog post about how the [‘Register to vote’ service used forms](https://designnotes.blog.gov.uk/2014/07/14/things-we-learnt-designing-register-to-vote/).


1 change: 0 additions & 1 deletion src/patterns/passwords/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,3 @@ You shouldn’t use password reminders because they:
If you’ve used this pattern, [get in touch](Anchor link to Get in touch panel at bottom of page) to share your user research findings.

[Read the National Cyber Security Centre’s guidance on passwords](https://www.ncsc.gov.uk/index/guidance?f%5B0%5D=field_topics%253Aname%3AIdentity%20and%20passwords).

2 changes: 0 additions & 2 deletions src/patterns/question-pages/default.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
layout: layout-example.njk
---



{% from "back-link/macro.njk" import govukBackLink %}
{% from "date-input/macro.njk" import govukDateInput %}
{% from "button/macro.njk" import govukButton %}
Expand Down
2 changes: 0 additions & 2 deletions src/patterns/question-pages/postcode.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
layout: layout-example.njk
---



{% from "back-link/macro.njk" import govukBackLink %}
{% from "input/macro.njk" import govukInput %}
{% from "button/macro.njk" import govukButton %}
Expand Down

0 comments on commit d511eb3

Please sign in to comment.