govuk_publishing_components 35.3.3 → 35.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +4 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/init-ga4.js +1 -1
- data/app/assets/stylesheets/component_guide/application.scss +37 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +10 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +0 -24
- data/app/views/govuk_publishing_components/component_guide/example.html.erb +1 -1
- data/app/views/govuk_publishing_components/component_guide/preview.html.erb +1 -1
- data/app/views/govuk_publishing_components/component_guide/show.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +6 -2
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -3
- data/app/views/govuk_publishing_components/components/docs/organisation_logo.yml +5 -5
- data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_related.yml +1 -0
- data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +1 -1
- data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -0
- data/config/locales/en.yml +2 -2
- data/lib/govuk_publishing_components/app_helpers/asset_helper.rb +4 -0
- data/lib/govuk_publishing_components/presenters/breadcrumbs_helper.rb +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/axe.d.ts +77 -6
- data/node_modules/axe-core/axe.js +955 -600
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/locales/_template.json +6 -6
- data/node_modules/axe-core/locales/ja.json +91 -11
- data/node_modules/axe-core/package.json +5 -5
- data/node_modules/axe-core/sri-history.json +4 -0
- data/node_modules/govuk-frontend/README.md +4 -5
- data/node_modules/govuk-frontend/govuk/all-ie8.scss +8 -0
- data/node_modules/govuk-frontend/govuk/all.js +738 -258
- data/node_modules/govuk-frontend/govuk/all.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js +11 -7
- data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js +17 -0
- data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js.map +1 -0
- data/node_modules/govuk-frontend/govuk/common/index.js +16 -4
- data/node_modules/govuk-frontend/govuk/common/index.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js +20 -10
- data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/common.js +16 -4
- data/node_modules/govuk-frontend/govuk/common.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +3 -3
- data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +234 -86
- data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +32 -13
- data/node_modules/govuk-frontend/govuk/components/accordion/macro-options.json +8 -2
- data/node_modules/govuk-frontend/govuk/components/accordion/template.njk +1 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/back-link/fixtures.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/back-link/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +12 -12
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +8 -6
- data/node_modules/govuk-frontend/govuk/components/button/button.js +54 -19
- data/node_modules/govuk-frontend/govuk/components/button/button.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +11 -1
- data/node_modules/govuk-frontend/govuk/components/button/macro-options.json +7 -1
- data/node_modules/govuk-frontend/govuk/components/button/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +170 -76
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +24 -24
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -6
- data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +75 -24
- data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +47 -47
- data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/checkboxes/template.njk +3 -3
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +24 -24
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/date-input/fixtures.json +26 -26
- data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/date-input/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/details/details.js +39 -13
- data/node_modules/govuk-frontend/govuk/components/details/details.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/details/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +10 -10
- data/node_modules/govuk-frontend/govuk/components/error-message/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +67 -27
- data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/error-summary/fixtures.json +19 -19
- data/node_modules/govuk-frontend/govuk/components/error-summary/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/fieldset/fixtures.json +19 -19
- data/node_modules/govuk-frontend/govuk/components/fieldset/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +6 -1
- data/node_modules/govuk-frontend/govuk/components/file-upload/fixtures.json +14 -14
- data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +7 -1
- data/node_modules/govuk-frontend/govuk/components/file-upload/template.njk +2 -1
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +0 -7
- data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +24 -24
- data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +22 -22
- data/node_modules/govuk-frontend/govuk/components/header/header.js +46 -14
- data/node_modules/govuk-frontend/govuk/components/header/header.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/hint/fixtures.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/hint/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +15 -3
- data/node_modules/govuk-frontend/govuk/components/input/fixtures.json +54 -41
- data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +7 -1
- data/node_modules/govuk-frontend/govuk/components/input/template.njk +2 -1
- data/node_modules/govuk-frontend/govuk/components/inset-text/fixtures.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/inset-text/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/label/fixtures.json +6 -6
- data/node_modules/govuk-frontend/govuk/components/label/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/notification-banner/fixtures.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/notification-banner/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +49 -22
- data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/pagination/fixtures.json +16 -16
- data/node_modules/govuk-frontend/govuk/components/pagination/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/panel/fixtures.json +10 -10
- data/node_modules/govuk-frontend/govuk/components/panel/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/phase-banner/fixtures.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/phase-banner/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +5 -5
- data/node_modules/govuk-frontend/govuk/components/radios/fixtures.json +46 -46
- data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/radios/radios.js +65 -22
- data/node_modules/govuk-frontend/govuk/components/radios/radios.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/radios/template.njk +2 -2
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss +7 -1
- data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +19 -20
- data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +7 -1
- data/node_modules/govuk-frontend/govuk/components/select/template.njk +5 -2
- data/node_modules/govuk-frontend/govuk/components/skip-link/fixtures.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/skip-link/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +41 -13
- data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +34 -34
- data/node_modules/govuk-frontend/govuk/components/summary-list/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +21 -21
- data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/tabs/fixtures.json +15 -15
- data/node_modules/govuk-frontend/govuk/components/tabs/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +178 -60
- data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/components/tabs/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +18 -18
- data/node_modules/govuk-frontend/govuk/components/tag/fixtures.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/tag/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +8 -1
- data/node_modules/govuk-frontend/govuk/components/textarea/fixtures.json +18 -18
- data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +7 -1
- data/node_modules/govuk-frontend/govuk/components/textarea/template.njk +2 -1
- data/node_modules/govuk-frontend/govuk/components/warning-text/fixtures.json +9 -5
- data/node_modules/govuk-frontend/govuk/components/warning-text/macro-options.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/warning-text/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/core/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +5 -2
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +1 -1
- data/node_modules/govuk-frontend/govuk/i18n.js +38 -30
- data/node_modules/govuk-frontend/govuk/i18n.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/macros/i18n.njk +12 -11
- data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +1 -1
- data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +4 -0
- data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +16 -0
- data/node_modules/govuk-frontend/govuk/settings/_links.scss +5 -1
- data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +38 -2
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js +2 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js +2 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js +2 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js +10 -3
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js +4 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js +13 -7
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js +2 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +8 -2
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +8 -2
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js +4 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js +10 -3
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js +4 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js +2 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js +3 -2
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js.map +1 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js +2 -1
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js.map +1 -1
- data/node_modules/govuk-frontend/govuk-esm/all.mjs +81 -60
- data/node_modules/govuk-frontend/govuk-esm/all.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/common/closest-attribute-value.mjs +12 -8
- data/node_modules/govuk-frontend/govuk-esm/common/closest-attribute-value.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/common/govuk-frontend-version.mjs +9 -0
- data/node_modules/govuk-frontend/govuk-esm/common/govuk-frontend-version.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/common/index.mjs +44 -29
- data/node_modules/govuk-frontend/govuk-esm/common/index.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/common/normalise-dataset.mjs +15 -9
- data/node_modules/govuk-frontend/govuk-esm/common/normalise-dataset.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/common.mjs +3 -5
- data/node_modules/govuk-frontend/govuk-esm/common.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/accordion/accordion.mjs +319 -211
- data/node_modules/govuk-frontend/govuk-esm/components/accordion/accordion.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/button/button.mjs +47 -30
- data/node_modules/govuk-frontend/govuk-esm/components/button/button.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/character-count/character-count.mjs +169 -115
- data/node_modules/govuk-frontend/govuk-esm/components/character-count/character-count.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/checkboxes/checkboxes.mjs +88 -51
- data/node_modules/govuk-frontend/govuk-esm/components/checkboxes/checkboxes.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/details/details.mjs +64 -54
- data/node_modules/govuk-frontend/govuk-esm/components/details/details.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/error-summary/error-summary.mjs +69 -50
- data/node_modules/govuk-frontend/govuk-esm/components/error-summary/error-summary.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/header/header.mjs +59 -35
- data/node_modules/govuk-frontend/govuk-esm/components/header/header.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/notification-banner/notification-banner.mjs +36 -25
- data/node_modules/govuk-frontend/govuk-esm/components/notification-banner/notification-banner.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/radios/radios.mjs +67 -38
- data/node_modules/govuk-frontend/govuk-esm/components/radios/radios.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/skip-link/skip-link.mjs +49 -32
- data/node_modules/govuk-frontend/govuk-esm/components/skip-link/skip-link.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/components/tabs/tabs.mjs +263 -163
- data/node_modules/govuk-frontend/govuk-esm/components/tabs/tabs.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/i18n.mjs +68 -57
- data/node_modules/govuk-frontend/govuk-esm/i18n.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/DOMTokenList.mjs +5 -3
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/DOMTokenList.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Date/now.mjs +4 -2
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Date/now.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Document.mjs +4 -2
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Document.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/classList.mjs +7 -4
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/classList.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/closest.mjs +5 -2
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/closest.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/dataset.mjs +13 -10
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/dataset.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs +4 -2
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/nextElementSibling.mjs +6 -3
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/nextElementSibling.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/previousElementSibling.mjs +6 -3
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/previousElementSibling.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element.mjs +5 -2
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Event.mjs +7 -4
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Event.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Function/prototype/bind.mjs +5 -2
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Function/prototype/bind.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Object/defineProperty.mjs +4 -2
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Object/defineProperty.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/String/prototype/trim.mjs +5 -3
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/String/prototype/trim.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Window.mjs +4 -2
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Window.mjs.map +1 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit/init.js +1 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +2 -1
- data/node_modules/govuk-frontend/package.json +3 -2
- metadata +44 -7
- /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_13px.png → dbt_crest_13px.png} +0 -0
- /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_13px_x2.png → dbt_crest_13px_x2.png} +0 -0
- /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_18px.png → dbt_crest_18px.png} +0 -0
- /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_18px_x2.png → dbt_crest_18px_x2.png} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d392a9b81ae24c8b1a28866c2b9de1b8f1416e8242a214b41885d5ffd1bb583
|
4
|
+
data.tar.gz: 5a8cc4ed7a4819aaf9113f24367a58699e519e9ccebf01c854193f3e010eaa42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70b9c68201b266e1e19b48346994d5783b5246c5944de3fe59f5b703c634e8ad6db15722d9ef2781750380826b961f170ec9057c365e10f2c4986e528f5d7198
|
7
|
+
data.tar.gz: c55cfea102e83bc8c2423a77d21ce92dc58c8e33e84b301923bd880254b4082b6bb255f1d22fc6d62077787209417d7acb4bd541947dfc45910322ca24a694f7
|
@@ -32,6 +32,10 @@ window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {};
|
|
32
32
|
|
33
33
|
sendData: function (data) {
|
34
34
|
data.govuk_gem_version = this.getGemVersion()
|
35
|
+
// set this in the console as a debugging aid
|
36
|
+
if (window.GOVUK.analyticsGa4.showDebug) {
|
37
|
+
console.info(JSON.stringify(data, null, ' '))
|
38
|
+
}
|
35
39
|
window.dataLayer.push(data)
|
36
40
|
},
|
37
41
|
|
@@ -11,7 +11,7 @@ var initFunction = function () {
|
|
11
11
|
var attachmentLinkData = [
|
12
12
|
{ key: 'data-module', value: 'ga4-link-tracker' },
|
13
13
|
{ key: 'data-ga4-track-links-only', value: '' },
|
14
|
-
{ key: 'data-ga4-link', value: JSON.stringify({ event_name: 'navigation', type: '
|
14
|
+
{ key: 'data-ga4-link', value: JSON.stringify({ event_name: 'navigation', type: 'attachment' }) }]
|
15
15
|
window.GOVUK.analyticsGa4.core.trackFunctions.addAttributesToElements('[data-ga4-attachment-link]', attachmentLinkData)
|
16
16
|
window.GOVUK.analyticsGa4.core.load()
|
17
17
|
|
@@ -1,6 +1,42 @@
|
|
1
1
|
// This file contains the styles for the Component Guide.
|
2
2
|
|
3
|
-
|
3
|
+
// feature flag for accessible link styles
|
4
|
+
$govuk-new-link-styles: true;
|
5
|
+
|
6
|
+
@import "govuk_publishing_components/govuk_frontend_support";
|
7
|
+
@import "govuk_publishing_components/component_support";
|
8
|
+
|
9
|
+
// Import the same stylesheets used in static
|
10
|
+
// https://github.com/alphagov/static/blob/198a598682df40ce4a2c3c286c06244297c18cf0/app/assets/stylesheets/application.scss
|
11
|
+
// Although the component guide does not use static, we still need to import the same stylesheets used in static
|
12
|
+
// to avoid any rendering issues
|
13
|
+
// By following the same approach as frontend rendering applications,
|
14
|
+
// we ensure that stylesheets are loaded in the expected order and components render correctly
|
15
|
+
@import "govuk_publishing_components/components/breadcrumbs";
|
16
|
+
@import "govuk_publishing_components/components/button";
|
17
|
+
@import "govuk_publishing_components/components/error-message";
|
18
|
+
@import "govuk_publishing_components/components/heading";
|
19
|
+
@import "govuk_publishing_components/components/hint";
|
20
|
+
@import "govuk_publishing_components/components/input";
|
21
|
+
@import "govuk_publishing_components/components/label";
|
22
|
+
@import "govuk_publishing_components/components/search";
|
23
|
+
@import "govuk_publishing_components/components/skip-link";
|
24
|
+
@import "govuk_publishing_components/components/textarea";
|
25
|
+
@import "govuk_publishing_components/components/title";
|
26
|
+
|
27
|
+
@import "govuk_publishing_components/components/cookie-banner";
|
28
|
+
@import "govuk_publishing_components/components/feedback";
|
29
|
+
@import "govuk_publishing_components/components/layout-footer";
|
30
|
+
@import "govuk_publishing_components/components/layout-for-public";
|
31
|
+
@import "govuk_publishing_components/components/layout-header";
|
32
|
+
@import "govuk_publishing_components/components/layout-super-navigation-header";
|
33
|
+
|
34
|
+
// Imported to ensure inverse-header component examples render correctly
|
35
|
+
// this helps avoid any issues with visual regressions tests
|
36
|
+
@import "govuk_publishing_components/components/lead-paragraph";
|
37
|
+
|
38
|
+
// Include required helpers
|
39
|
+
@import "../../stylesheets/govuk_publishing_components/components/helpers/markdown-typography";
|
4
40
|
|
5
41
|
$gem-guide-border-width: 1px;
|
6
42
|
|
@@ -23,16 +23,20 @@
|
|
23
23
|
}
|
24
24
|
|
25
25
|
.gem-c-metadata--inverse {
|
26
|
+
background-color: govuk-colour("blue");
|
26
27
|
color: govuk-colour("white");
|
28
|
+
padding: govuk-spacing(2);
|
27
29
|
|
28
|
-
a
|
29
|
-
|
30
|
-
a:visited {
|
31
|
-
color: govuk-colour("white");
|
30
|
+
a {
|
31
|
+
@include govuk-link-style-inverse;
|
32
32
|
}
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
.gem-c-metadata__list {
|
35
|
+
margin: govuk-spacing(2);
|
36
|
+
|
37
|
+
@include govuk-media-query($from: tablet) {
|
38
|
+
margin: govuk-spacing(3);
|
39
|
+
}
|
36
40
|
}
|
37
41
|
}
|
38
42
|
|
data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
CHANGED
@@ -96,27 +96,3 @@
|
|
96
96
|
border-color: #045f71;
|
97
97
|
}
|
98
98
|
}
|
99
|
-
|
100
|
-
// This change should be removed after relevant govuk-frontend release
|
101
|
-
|
102
|
-
.brand--department-for-business-and-trade {
|
103
|
-
.brand__color {
|
104
|
-
color: #cf102d;
|
105
|
-
|
106
|
-
&:link,
|
107
|
-
&:visited,
|
108
|
-
&:active {
|
109
|
-
color: #cf102d;
|
110
|
-
}
|
111
|
-
|
112
|
-
&:hover,
|
113
|
-
&:focus {
|
114
|
-
color: $govuk-focus-text-colour;
|
115
|
-
}
|
116
|
-
}
|
117
|
-
|
118
|
-
&.brand__border-color,
|
119
|
-
.brand__border-color {
|
120
|
-
border-color: #cf102d;
|
121
|
-
}
|
122
|
-
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% content_for :title, "#{@component_example.name} example - #{@component_doc.name} component" %>
|
2
2
|
<% content_for :application_stylesheet do %>
|
3
|
-
<% if @component_doc.source == "application" %>
|
3
|
+
<% if @component_doc.source == "application" && application_stylesheet_in_use? %>
|
4
4
|
<%= render 'application_stylesheet' %>
|
5
5
|
<% end %>
|
6
6
|
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% content_for :title, "#{@component_doc.name} component" %>
|
2
2
|
<% content_for :application_stylesheet do %>
|
3
|
-
<% if @component_doc.source == "application" %>
|
3
|
+
<% if @component_doc.source == "application" && application_stylesheet_in_use? %>
|
4
4
|
<%= render 'application_stylesheet' %>
|
5
5
|
<% end %>
|
6
6
|
<% end %>
|
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
@@ -126,8 +126,8 @@
|
|
126
126
|
text: link[:label],
|
127
127
|
index: {
|
128
128
|
index_section: 1,
|
129
|
+
index_section_count: 2,
|
129
130
|
},
|
130
|
-
index_total: 2,
|
131
131
|
section: link[:label]
|
132
132
|
}
|
133
133
|
},
|
@@ -159,8 +159,8 @@
|
|
159
159
|
"text": "Search",
|
160
160
|
"index": {
|
161
161
|
"index_section": 2,
|
162
|
+
"index_section_count": 2,
|
162
163
|
},
|
163
|
-
"index_total": 2,
|
164
164
|
"section": "Search"
|
165
165
|
}.to_json %>"
|
166
166
|
>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
classes << shared_helper.get_margin_bottom if local_assigns[:margin_bottom]
|
21
21
|
%>
|
22
22
|
<%= content_tag :div, class: classes, data: { module: "gem-toggle metadata" } do %>
|
23
|
-
<dl data-module="gem-track-click">
|
23
|
+
<dl class="gem-c-metadata__list" data-module="gem-track-click">
|
24
24
|
<% if from.any? %>
|
25
25
|
<dt class="gem-c-metadata__term"><%= t("components.metadata.from") %>:</dt>
|
26
26
|
<dd class="gem-c-metadata__definition">
|
@@ -2,6 +2,7 @@
|
|
2
2
|
related_nav_helper = GovukPublishingComponents::Presenters::RelatedNavigationHelper.new(local_assigns)
|
3
3
|
shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
|
4
4
|
ga4_tracking ||= false
|
5
|
+
ga4_type = local_assigns[:context] == :footer ? "contextual footer" : "related content"
|
5
6
|
data = {}
|
6
7
|
data[:module] = "gem-track-click"
|
7
8
|
data[:module] << " ga4-link-tracker" if ga4_tracking
|
@@ -42,7 +43,8 @@
|
|
42
43
|
section_index: section_index,
|
43
44
|
section_count: ga4_tracking_counts.index_section_count,
|
44
45
|
random: random,
|
45
|
-
ga4_tracking: ga4_tracking
|
46
|
+
ga4_tracking: ga4_tracking,
|
47
|
+
ga4_type: ga4_type %>
|
46
48
|
<% end %>
|
47
49
|
<% end %>
|
48
50
|
<% end %>
|
@@ -54,7 +54,9 @@
|
|
54
54
|
ga4_link_data = {
|
55
55
|
'event_name': 'share',
|
56
56
|
'type': 'share this page',
|
57
|
-
'index':
|
57
|
+
'index': {
|
58
|
+
'index_link': index + 1,
|
59
|
+
},
|
58
60
|
'index_total': links.length,
|
59
61
|
'text': link[:icon],
|
60
62
|
}
|
@@ -63,7 +65,9 @@
|
|
63
65
|
ga4_link_data = {
|
64
66
|
'event_name': 'navigation',
|
65
67
|
'type': 'follow us',
|
66
|
-
'index':
|
68
|
+
'index': {
|
69
|
+
'index_link': index + 1,
|
70
|
+
},
|
67
71
|
'index_total': links.length
|
68
72
|
}
|
69
73
|
end
|
@@ -12,7 +12,7 @@ shared_accessibility_criteria:
|
|
12
12
|
accessibility_excluded_rules:
|
13
13
|
- skip-link # This component is creating a reference to sections of the page that are not part of the examples.
|
14
14
|
examples:
|
15
|
-
|
15
|
+
default:
|
16
16
|
data:
|
17
17
|
from: <a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>
|
18
18
|
part_of_only:
|
@@ -355,8 +355,6 @@ examples:
|
|
355
355
|
see_updates_link: true
|
356
356
|
other:
|
357
357
|
Applies to: England, Scotland, and Wales (see detailed guidance for <a href="http://www.dardni.gov.uk/news-dard-pa022-a-13-new-procedure-for" rel="external">Northern Ireland</a>)
|
358
|
-
context:
|
359
|
-
dark_background: true
|
360
358
|
with_custom_margin_bottom:
|
361
359
|
description: |
|
362
360
|
The component accepts a number for margin bottom from `0` to `9` (`0px` to `60px`) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). It defaults to the `margin-bottom` values defined in the [responsive-bottom-margin mixin](https://github.com/alphagov/govuk_publishing_components/blob/main/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss#L1)
|
@@ -41,13 +41,13 @@ examples:
|
|
41
41
|
url: '/government/organisations/department-for-business-innovation-skills'
|
42
42
|
brand: 'department-for-business-innovation-skills'
|
43
43
|
crest: 'bis'
|
44
|
-
|
44
|
+
department_for_business_and_trade:
|
45
45
|
data:
|
46
46
|
organisation:
|
47
|
-
name: 'Department for<br>
|
48
|
-
url: '/government/organisations/department-for-
|
49
|
-
brand: 'department-for-
|
50
|
-
crest: '
|
47
|
+
name: 'Department for<br>Business & Trade'
|
48
|
+
url: '/government/organisations/department-for-business-and-trade'
|
49
|
+
brand: 'department-for-business-and-trade'
|
50
|
+
crest: 'dbt'
|
51
51
|
executive_office:
|
52
52
|
data:
|
53
53
|
organisation:
|
@@ -80,6 +80,7 @@ examples:
|
|
80
80
|
description: The ga4_tracking boolean allows you to add Google Analytics 4 (GA4) tracking to your component. Setting this to true will add the `ga4-link-tracker` module to your component. The JavaScript will then add a `data-ga4-link` attribute which contains a JSON object with data relevant to our tracking. See the [ga4-link-tracker docs](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
|
81
81
|
data:
|
82
82
|
ga4_tracking: true
|
83
|
+
pretitle: 'Example pretitle'
|
83
84
|
links: [
|
84
85
|
{
|
85
86
|
href: '#',
|
@@ -34,7 +34,7 @@
|
|
34
34
|
link_class = "govuk-link #{related_nav_helper.section_css_class("govuk-link gem-c-related-navigation__section-link", section_title, link: link, link_is_inline: (index >= section_link_limit))}"
|
35
35
|
ga4_attributes = {
|
36
36
|
event_name: "navigation",
|
37
|
-
type:
|
37
|
+
type: ga4_type,
|
38
38
|
index: {
|
39
39
|
index_section: "#{section_index}",
|
40
40
|
index_link: "#{index}",
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
<%= stylesheet_link_tag "component_guide/application", media: "all" %>
|
20
20
|
<%= yield :application_stylesheet %>
|
21
|
+
<%= render_component_stylesheets %>
|
21
22
|
|
22
23
|
<%= javascript_include_tag "govuk_publishing_components/vendor/modernizr" %>
|
23
24
|
<%= yield :extra_headers %>
|
data/config/locales/en.yml
CHANGED
@@ -236,10 +236,10 @@ en:
|
|
236
236
|
href: "/guidance/getting-the-energy-bills-support-scheme-discount"
|
237
237
|
- label: Find a job
|
238
238
|
href: "/find-a-job"
|
239
|
-
- label: Coronavirus (COVID-19)
|
240
|
-
href: "/coronavirus"
|
241
239
|
- label: 'Universal Credit account: sign in'
|
242
240
|
href: "/sign-in-universal-credit"
|
241
|
+
- label: Check your National Insurance record
|
242
|
+
href: "/check-national-insurance-record"
|
243
243
|
popular_links_heading: Popular on GOV.UK
|
244
244
|
search_text: Search GOV.UK
|
245
245
|
metadata:
|
@@ -190,12 +190,13 @@ declare namespace axe {
|
|
190
190
|
help: string;
|
191
191
|
};
|
192
192
|
}
|
193
|
+
interface CheckMessages {
|
194
|
+
pass: string | { [key: string]: string };
|
195
|
+
fail: string | { [key: string]: string };
|
196
|
+
incomplete: string | { [key: string]: string };
|
197
|
+
}
|
193
198
|
interface CheckLocale {
|
194
|
-
[key: string]:
|
195
|
-
pass: string | { [key: string]: string };
|
196
|
-
fail: string | { [key: string]: string };
|
197
|
-
incomplete: string | { [key: string]: string };
|
198
|
-
};
|
199
|
+
[key: string]: CheckMessages;
|
199
200
|
}
|
200
201
|
interface Locale {
|
201
202
|
lang?: string;
|
@@ -237,7 +238,7 @@ declare namespace axe {
|
|
237
238
|
}
|
238
239
|
interface Spec {
|
239
240
|
branding?: string | Branding;
|
240
|
-
reporter?: ReporterVersion;
|
241
|
+
reporter?: ReporterVersion | string | AxeReporter;
|
241
242
|
checks?: Check[];
|
242
243
|
rules?: Rule[];
|
243
244
|
standards?: Standards;
|
@@ -263,6 +264,10 @@ declare namespace axe {
|
|
263
264
|
options?: any;
|
264
265
|
matches?: string;
|
265
266
|
enabled?: boolean;
|
267
|
+
metadata?: {
|
268
|
+
impact?: ImpactValue;
|
269
|
+
messages?: CheckMessages;
|
270
|
+
};
|
266
271
|
}
|
267
272
|
interface Rule {
|
268
273
|
id: string;
|
@@ -277,6 +282,7 @@ declare namespace axe {
|
|
277
282
|
tags?: string[];
|
278
283
|
matches?: string;
|
279
284
|
reviewOnFail?: boolean;
|
285
|
+
metadata?: Omit<RuleMetadata, 'ruleId'>;
|
280
286
|
}
|
281
287
|
interface AxePlugin {
|
282
288
|
id: string;
|
@@ -319,6 +325,40 @@ declare namespace axe {
|
|
319
325
|
frameSelector: CrossTreeSelector;
|
320
326
|
frameContext: FrameContextObject;
|
321
327
|
}
|
328
|
+
|
329
|
+
interface RawNodeResult<T extends 'passed' | 'failed' | 'incomplete'> {
|
330
|
+
any: CheckResult[];
|
331
|
+
all: CheckResult[];
|
332
|
+
none: CheckResult[];
|
333
|
+
impact: ImpactValue | null;
|
334
|
+
result: T;
|
335
|
+
}
|
336
|
+
|
337
|
+
interface RawResult extends Omit<Result, 'nodes'> {
|
338
|
+
inapplicable: [];
|
339
|
+
passes: RawNodeResult<'passed'>[];
|
340
|
+
incomplete: RawNodeResult<'incomplete'>[];
|
341
|
+
violations: RawNodeResult<'failed'>[];
|
342
|
+
pageLevel: boolean;
|
343
|
+
result: 'failed' | 'passed' | 'incomplete' | 'inapplicable';
|
344
|
+
}
|
345
|
+
|
346
|
+
type AxeReporter<T = unknown> = (
|
347
|
+
rawResults: RawResult[],
|
348
|
+
option: RunOptions,
|
349
|
+
callback: (report: T) => void
|
350
|
+
) => void;
|
351
|
+
|
352
|
+
interface VirtualNode {
|
353
|
+
actualNode?: Node;
|
354
|
+
shadowId?: string;
|
355
|
+
children?: VirtualNode[];
|
356
|
+
parent?: VirtualNode;
|
357
|
+
attr(attr: string): string | null;
|
358
|
+
hasAttr(attr: string): boolean;
|
359
|
+
props: { [key: string]: unknown };
|
360
|
+
}
|
361
|
+
|
322
362
|
interface Utils {
|
323
363
|
getFrameContexts: (
|
324
364
|
context?: ElementContext,
|
@@ -326,7 +366,9 @@ declare namespace axe {
|
|
326
366
|
) => FrameContext[];
|
327
367
|
shadowSelect: (selector: CrossTreeSelector) => Element | null;
|
328
368
|
shadowSelectAll: (selector: CrossTreeSelector) => Element[];
|
369
|
+
getStandards(): Required<Standards>;
|
329
370
|
}
|
371
|
+
|
330
372
|
interface EnvironmentData {
|
331
373
|
testEngine: TestEngine;
|
332
374
|
testRunner: TestRunner;
|
@@ -436,6 +478,35 @@ declare namespace axe {
|
|
436
478
|
*/
|
437
479
|
function frameMessenger(frameMessenger: FrameMessenger): void;
|
438
480
|
|
481
|
+
/**
|
482
|
+
* Setup axe-core so axe.common functions can work properly.
|
483
|
+
*/
|
484
|
+
function setup(node?: Element | Document): VirtualNode;
|
485
|
+
|
486
|
+
/**
|
487
|
+
* Clean up axe-core tree and caches. `axe.run` will call this function at the end of the run so there's no need to call it yourself afterwards.
|
488
|
+
*/
|
489
|
+
function teardown(): void;
|
490
|
+
|
491
|
+
/**
|
492
|
+
* Check if a reporter is registered
|
493
|
+
*/
|
494
|
+
function hasReporter(reporterName: string): boolean;
|
495
|
+
|
496
|
+
/**
|
497
|
+
* Get a reporter based the name it is registered with
|
498
|
+
*/
|
499
|
+
function getReporter<T>(reporterName: string): AxeReporter<T>;
|
500
|
+
|
501
|
+
/**
|
502
|
+
* Register a new reporter, optionally setting it as the default
|
503
|
+
*/
|
504
|
+
function addReporter<T>(
|
505
|
+
reporterName: string,
|
506
|
+
reporter: AxeReporter<T>,
|
507
|
+
isDefault?: boolean
|
508
|
+
): void;
|
509
|
+
|
439
510
|
// axe.frameMessenger
|
440
511
|
type FrameMessenger = {
|
441
512
|
open: (topicHandler: TopicHandler) => Close | void;
|