Skip to content

Releases: x-govuk/govuk-prototype-components

v5.0.2

19 Aug 20:03
8579adb

Choose a tag to compare

  • Provide distributable SCSS file for GOV.UK Prototype Kit, fixing duplicate GOV.UK Frontend styles being generated. Thanks to @joelanman for reporting. 52c0277
  • Update dependencies 8745b95

v5.0.1...v5.0.2

v5.0.1

04 Jul 23:42
c3a2e83

Choose a tag to compare


v5.0.0...v5.0.1

v5.0.0

28 Jun 15:10
e603fd1

Choose a tag to compare

Breaking changes

  • The masthead component now uses a design with a lighter background by default. To reinstate the design with a darker background, add the x-govuk-masthead--inverse modifier class to the outer <div> element of the component HTML. Or if you’re using Nunjucks, add inverse: true to the Nunjucks macro.

  • The image in the masthead is no longer hidden on the tablet breakpoint and below. To reinstate this behaviour, add the x-govuk-masthead__image--hide-on-mobile modifier class to the outer <div> element that surrounds the image. Or if you’re using Nunjucks, add hideOnMobile: true to the image option in the Nunjucks macro.

Documentation

  • Update guidance about adapting service navigation when directly above masthead bfa7d3a
  • Remove guidance about removing bottom border from header when directly above masthead ab4322c
  • Correct path to iframeResizer 8097c13

v4.0.1...v5.0.0

v4.0.1

15 Jun 15:55
eacbcaf

Choose a tag to compare

Fixes

  • Use govukAttributes macro in component templates e5ce5ca
  • Remove unneeded role="navigation" on <nav> elements 0cd8b0d
  • Update indenting for component markup 98ae5bf
  • Export Sass for individual components 1855f37

Chores

Documentation

  • Ensure correct JavaScript files are copied to documentation site 72f9aad
  • Ensure prototype component scripts only init after DOMContentLoaded 245f76b
  • Fix script location for example layout 909d3fa
  • Fix link in service navigation on documentation site c7af2fd
  • Fix broken GitHub link by replacing git+ with an empty string 92b7cf4
  • Update release notes ff36aa0
  • Use final release of govuk-eleventy-plugin e9ad012

v4.0.0...v4.0.1

v4.0.0

20 May 22:32
828ab51

Choose a tag to compare

Breaking changes

  • Removes the primary navigation component. Use the service navigation component in the GOV.UK Design System to help users navigate to the main sections of your service.

  • Minified JavaScript file is now provided at /dist/govuk-prototype-components.min.js.

  • The location of SCSS files has changed. For all components, update your import statement to:

    - @import "node_modules/@x-govuk/govuk-prototype-components/x-govuk/all";
    + @import "node_modules/@x-govuk/govuk-prototype-components/src/x-govuk"

    For individual components, update your import statements to:

    - @import "node_modules/@x-govuk/govuk-prototype-components/x-govuk/components/masthead/masthead";
    + @import "node_modules/@x-govuk/govuk-prototype-components/src/x-govuk/components/masthead";
  • The location of Nunjucks files has changed. Either update the path used in your templates:

    - {% raw %}{% from "node_modules/@x-govuk/govuk-prototype-components/x-govuk/components/masthead/macro.njk" import xGovukMasthead %}{% endraw %}
    + {% raw %}{% from "node_modules/@x-govuk/govuk-prototype-components/src/x-govuk/components/masthead/macro.njk" import xGovukMasthead %}{% endraw %}

    or update the your searchPaths array to point to the /src directory:

      const nunjucks = new Nunjucks.Environment(
        new Nunjucks.FileSystemLoader([
    -     './node_modules/@x-govuk/govuk-prototype-components'
    +     './node_modules/@x-govuk/govuk-prototype-components/src'
        ])
      )

New features

  • Adds support for Sass modules and pkg: importing. You can now import component styles into your project like so:

    - @import "node_modules/@x-govuk/govuk-prototype-components/x-govuk/all";
    + @import "pkg:@x-govuk/govuk-prototype-components"

    For individual components, use the following:

    - @import "node_modules/@x-govuk/govuk-prototype-components/x-govuk/components/masthead/masthead";
    + @import "pkg:@x-govuk/govuk-prototype-components/masthead";"

v3.1.0...v4.0.0

v4.0.0 (Pre-release 1)

19 May 23:55
5ecb26a

Choose a tag to compare

Pre-release
  • Add prototype kit template for secondary navigation 47e8e6c
  • Fix main and module entrypoints in package.json 92a9ec5
  • Add git+ prefix to package repository URL be11ad7
  • Update sourcemap for distributed file 5fab4a3

v4.0.0-0...v4.0.0-1

v4.0.0 (Pre-release 0)

19 May 23:22
e7c2a1b

Choose a tag to compare

Pre-release
  • Update rimraf and stylelint-order dependencies e8e670d
  • Update getting started documentation and release notes c747b1f
  • Update supported versions 54cd881
  • Explicitly call govuk-frontend from node_modules aa5b566
  • Move files in src directory c8fa0a9
  • Convert project to ES modules 6cc512e
  • Use govuk-exports for components 53c7f2e
  • Update documentation site 924232d
  • Replace Sass imports with module loading methods cd96d8e
  • Use index for all component Sass files 8f3fd7b
  • Update references to primary navigation component ec6dd2b
  • Remove documentation for primary navigation component 692b096
  • Remove primary navigation component f78bd05
  • Require Require Node v20.19 or above 5479b1f
  • Use ESM for documentation directory data file 10989b9
  • Lint JavaScript 2b34754
  • Use Node version from .nvmrc for test workflow b0465ee

v3.1.0...v4.0.0-0

v3.1.0

03 May 22:03
92587ee

Choose a tag to compare


v3.0.9...v3.1.0

v3.0.9

23 Sep 10:14
4fb0a6b

Choose a tag to compare

  • Remove govuk-prototype-kit as a dependency ff53ccc
  • Add a deprecation warning to primary navigation styles 1e27977
  • Update deprecation notice for primary navigation in documentation adfce53
  • Update dependencies f0dba77

v3.0.8...v3.0.9

v3.0.8

18 Sep 17:32
c846eb7

Choose a tag to compare

  • Add notification banner to primary navigation component 84778fa
  • Pass attributes option to items in autocomplete component a7981b2
  • Update dependencies bda2bb7

v3.0.7...v3.0.8