- React 18 support (Simply by loosening the peer dependency requirement).
- Update to [email protected] (#144)
- See https://github.com/alphagov/govuk-frontend/releases/tag/v4.0.1 for full release notes
- Add null check to ref before calling govuk-frontend radios or checkboxes JS (https://github.com/surevine/govuk-react-jsx/pull/137/commits/4e7cd8421678adeb28c94812a1bc18051b9d1ab3)
- Fixes #132
- Update to [email protected] (#137)
- See https://github.com/alphagov/govuk-frontend/releases/tag/v4.0.0 for full release notes
- Fix misaligned govuk crown in header. (Missed an instance in the previous release) (#128)
- Fixes #125
- Update to [email protected] (#127)
- See https://github.com/alphagov/govuk-frontend/releases/tag/v3.14.0 for full release notes
- Update to [email protected] (#118)
- Add a 'none' option and 'or' divider to checkboxes (See known issues in readme - this is somewhat of a non functional "stub" at the moment)
- Change approach to fallback PNG in the header to fix blank data URI from triggering CSP error
- See https://github.com/alphagov/govuk-frontend/releases/tag/v3.13.0 for full release notes
- Fix badly destructured react list keys on some components (#114)
- Fixes #113
- Fix Template not passing text correctly to SkipLink component (#116)
- Fixes #115
- Table data structure changed in order to accomodate react list keys. Each row in the
rows
array now has acells
key instead of simply being a nested array of rows / cells.
See the updated demos on the storybook.
This breaking change was necessary in order to accomodate react list keys on table rows.
-
Updated to [email protected]
Markup changes:- Add links styled as buttons to cookie banners
- Add data-nosnippet to prevent cookie banner text appearing in Google Search snippets
-
See https://github.com/alphagov/govuk-frontend/releases/tag/v3.12.0 for full release notes
- Updated to [email protected]
- See https://github.com/alphagov/govuk-frontend/releases/tag/v3.11.0 for full release notes
- Cookie banner component added
- Further ErrorSummary focusing fixes The error summary no longer focuses itself at all when it is rendered - it is now fully up to the calling app to focus the error summary when appropriate. The ErrorSummary component accepts a ref which you can use to achieve this. A formik based demo of this is available in https://github.com/surevine/govuk-react-jsx-examples/blob/master/src/forms/Formik.js
- Remove overzealous focusing of ErrorSummary when list of errors changes. Component now accepts a ref which you can manually focus when appropriate (Such as when a form is submitted). A demo of this is available in https://github.com/surevine/govuk-react-jsx-examples
- Update govuk-frontend to 3.10.2 See https://github.com/alphagov/govuk-frontend/releases/tag/v3.10.1 and https://github.com/alphagov/govuk-frontend/releases/tag/v3.10.2 fox full release notes
-
Larger release than usual since the 3.9.x update caused a few issues with testing. Therefore have jumped straight to 3.10.0
- Updated to [email protected]
See https://github.com/alphagov/govuk-frontend/releases/tag/v3.10.0 for full release notes- Customise input mode in the date component
- New notification banner component added
- Updated to [email protected]
See https://github.com/alphagov/govuk-frontend/releases/tag/v3.9.1 for full release notes - Updated to [email protected]
See https://github.com/alphagov/govuk-frontend/releases/tag/v3.9.0 for full release notes- Add input prefix and suffix.
- Customise aria-label text in the header component - added
navigationLabel
andmenuButtonLabel
props - Ability to add navigation items without links
- Switched test suite away from govuk-frontend-diff in favour of the fixtures now baked into govuk-frontend since 3.9.0
- And as a result - have made many small fixes to pass the new test suite - nothing noteworthy, just small changes in edge case situations found in the new fixtures
- Updated to [email protected]
- Updated to [email protected]
See https://github.com/alphagov/govuk-frontend/releases/tag/v3.8.1 for full release notes
- Add webpack magic comments to checkboxes and radios (accidentally missed from previous release)
- Tweak babel to allow dynamic imports through to the final package. Previously they were being resolved before being published.
- Add webpack magic comments to optimize the dynamically imported govuk-frontend js
- Updated to [email protected]
See https://github.com/alphagov/govuk-frontend/releases/tag/v3.8.0 for full release notes - Switch hint from span to div so that it can render block-level elements as valid HTML. See alphagov/govuk-frontend#1855
- Document spellcheck -> spellCheck mapping to cater for new spellcheck param in upstream nunjucks.
In reality no actual code changes for this one, just a documentation update. See alphagov/govuk-frontend#1859 - Switched to using govuk-frontend-diff for testing duties
- Upshot of the switch to govuk-frontend-diff was that it became necessary to dynamically import the GOVUK components which interact with the DOM, in order to enable Server Side Rendering for the tests.
This is therefore marked up as a breaking change since it may require changes to your Webpack config to support code splitting (Although create-react-app supports this out the box, in which case you don't need to do anything).
See https://reactjs.org/docs/code-splitting.html#import for more details.
This should pave the way for serverside rendering of the components although this isn't tested or formally supported yet (But may well work just fine...)
- Updated to [email protected]
See https://github.com/alphagov/govuk-frontend/releases/tag/v3.7.0 for full release notes.
Only changes to the components are explicitly listed here. - Nunjucks implementation now allows html in each navigation item in the header component. This is already satisifed by the replacement of
text
andhtml
params with a singlechildren
prop catering for both eventualities. See alphagov/govuk-frontend#1819 - You can now collapse the breadcrumb component on mobile using the new collapseOnMobile option. See alphagov/govuk-frontend#1754
- Moved the published package's dependencies to peerDependencies, to avoid issues with multiple copies of React etc being installed (Such as https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react).
If you aren't already, you will need to install compatible versions of govuk-frontend, react-router, react, react-router-dom, react-helmet since these are no longer installed as dependencies of this package
- Updated the package's govuk-frontend dependency to 3.6.0 - it was incorrectly pinned to an older version
- Updated dependency on react-helmet to 6
- Remove erroneous space before comma in footer OGL statement
- Header links -
homepageUrl
andserviceUrl
have becomehomepageUrlHref
/homepageUrlTo
andserviceUrlHref
/serviceUrlTo
, with theTo
variants being passed to a react-router<Link>
theHref
variants being a plain html<a>
tag
- Use generic div element for tabspanel. See alphagov/govuk-frontend#1746
- Fix fallback logo being detected by chromes image description feature. See alphagov/govuk-frontend#1724
- Updated to [email protected]. See https://github.com/alphagov/govuk-frontend/releases/tag/v3.6.0
- Fix error summary not focusing after first form submission. Now correctly focuses every time submit is pressed
- Fix bug when using controlled inputs whereby Radios would switch from uncontrolled to controlled and throw a console warning. Caused by the new features added in v1.4.0
defaultValue
top level prop added to radios component to complement thevalue
prop and facilitate compatibility with form libraries dealing with uncontrolled form inputs (Such as react-hook-form)
React.forwardRef
now added to all singular form components allowing you to passuseRef
refs into the component props. Components that return multiple form elements now accept aref
key for each item in theitems
array prop.
- Update the date input component to use input type=text inputmode=numeric.
- Update checkboxes and radio buttons to include item hint classes on item hint.
- Update to [email protected]. See https://github.com/alphagov/govuk-frontend/releases/tag/v3.5.0 for full notes.
- Allow custom classes to be added to character count hint message
More extensive test suite added, resulting in several minor fixes as follows
- Fix date input, file upload, input, select, textarea, checkboxes & radios not receiving correct aria-describedby attribute
- Fix date input, file upload, input, select, textarea, checkboxes & radios hints and error messages receiving incorrect ids
- Fix incorrect casing of date input labels
- Fix lack of colon after error message visually hidden text
- Fix missing attributes from error summary links
- Prevent assetPath prop making it through to header component in case someone passes it
- Prevent tag attributes making it through from phase banner (behaviour now consistent with govuk-frontend)
- Fix missing attributes from select options
- Omit role attribute from checkboxes/radios fieldset to be consistent with govuk-frontend
- onChange prop assigned directly to
<DateInput>
will now get passed through to the individual inputs (No need to put change handlers individually in the items now). This mirrors the behaviour already seen on other compound fields such as Radios and Checkboxes
- Fix for uncontrolled -> controlled radio inputs caused by bug in value assignment
- Slight tweak for Select component so that it accepts a top level value prop instead of individual selected booleans on each item to make it more React friendly
Initial release