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

Form elements #208

Merged
merged 31 commits into from
Dec 3, 2018
Merged

Form elements #208

merged 31 commits into from
Dec 3, 2018

Conversation

chrimesdev
Copy link
Member

@chrimesdev chrimesdev commented Nov 15, 2018

Description

Add all of the GOV.UK form elements with individual examples, macros
and documentation. Ready for overlaying the NHS styles to create our
own form elements.

  • Back link
  • Button
  • Checkboxes
  • Date input
  • Error message
  • Error summary
  • Fieldset
  • Hint
  • Input
  • Label
  • Radios
  • Select
  • Textarea

Component checklist

  • SCSS
  • SCSS lint
  • HTML template
  • HTML validate & lint
  • Nunjucks macro
  • A standalone example
  • README/Documentation
  • Pseudocode tests
  • Visual tests
  • Tested against our testing policy (Resolution, Browser & Accessibility)
  • Print stylesheet considered
  • CHANGELOG

@chrimesdev chrimesdev force-pushed the feature/form-elements branch 2 times, most recently from 8cfbfb2 to d5b3b47 Compare November 18, 2018 13:34
Add all of the GOV.UK form elements with individual examples, macros
and documentation. Ready for overlaying the NHS styles to create our
own form elements.
Fix the scss linting issues for the form elements and also add
code comments in the correct format.
Add links to all the form elements example variants and
GitHub issue for discussion.
Remove the temporary form element variables for border sizing
and element sizing.
Add the nunjucks macro arguments table, to documentat what
arguments of the form element macros take.
@chrimesdev chrimesdev force-pushed the feature/form-elements branch from a4938cd to c19649c Compare November 19, 2018 15:50
Add styles for a transactional header with a service name and update
the nunjucks macro to pass through parameters for the service name and
href. Create an example page.
davidhunter08 and others added 17 commits November 20, 2018 21:19
Started to add new NHS form styles to the form elements.
Created a test page 'forms.njk' to replicate the teams designs.
Added test page for ndop.
Changed nhsuk-focusable mixin to use box-shadow instead of outline.
This has fixed the focus issue on the button.
Updated the error link colour on hover.
Changed the service name font-weight to regular.
Also removed redundant link on components page.
Reduced form group margin-bottom.
Added a class of `nhsuk-form-group--wrapper ` to give the spacing
we need at the bottom of forms.
Allow extra form group classes on all form components, which were
originally just on radios and and checkboxes.
alphagov/govuk-frontend#1059
Increased button padding on desktop.
Added new nhs svg logos (replaced exisiting and added a white version).
Refactored footer to fit new design.
Updated footer macro template to allow the logo to be hidden.
Updated the html background colour to match the footer.
Updated readme with the new footer templates.
Created an example page of a footer with no logo.
Instead of using the arrow-shape mixin to generate an icon, use the
NHS chevron SVG icon.
Added transactional and service variations of the header.
Changed button font-size to be 19px on both desktop and mobile.
Removed footer logo from test pages.
Back link - amended code to include a surrounding div in order
so it could be displayed as a block element.
Having the `<a>` set as `display: block;`
caused issues with the hover styling.

Button - changed the font-size to scale on mobile.

Footer - amended the visited link colour to not turn purple.
Updated the logo sizes with the new mixin `nhsuk-logo-size`.

Header - we now have 7 variations of the header.
Each one is documented in the readme and has an example in the docs.
This includes variants for transactional services and also for services
that are not transactional and need the search (eg: Service manual).
@chrimesdev chrimesdev force-pushed the feature/form-elements branch from 71b8812 to c036dad Compare November 27, 2018 13:46
@chrimesdev chrimesdev force-pushed the feature/form-elements branch from c036dad to 7b0a408 Compare November 27, 2018 13:47
mcheung-nhs and others added 5 commits November 27, 2018 14:16
Minor formatting to the files
Nunjucks updates
Add extra example with logo only
Readme updates
Add homeHref Nunjucks parameter
Correct close div nesting issue. Will be refactored to make code
easier to read.
@chrimesdev chrimesdev force-pushed the feature/form-elements branch 4 times, most recently from 13ac90a to bad562b Compare December 3, 2018 11:28
@chrimesdev chrimesdev force-pushed the feature/form-elements branch from bad562b to e575ba4 Compare December 3, 2018 11:35
@chrimesdev chrimesdev force-pushed the feature/form-elements branch from e575ba4 to 7f7c1ed Compare December 3, 2018 11:36
@davidhunter08 davidhunter08 merged commit 106baba into master Dec 3, 2018
@davidhunter08 davidhunter08 deleted the feature/form-elements branch December 3, 2018 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants