Package detail

@gregtyler/moj-frontend-clone

gregtyler142MIT1.1.2

The MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.

moj, frontend, design system, template

readme

semantic-release Commitizen friendly moj-frontend

Ministry of Justice Frontend

MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.

See live examples of MOJ Frontend components, and guidance on when to use them in your service, in the MOJ Pattern Library documentation.

Contribution Guidelines

If you want to help us build MOJ Frontend, view our contribution guidelines. This covers all areas from semvar commit messages to release process.

Contact the team

MOJ Frontend is maintained by staff in the Ministry of Justice. If you need support, you can use GitHub discussions or one of our Slack channels:

Quick start

We recommend installing MOJ Frontend using node package manager (npm).

Once installed, you will be able to use the code from the examples in the MOJ Pattern Library in your service.

Browser support

MOJ Frontend will allow you to build services that comply with the guidance in the Service Manual.

If you are including MOJ Frontend as part of a stylesheet that you are generating in your application's build pipeline, you will need to generate and include a separate stylesheet in order to support Internet Explorer 8.

Assistive technology support

MOJ Frontend will allow you to build services that comply with the guidance in the Service Manual.

In addition, we test that all content is accessible with keyboard only.

We aim to support [users who adjust or override the colours of websites they visit][how-users-change-colours-on-websites]. We test this by [changing colours in Firefox][changing-colours-in-firefox], by [enabling 'High Contrast' mode in Windows][enabling-high-contrast-mode-in-windows] and by using the High Contrast plugin for Chrome.

[changing-colours-in-firefox]: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use

[enabling-high-contrast-mode-in-windows]: https://support.microsoft.com/en-gb/help/13862/windows-use-high-contrast-mode

[how-users-change-colours-on-websites]: https://accessibility.blog.gov.uk/2017/03/27/how-users-change-colours-on-websites/

Further reading

changelog

1.6.3 (2022-11-14)

Bug Fixes

  • component: sort the columns of the sortable table on page load (#406) (ed2056a)

1.6.2 (2022-10-31)

Bug Fixes

  • deps: update dependency govuk-frontend to v4 (#403) (1684def)

1.6.1 (2022-10-28)

Bug Fixes

1.6.0 (2022-09-30)

Features

  • prototype kit integration: users of prototype-kit-v13 should have macros and filters available (#378) (89cbf0a)

1.5.0 (2022-09-20)

Features

  • password-reveal: set spellcheck attribute to false (#377) (04a8ee1)

1.4.2 (2022-05-18)

Bug Fixes

1.4.1 (2022-05-13)

Bug Fixes

  • upgrade moment from 2.29.2 to 2.29.3 (#354) (e270876)

1.4.0 (2022-04-25)

Bug Fixes

  • multi-file-upload: remove unsemantic HTML (ed0f09c)
  • pagination: improve accessibility of pagination component (b820340), closes #161
  • password-reveal: improve screenreader labels (f382f22), closes #55

Features

  • archive deprecated components (3a8dedd)

1.3.2 (2022-04-20)

Bug Fixes

  • upgrade govuk-frontend from 3.11.0 to 3.14.0 (dae25d1)

1.3.1 (2022-04-06)

Bug Fixes

  • package.json & package-lock.json to reduce vulnerabilities (fa7849b)

1.3.0 (2022-03-31)

Bug Fixes

  • components: ensure that custom attributes get a space inserted before each one (INC-435) (2b16360)
  • package.json & package-lock.json to reduce vulnerabilities (f759d34)

Features

  • sub-navigation: allow adding HTML classes to sub-navigation items (81b60cb)

1.2.0 (2022-01-10)

Features

  • pagination: allow customisation of pagination results text (5771ca7), closes #293

1.1.0 (2021-12-20)

Features

  • deps: make dependencies explicit (829da49), closes #147

1.0.1 (2021-11-24)

Bug Fixes

  • sub-navigation: add a default aria-label for sub navigation component (4432bee)

1.0.0 (2021-10-26)

Bug Fixes

  • filter: ensure the clear link is shown (4c23cbd), closes #274

BREAKING CHANGES

  • filter: Clear links will now be shown on Filter components.

0.2.6 (2021-09-15)

Bug Fixes

  • add-another: shrink remove button (#256) (9998b24)
  • assets: adds missing apple touch icon images (26ede43)

0.2.5 (2021-06-28)

Bug Fixes

  • add-another: find labels of affixed text inputs (#186) (f211937), closes #185

0.2.4 (2021-05-19)

Bug Fixes

  • ticket-panel: Make default ticket panel have no border (#158) (e7b7e42)

0.2.3 (2021-05-11)

Bug Fixes

0.2.2 (2021-03-31)

Bug Fixes

  • ticket-panel: fixes the colour options within the panel (5717c27)

0.2.1 (2021-01-15)

Bug Fixes

  • rich-text-editor: fix attribute prefix (16f749d)

0.2.0 (2021-01-11)

Features

  • add-another: add to initAll (4e0f798)
  • multi-select: add to initAll (1fe780a)
  • password-reveal: add data-module attribute (d41cd0f)
  • rich-text-editor: add to initAll (a487749)
  • search-toggle: add to initAll (9251a38)
  • sortable-table: add to initAll (99751e4)

0.1.0 (2021-01-08)

Features

  • component: adds the new Ticket Panel component (1565383), closes #125

0.0.23 (2020-12-29)

Bug Fixes

  • upgrade govuk-frontend from 3.10.0 to 3.10.1 (a5335d7)

0.0.22 (2020-12-15)

Bug Fixes

  • upgrade govuk-frontend from 3.9.1 to 3.10.0 (c8f58f8)

0.0.21 (2020-10-22)

Bug Fixes

  • fix for package contents not distributing correct files (ffc5e43)

0.0.20 (2020-10-22)

Bug Fixes

  • potential fix for missing alpha dist tag in npm package (cd8d74a)

0.0.19 (2020-10-22)

Bug Fixes

  • upgrade govuk-frontend from 3.6.0 to 3.7.0 (#100) (3498af0)
  • upgrade moment from 2.26.0 to 2.27.0 (#102) (611081a)

v0.0.19-alpha

  • Fixes #84 "main" location in package.json is not correct
  • Fixes #95 MOJ Header display and relating accessibility issues when $govuk-global-styles is not set
  • Fixes inconsistencies with colour use between components
  • Corrects default colours used within components
  • Allows use of existing colour override variables supported by the GOV.UK Frontend
  • Corrects other display and relating accessibility issues when $govuk-global-styles is not set

v0.0.18-alpha

  • Fix #88 where pagination results do not have font size specified
  • Removed misleading reference to $moj-image-url-function

v0.0.17-alpha

  • JS can now be imported in things like Webpacks thanks to @gregtyler

v0.0.16-alpha

  • Change pagination arrows to use CSS like the back link. Thanks to @MalcolmVonMoJ.
  • Fix add another component when a field has hint text. Thanks to @garyboyle (DWP).
  • Fix #79 where colour wasn't wrapped in quotes and caused build errors. Thanks to @johnnolan.

v0.0.15-alpha

  • Fix Header component urls

v0.0.14-alpha

  • Fix prototype kit extensions path to macros
  • Made header more flexible

v0.0.13-alpha

  • Add task list component
  • Fixed bug with identity bar
  • Fixed bug with page header actions
  • Other miscellaneous fixes

v0.0.12-alpha

  • Update header component
  • Update primary navigation component
  • Update button menu component
  • Other miscellaneous fixes

v0.0.11-alpha

  • Add side navigation component
  • Change menu component to button menu
  • Other miscellaneous fixes

v0.0.10-alpha

  • Multi file upload added
  • Fix prototype kit extension paths

v0.0.9-alpha

  • Change namespacing. See issue 6
  • Fix inline and toggle search
  • Fix focus states for search and menu components

v0.0.8-alpha

  • Upgrade to GOV.UK Frontend v3.0.0

v0.0.7-alpha

  • Add messages component
  • Update mq to govuk-media-query mixin in styles
  • Update packages to fix vulnerabilities
  • Other miscellaneous fixes

v0.0.6-alpha

  • Add filter toggle button component
  • Fixes

v0.0.5-alpha

  • Fixes

v0.0.4-alpha

  • Add badge component
  • Add banner component
  • Add filter component
  • Add identity bar component
  • Add menu component (split buttons and button group)
  • Add multi-select component
  • Add password reveal
  • Add rich-text editor component
  • Add tag styles
  • Add timeline component

Other:

  • Add date filters and moment.js dependency

v0.0.3-alpha

  • Add add another component
  • Add currency input component
  • Add header component
  • Add notification badge component
  • Add organisation switcher component
  • Add primary navigation component
  • Add progress bar component
  • Add sub-navigation component

v0.0.2-alpha

  • Add pagination component
  • Add search component
  • Add sortable table component

v0.0.1-alpha

Initial commit