Skip to content

Releases: x-govuk/govuk-components

Version 2.1.6

10 Mar 07:27
f27ecf5
Compare
Choose a tag to compare
  • Upgrade ViewComponent to 2.49.1 to mitigate a recent XSS security vulnerability

Version 3.0.3

03 Mar 14:43
0160190
Compare
Choose a tag to compare

Version 3.0.2

12 Feb 20:06
f3eb216
Compare
Choose a tag to compare
  • Add section to the guide on the common gotcha of trying to render non-strings in Rails #292
  • Remove lookbook #297
  • Update to GOV.UK frontend version 4.0.1 #298
  • Update to Rails 7.0.2 #300

Version 3.0.1

10 Jan 09:43
9435be9
Compare
Choose a tag to compare
  • Allow summary lists to be generated directly using data #289
  • Add a Publish GitHub action so builds are done in a clean way - 3.0.0 was built on my machine and unintentionally pinned to Rails 6.1.4.4 because I had RAILS_ENV set in my environment 🤦🏽‍♂️

Version 3.0.0

07 Jan 12:11
b66a173
Compare
Choose a tag to compare
  • Support GOV.UK Design System version 4.0.0
    • Breaking change: modify the behaviour of Summary Lists. If you're rendering any summary lists that don't have actions you need to pass in actions: false. This is required because now the design system expects a class on the summary list row, but as we're building the list item-by-item we don't know if any of the siblings have no action. #283 will introduce a more Nunjucks-like syntax in the next release. See #282 for more details
    • ensure data-module="govuk-skip-link" is present on the skip link helper output b6a0f47
    • ensure data-nosnippet is present on the cookie banner component output bc3a2bb
    • update the header navigation structure 426b29c
  • Create a guide. It works in a similar way to the form builder by using the components library to render itself, meaning it should never be out of date. Again, massive thanks to @paulrobertlloyd for his work on this and to @gemmadallmandfe for helping with the copy. #279 - see it here
  • Drop support for Ruby 2.6.X and Rails 6.0.X
  • Add support for Ruby 3.1.0 and Rails 7.0.0
  • Add a matrix build step for testing all supported versions of Ruby and Rails
  • Change the default branch from master to main #265

Support for older versions

As the upgrade to GOV.UK Design System 4.0.0 will take some time, the 2.1 series of the components library will continue to receive critical bug fixes but all new features will be for version 3.0.0 and above

Version 2.1.5

03 Dec 00:09
34fcdee
Compare
Choose a tag to compare
  • Fix a rendering bug of the copyright symbol in the footer. Thanks @alexbowen #266

Version 2.1.4

26 Oct 14:23
50da920
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.3...v2.1.4

Version 2.1.3

08 Oct 15:40
d3b8a2d
Compare
Choose a tag to compare
  • Move the active page check to before render #258
  • Allow crown's fallback image to have custom path. Thanks @frankieroberto for raising this and suggesting a fix #257
  • Add govuk-body class to the cookie banner message. 🙌🏽 @edwardhorsford #25

Full Changelog: v2.1.2...v2.1.3

Version 2.1.2

29 Sep 12:26
4f0c057
Compare
Choose a tag to compare
  • Allow header bar navigation links to be generated with different HTTP methods. This uses Rails' method option and allows behaviours like Devise's logout to be triggered via the nav. Thanks to @cesidio for implementing this #253
  • Make the current page active by default in the header navigation. The default 'active' behaviour can still be overridden by the user if needed. Thanks again @cesidio #254

Version 2.1.1

14 Sep 08:47
785dd4d
Compare
Choose a tag to compare
  • Fix a bug where non-string values passed in as breadcrumb keys (text) aren't rendered when no link is present. Thanks @cesidio for reporting this one. #251
  • Upgrade the supported design system version to 3.13.1 #248