govuk_publishing_components 35.3.2 → 35.3.4
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/components/cookie-banner.js +11 -5
- data/app/assets/stylesheets/component_guide/application.scss +37 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +8 -59
- 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 +24 -0
- 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/_cookie_banner.html.erb +49 -57
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +3 -3
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +1 -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/layouts/govuk_publishing_components/application.html.erb +1 -0
- data/config/locales/cy.yml +1 -1
- 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 +43 -6
- /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: 680ad90c110fd479938af6d7191ee00f4302d83df0b7a01de864e4c1d041d2c6
|
4
|
+
data.tar.gz: 825f5839667e7faf94b1ce951b9437dfd17e522f98b8490e915420528004cb75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57cc038c7b44cb48595d58da00c9aebc0c5d5afec0ee5d45632313332c47c52f8f9218e5148c41202cbfd97b7c518fcb8f2a84d3d06434467ce188313dcd72eb
|
7
|
+
data.tar.gz: 12e48e88a698772f7e7af0a51828a4bcbfcc48a232c2b4353672d325a39f2ffbb8248bed39adab960fe45a4d01f44c35e24e665e11a77e131c1940533871bdb2
|
@@ -76,7 +76,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
76
76
|
|
77
77
|
CookieBanner.prototype.setCookieConsent = function () {
|
78
78
|
if (this.$acceptCookiesButton.getAttribute('data-cookie-types') === 'all') {
|
79
|
-
this.$module.querySelector('.gem-c-cookie-banner__confirmation-
|
79
|
+
this.$module.querySelector('.gem-c-cookie-banner__confirmation-message--accepted').hidden = false
|
80
80
|
}
|
81
81
|
window.GOVUK.approveAllCookieTypes()
|
82
82
|
this.$module.showConfirmationMessage()
|
@@ -92,7 +92,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
92
92
|
}
|
93
93
|
|
94
94
|
CookieBanner.prototype.rejectCookieConsent = function () {
|
95
|
-
this.$module.querySelector('.gem-c-cookie-banner__confirmation-
|
95
|
+
this.$module.querySelector('.gem-c-cookie-banner__confirmation-message--rejected').hidden = false
|
96
96
|
this.$module.showConfirmationMessage()
|
97
97
|
this.$module.cookieBannerConfirmationMessage.focus()
|
98
98
|
window.GOVUK.cookie('cookies_preferences_set', 'true', { days: 365 })
|
@@ -100,11 +100,17 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
100
100
|
}
|
101
101
|
|
102
102
|
CookieBanner.prototype.showConfirmationMessage = function () {
|
103
|
-
this.$
|
103
|
+
this.$cookieBannerHeader = document.querySelector('.govuk-cookie-banner__heading')
|
104
|
+
this.$cookieBannerHeader.hidden = true
|
104
105
|
|
106
|
+
this.$cookieBannerMainContent = document.querySelector('.gem-c-cookie-banner__content')
|
105
107
|
this.$cookieBannerMainContent.hidden = true
|
106
|
-
|
107
|
-
this.$
|
108
|
+
|
109
|
+
this.$cookieBannerConfirmationButtons = document.querySelector('.js-confirmation-buttons')
|
110
|
+
this.$cookieBannerConfirmationButtons.hidden = true
|
111
|
+
|
112
|
+
this.$cookieBannerHideButton = document.querySelector('.js-hide-button')
|
113
|
+
this.$cookieBannerHideButton.hidden = false
|
108
114
|
}
|
109
115
|
|
110
116
|
CookieBanner.prototype.isInCookiesPage = function () {
|
@@ -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
|
|
@@ -1,6 +1,13 @@
|
|
1
1
|
@import "govuk_publishing_components/individual_component_support";
|
2
2
|
@import "govuk/components/cookie-banner/cookie-banner";
|
3
|
-
|
3
|
+
|
4
|
+
.gem-c-cookie-banner .govuk-button-group[hidden] {
|
5
|
+
display: none;
|
6
|
+
}
|
7
|
+
|
8
|
+
.govuk-cookie-banner .govuk-cookie-banner__heading[hidden] {
|
9
|
+
display: none;
|
10
|
+
}
|
4
11
|
|
5
12
|
.js-enabled {
|
6
13
|
.gem-c-cookie-banner {
|
@@ -8,20 +15,12 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
|
|
8
15
|
}
|
9
16
|
}
|
10
17
|
|
11
|
-
.gem-c-cookie-banner {
|
12
|
-
background-color: $govuk-cookie-banner-background;
|
13
|
-
}
|
14
|
-
|
15
18
|
// can't be used without js so implement there
|
16
19
|
.gem-c-cookie-banner .gem-c-button {
|
17
20
|
display: none;
|
18
21
|
}
|
19
22
|
|
20
23
|
.gem-c-cookie-banner__confirmation {
|
21
|
-
display: none;
|
22
|
-
position: relative;
|
23
|
-
padding: govuk-spacing(1);
|
24
|
-
|
25
24
|
// This element is focused using JavaScript so that it's being read out by screen readers
|
26
25
|
// for this reason we don't want to show the default outline or emphasise it visually using `govuk-focused-text`
|
27
26
|
&:focus {
|
@@ -29,56 +28,6 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
|
|
29
28
|
}
|
30
29
|
}
|
31
30
|
|
32
|
-
.gem-c-cookie-banner__confirmation-message,
|
33
|
-
.gem-c-cookie-banner__hide-button {
|
34
|
-
display: block;
|
35
|
-
|
36
|
-
@include govuk-media-query($from: desktop) {
|
37
|
-
display: inline-block;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
.gem-c-cookie-banner__confirmation-message {
|
42
|
-
margin-right: govuk-spacing(4);
|
43
|
-
|
44
|
-
@include govuk-media-query($from: desktop) {
|
45
|
-
max-width: 90%;
|
46
|
-
margin-bottom: 0;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
// Override style from design system so we can have consistent
|
51
|
-
// padding on the the banner and the confirmation
|
52
|
-
|
53
|
-
.govuk-cookie-banner {
|
54
|
-
padding-top: 0;
|
55
|
-
}
|
56
|
-
|
57
|
-
// Override the styles from govuk_template
|
58
|
-
// stylelint-disable selector-max-id
|
59
|
-
.gem-c-cookie-banner#global-cookie-message {
|
60
|
-
background-color: $govuk-cookie-banner-background;
|
61
|
-
padding: govuk-spacing(3) 0 0 0;
|
62
|
-
box-sizing: border-box;
|
63
|
-
|
64
|
-
.gem-c-cookie-banner__message,
|
65
|
-
.gem-c-cookie-banner__buttons,
|
66
|
-
.gem-c-cookie-banner__confirmation,
|
67
|
-
.gem-c-cookie-banner__confirmation-message {
|
68
|
-
@include govuk-font($size: 19);
|
69
|
-
}
|
70
|
-
|
71
|
-
p {
|
72
|
-
@include govuk-font($size: 19);
|
73
|
-
margin: 0 0 govuk-spacing(2) 0;
|
74
|
-
}
|
75
|
-
|
76
|
-
.gem-c-cookie-banner__message,
|
77
|
-
.gem-c-cookie-banner__confirmation {
|
78
|
-
margin-bottom: - govuk-spacing(2);
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
31
|
@include govuk-media-query($media-type: print) {
|
83
32
|
.gem-c-cookie-banner {
|
84
33
|
display: none !important; // stylelint-disable-line declaration-no-important
|
@@ -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,3 +96,27 @@
|
|
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 %>
|
@@ -28,71 +28,63 @@
|
|
28
28
|
},
|
29
29
|
)))
|
30
30
|
services_cookies ||= nil
|
31
|
-
css_classes = %w(gem-c-cookie-banner govuk-clearfix)
|
31
|
+
css_classes = %w(gem-c-cookie-banner govuk-clearfix govuk-cookie-banner js-banner-wrapper)
|
32
32
|
css_classes << "gem-c-cookie-banner--services" if services_cookies
|
33
33
|
%>
|
34
|
+
|
34
35
|
<div id="<%= id %>" class="<%= css_classes.join(' ') %>" data-module="cookie-banner" data-nosnippet role="region" aria-label="<%= title %>">
|
35
|
-
<div class="govuk-cookie-
|
36
|
-
<div class="
|
37
|
-
<div class="govuk-grid-
|
38
|
-
<
|
39
|
-
|
40
|
-
<
|
41
|
-
|
42
|
-
|
36
|
+
<div class="govuk-cookie-banner__message govuk-width-container">
|
37
|
+
<div class="govuk-grid-row">
|
38
|
+
<div class="govuk-grid-column-two-thirds">
|
39
|
+
<h2 class="govuk-cookie-banner__heading govuk-heading-m"><%= title %></h2>
|
40
|
+
<div tabindex="-1" class="govuk-cookie-banner__content gem-c-cookie-banner__confirmation">
|
41
|
+
<span class="gem-c-cookie-banner__content"><%= text %></span>
|
42
|
+
<p class="gem-c-cookie-banner__confirmation-message--accepted govuk-body" hidden><%= t("components.cookie_banner.confirmation_message.accepted") %>. <span class="gem-c-cookie-banner__confirmation-message"><%= confirmation_message %></span></p>
|
43
|
+
<p class="gem-c-cookie-banner__confirmation-message--rejected govuk-body" hidden><%= t("components.cookie_banner.confirmation_message.rejected") %>. <span class="gem-c-cookie-banner__confirmation-message"><%= confirmation_message %></span></p>
|
43
44
|
</div>
|
44
45
|
</div>
|
46
|
+
</div>
|
47
|
+
<div class="js-confirmation-buttons govuk-button-group">
|
45
48
|
<% if services_cookies %>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
<%= link_to services_cookies.dig(:cookie_preferences, :text), services_cookies.dig(:cookie_preferences, :href), class: "govuk-link" %>
|
59
|
-
<% end %>
|
60
|
-
</div>
|
61
|
-
<% else %>
|
62
|
-
<div class="govuk-button-group">
|
63
|
-
<%= render "govuk_publishing_components/components/button", {
|
64
|
-
name: "cookies",
|
65
|
-
text: t("components.cookie_banner.buttons.accept_cookies"),
|
66
|
-
data_attributes: {
|
67
|
-
module: "gem-track-click",
|
68
|
-
"accept-cookies": "true",
|
69
|
-
"track-category": "cookieBanner",
|
70
|
-
"track-action": "Cookie banner accepted",
|
71
|
-
"cookie-types": "all",
|
72
|
-
}
|
73
|
-
} %>
|
74
|
-
<%= render "govuk_publishing_components/components/button", {
|
75
|
-
name: "cookies",
|
76
|
-
text: t("components.cookie_banner.buttons.reject_cookies"),
|
77
|
-
data_attributes: {
|
78
|
-
module: "gem-track-click",
|
79
|
-
"reject-cookies": "true",
|
80
|
-
"track-category": "cookieBanner",
|
81
|
-
"track-action": "Cookie banner rejected",
|
82
|
-
}
|
83
|
-
} %>
|
84
|
-
<a class="govuk-link" href="<%= cookie_preferences_href %>"><%= t("components.cookie_banner.buttons.view_cookies") %></a>
|
85
|
-
</div>
|
49
|
+
<%= render "govuk_publishing_components/components/button", {
|
50
|
+
name: "cookies",
|
51
|
+
text: services_cookies.dig(:yes, :text) || "Yes",
|
52
|
+
data_attributes: { module: "gem-track-click", "accept-cookies": "true", }.merge(services_cookies.dig(:yes, :data_attributes) || {})
|
53
|
+
} %>
|
54
|
+
<%= render "govuk_publishing_components/components/button", {
|
55
|
+
name: "cookies",
|
56
|
+
text: services_cookies.dig(:no, :text) || "No",
|
57
|
+
data_attributes: { module: "gem-track-click", "reject-cookies": "true", }.merge(services_cookies.dig(:no, :data_attributes) || {})
|
58
|
+
} %>
|
59
|
+
<% if services_cookies[:cookie_preferences] %>
|
60
|
+
<%= link_to services_cookies.dig(:cookie_preferences, :text), services_cookies.dig(:cookie_preferences, :href), class: "govuk-link" %>
|
86
61
|
<% end %>
|
62
|
+
<% else %>
|
63
|
+
<%= render "govuk_publishing_components/components/button", {
|
64
|
+
name: "cookies",
|
65
|
+
text: t("components.cookie_banner.buttons.accept_cookies"),
|
66
|
+
data_attributes: {
|
67
|
+
module: "gem-track-click",
|
68
|
+
"accept-cookies": "true",
|
69
|
+
"track-category": "cookieBanner",
|
70
|
+
"track-action": "Cookie banner accepted",
|
71
|
+
"cookie-types": "all",
|
72
|
+
}
|
73
|
+
} %>
|
74
|
+
<%= render "govuk_publishing_components/components/button", {
|
75
|
+
name: "cookies",
|
76
|
+
text: t("components.cookie_banner.buttons.reject_cookies"),
|
77
|
+
data_attributes: {
|
78
|
+
module: "gem-track-click",
|
79
|
+
"reject-cookies": "true",
|
80
|
+
"track-category": "cookieBanner",
|
81
|
+
"track-action": "Cookie banner rejected",
|
82
|
+
}
|
83
|
+
} %>
|
84
|
+
<a class="govuk-link" href="<%= cookie_preferences_href %>"><%= t("components.cookie_banner.buttons.view_cookies") %></a>
|
85
|
+
<% end %>
|
87
86
|
</div>
|
88
|
-
|
89
|
-
<div class="gem-c-cookie-banner__confirmation govuk-width-container" tabindex="-1" hidden>
|
90
|
-
<p class="gem-c-cookie-banner__confirmation-message" role="alert">
|
91
|
-
<span class="gem-c-cookie-banner__confirmation-message__accepted" hidden><%= t("components.cookie_banner.confirmation_message.accepted") %>. </span>
|
92
|
-
<span class="gem-c-cookie-banner__confirmation-message__rejected" hidden><%= t("components.cookie_banner.confirmation_message.rejected") %>. </span>
|
93
|
-
<%= confirmation_message %>
|
94
|
-
</p>
|
95
|
-
<div class="govuk-button-group">
|
87
|
+
<div hidden class="js-hide-button govuk-button-group">
|
96
88
|
<button class="gem-c-cookie-banner__hide-button govuk-button" data-hide-cookie-banner="true" data-module="gem-track-click" data-track-category="cookieBanner" data-track-action="Hide cookie banner"><%= t("components.cookie_banner.hide") %></button>
|
97
89
|
</div>
|
98
90
|
</div>
|
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
|
>
|
@@ -270,7 +270,7 @@
|
|
270
270
|
class="gem-c-layout-super-navigation-header__search-form"
|
271
271
|
id="search"
|
272
272
|
data-module="ga4-form-tracker"
|
273
|
-
data-ga4-form='{ "event_name": "search", "type": "header menu bar", "section": "Search GOV.UK", "action": "
|
273
|
+
data-ga4-form='{ "event_name": "search", "type": "header menu bar", "section": "Search GOV.UK", "action": "search", "url": "/search/all" }'
|
274
274
|
data-ga4-form-include-text
|
275
275
|
action="/search"
|
276
276
|
method="get"
|
@@ -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">
|
@@ -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: '#',
|
@@ -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/cy.yml
CHANGED
@@ -176,7 +176,7 @@ cy:
|
|
176
176
|
label: Chwilio ar GOV.UK
|
177
177
|
search_button: Chwilio
|
178
178
|
share_links:
|
179
|
-
all_opens_in_new_tab:
|
179
|
+
all_opens_in_new_tab: Bydd rhannu yn agor y dudalen hon mewn tab newydd
|
180
180
|
opens_in_new_tab:
|
181
181
|
show_password:
|
182
182
|
announce_hide: Mae eich cyfrinair wedi'i guddio
|