defra_ruby_template 5.4.0 → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/layouts/defra_ruby_template.html.erb +43 -23
- data/lib/defra_ruby_template/version.rb +1 -1
- data/lib/defra_ruby_template.rb +3 -8
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +882 -492
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +877 -492
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.mjs +5 -0
- data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest.svg +1 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +1 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +1 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +1 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +39 -0
- data/node_modules/govuk-frontend/dist/govuk/common/closest-attribute-value.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs +169 -0
- data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +20 -83
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/component.mjs +60 -0
- data/node_modules/govuk-frontend/dist/govuk/component.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +35 -31
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +296 -195
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +295 -194
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs +88 -110
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +16 -3
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +25 -15
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-link.html +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template.njk +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +53 -15
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/macro-options.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-inverse.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-collapse-on-mobile.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-last-breadcrumb-as-current-page.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-multiple-levels.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-one-level.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-without-the-home-section.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template.njk +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js +217 -106
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs +216 -105
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs +9 -22
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +38 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/macro-options.json +2 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +12 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +256 -145
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +255 -144
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +29 -34
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +80 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/macro-options.json +6 -6
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-error.html +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-hint-and-error.html +15 -0
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template.njk +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +6 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js +96 -50
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs +95 -49
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs +9 -18
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +88 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-divider-and-none.html +34 -0
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +23 -14
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +23 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +27 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/macro-options.json +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +7 -2
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js +238 -127
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs +237 -126
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs +10 -22
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +19 -0
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +218 -107
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +217 -106
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs +10 -22
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -5
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +18 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +175 -9
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +744 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs +736 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs +257 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +220 -16
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +52 -3
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-direct-media-capture.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-image-files-only.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-multiple-files.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-disabled.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-disabled.html +13 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-with-error-message-and-hint.html +16 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced.html +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-translated.html +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +42 -5
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +61 -19
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +34 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +223 -21
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +78 -32
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +90 -43
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +89 -42
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +10 -18
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +31 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +21 -15
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +21 -15
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-label.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-text.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-navigation-label.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +30 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-large-navigation.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-navigation.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +21 -15
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-and-navigation.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-but-no-service-url.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-st-edwards-crown.html +10 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +11 -41
- data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -4
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +97 -27
- data/node_modules/govuk-frontend/dist/govuk/components/input/macro-options.json +6 -6
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-default.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-disabled.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-and-hint.html +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-message.html +2 -5
- data/node_modules/govuk-frontend/dist/govuk/components/input/template.njk +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +17 -0
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +24 -0
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js +238 -127
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs +237 -126
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs +10 -22
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +24 -37
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +15 -0
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/macro-options.json +4 -4
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +13 -9
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +12 -9
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +27 -2
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/macro-options.json +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +220 -110
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +219 -109
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs +12 -25
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-default.html +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template.njk +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +0 -8
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +7 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +51 -5
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js +96 -50
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs +95 -49
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs +9 -18
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-a-divider.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-divider.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +43 -9
- data/node_modules/govuk-frontend/dist/govuk/components/select/macro-options.json +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-id.html +7 -0
- data/node_modules/govuk-frontend/dist/govuk/components/select/template.njk +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/README.md +15 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +187 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +515 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro-options.json +138 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro.njk +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +229 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +221 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +85 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-default.html +57 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-html-navigation-items.html +49 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-large-navigation.html +153 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-long-service-name.html +20 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-a-current-item.html +58 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-an-active-item.html +58 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-non-link-navigation-items.html +49 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-link.html +20 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name-and-navigation.html +63 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name.html +18 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +103 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js +95 -48
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs +94 -47
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs +15 -23
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +14 -22
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +174 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-extreme.html +106 -0
- data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +22 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +15 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +95 -53
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +94 -52
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs +15 -28
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +11 -8
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +14 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +12 -10
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +44 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-empty-values.html +27 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template.njk +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +32 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/macro-options.json +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/template.njk +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +6 -5
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +8 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs +16 -3
- data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +55 -8
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +14 -4
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +18 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +30 -62
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/init.mjs +90 -24
- data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +78 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +39 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +244 -10
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +5 -10
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/template.njk +20 -9
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +65 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +25 -0
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss.map +1 -1
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +8 -1
- data/node_modules/govuk-frontend/package.json +16 -16
- data/spec/spec_helper.rb +98 -0
- data/spec/tasks/assets_spec.rb +53 -0
- data/vendor/assets/assets/fonts/bold-affa96571d-v2.woff +0 -0
- data/vendor/assets/assets/fonts/bold-b542beb274-v2.woff2 +0 -0
- data/vendor/assets/assets/fonts/light-94a07e06a1-v2.woff2 +0 -0
- data/vendor/assets/assets/fonts/light-f591b13f7d-v2.woff +0 -0
- data/vendor/assets/assets/images/favicon.ico +0 -0
- data/vendor/assets/assets/images/favicon.svg +1 -0
- data/vendor/assets/assets/images/govuk-crest.svg +1 -0
- data/vendor/assets/assets/images/govuk-icon-180.png +0 -0
- data/vendor/assets/assets/images/govuk-icon-192.png +0 -0
- data/vendor/assets/assets/images/govuk-icon-512.png +0 -0
- data/vendor/assets/assets/images/govuk-icon-mask.svg +1 -0
- data/vendor/assets/assets/images/govuk-opengraph-image.png +0 -0
- data/vendor/assets/assets/manifest.json +39 -0
- data/vendor/assets/assets/rebrand/images/favicon.ico +0 -0
- data/vendor/assets/assets/rebrand/images/favicon.svg +1 -0
- data/vendor/assets/assets/rebrand/images/govuk-crest.svg +1 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-180.png +0 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-192.png +0 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-512.png +0 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-mask.svg +1 -0
- data/vendor/assets/assets/rebrand/images/govuk-opengraph-image.png +0 -0
- data/vendor/assets/assets/rebrand/manifest.json +39 -0
- data/vendor/assets/images/govuk-crest.svg +1 -0
- data/vendor/assets/javascripts/defra_ruby_template.js +882 -492
- data/vendor/assets/stylesheets/all.scss +6 -0
- data/vendor/assets/stylesheets/components/_index.scss +1 -0
- data/vendor/assets/stylesheets/components/accordion/_index.scss +35 -31
- data/vendor/assets/stylesheets/components/character-count/_index.scss +12 -4
- data/vendor/assets/stylesheets/components/checkboxes/_index.scss +6 -1
- data/vendor/assets/stylesheets/components/cookie-banner/_index.scss +23 -14
- data/vendor/assets/stylesheets/components/date-input/_index.scss +2 -2
- data/vendor/assets/stylesheets/components/details/_index.scss +7 -2
- data/vendor/assets/stylesheets/components/error-summary/_index.scss +4 -0
- data/vendor/assets/stylesheets/components/fieldset/_index.scss +3 -5
- data/vendor/assets/stylesheets/components/file-upload/_index.scss +175 -9
- data/vendor/assets/stylesheets/components/footer/_index.scss +61 -19
- data/vendor/assets/stylesheets/components/header/_index.scss +223 -21
- data/vendor/assets/stylesheets/components/input/_index.scss +7 -4
- data/vendor/assets/stylesheets/components/notification-banner/_index.scss +3 -2
- data/vendor/assets/stylesheets/components/pagination/_index.scss +24 -37
- data/vendor/assets/stylesheets/components/panel/_index.scss +13 -9
- data/vendor/assets/stylesheets/components/password-input/_index.scss +12 -9
- data/vendor/assets/stylesheets/components/phase-banner/_index.scss +0 -8
- data/vendor/assets/stylesheets/components/radios/_index.scss +7 -5
- data/vendor/assets/stylesheets/components/select/_index.scss +5 -5
- data/vendor/assets/stylesheets/components/service-navigation/_index.scss +187 -0
- data/vendor/assets/stylesheets/components/service-navigation/_service-navigation.scss +4 -0
- data/vendor/assets/stylesheets/components/skip-link/_index.scss +6 -4
- data/vendor/assets/stylesheets/components/summary-list/_index.scss +14 -22
- data/vendor/assets/stylesheets/components/tag/_index.scss +11 -8
- data/vendor/assets/stylesheets/components/task-list/_index.scss +12 -10
- data/vendor/assets/stylesheets/components/textarea/_index.scss +3 -3
- data/vendor/assets/stylesheets/components/warning-text/_index.scss +6 -5
- data/vendor/assets/stylesheets/core/_govuk-frontend-properties.scss +1 -1
- data/vendor/assets/stylesheets/defra_ruby_template.scss +6 -0
- data/vendor/assets/stylesheets/govuk-frontend.min.css +2 -2
- data/vendor/assets/stylesheets/helpers/_colour.scss +55 -8
- data/vendor/assets/stylesheets/helpers/_focused.scss +14 -4
- data/vendor/assets/stylesheets/helpers/_grid.scss +1 -1
- data/vendor/assets/stylesheets/helpers/_links.scss +2 -2
- data/vendor/assets/stylesheets/helpers/_shape-arrow.scss +1 -1
- data/vendor/assets/stylesheets/helpers/_typography.scss +18 -1
- data/vendor/assets/stylesheets/helpers/_visually-hidden.scss +30 -62
- data/vendor/assets/stylesheets/objects/_template.scss +5 -1
- data/vendor/assets/stylesheets/overrides/_typography.scss +5 -1
- data/vendor/assets/stylesheets/settings/_colours-applied.scss +39 -1
- data/vendor/assets/stylesheets/settings/_colours-organisations.scss +244 -10
- data/vendor/assets/stylesheets/settings/_typography-responsive.scss +5 -10
- data/vendor/assets/stylesheets/tools/_index.scss +1 -0
- data/vendor/assets/stylesheets/tools/_rebrand.scss +65 -0
- metadata +100 -24
- data/.github/dependabot.yml +0 -14
- data/.github/workflows/ci.yml +0 -31
- data/.gitignore +0 -8
- data/.rspec +0 -1
- data/.rubocop.yml +0 -3
- data/.ruby-version +0 -1
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -58
- data/defra_ruby_template.gemspec +0 -35
- data/node_modules/.package-lock.json +0 -16
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest-2x.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs +0 -18
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs +0 -31
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-value.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs +0 -16
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs.map +0 -1
- data/package-lock.json +0 -24
- data/package.json +0 -29
@@ -102,9 +102,9 @@
|
|
102
102
|
&:hover {
|
103
103
|
color: $govuk-accordion-base-colour;
|
104
104
|
background: $govuk-accordion-hover-colour;
|
105
|
-
// The
|
106
|
-
// button. We add a grey box-shadow on hover too, to make the height of
|
107
|
-
// match the height of the focus state.
|
105
|
+
// The focus state adds a box-shadow to the top and bottom of the
|
106
|
+
// button. We add a grey box-shadow on hover too, to make the height of
|
107
|
+
// the hover state match the height of the focus state.
|
108
108
|
box-shadow:
|
109
109
|
0 -2px $govuk-accordion-hover-colour,
|
110
110
|
0 4px $govuk-accordion-hover-colour;
|
@@ -147,7 +147,7 @@
|
|
147
147
|
|
148
148
|
position: relative;
|
149
149
|
|
150
|
-
// Set size using rems
|
150
|
+
// Set size using rems so icon scales with text
|
151
151
|
width: govuk-px-to-rem(20px);
|
152
152
|
height: govuk-px-to-rem(20px);
|
153
153
|
|
@@ -184,14 +184,15 @@
|
|
184
184
|
.govuk-accordion__section-button {
|
185
185
|
width: 100%;
|
186
186
|
|
187
|
-
padding: govuk-spacing(2) 0 0
|
187
|
+
padding: govuk-spacing(2) 0 0;
|
188
188
|
|
189
189
|
border: 0;
|
190
190
|
|
191
191
|
border-top: $govuk-accordion-bottom-border-width solid $govuk-border-colour;
|
192
192
|
|
193
|
-
// Visually separate the section from the one underneath when user changes
|
194
|
-
// browser. See
|
193
|
+
// Visually separate the section from the one underneath when user changes
|
194
|
+
// colours in their browser. See
|
195
|
+
// https://github.com/alphagov/govuk-frontend/issues/2321#issuecomment-924201488
|
195
196
|
border-bottom: govuk-spacing(2) solid transparent;
|
196
197
|
|
197
198
|
color: $govuk-text-colour;
|
@@ -230,8 +231,8 @@
|
|
230
231
|
}
|
231
232
|
|
232
233
|
&:focus {
|
233
|
-
// Remove default focus border around button as
|
234
|
-
//
|
234
|
+
// Remove default focus border around button as styling is being applied
|
235
|
+
// to inner text elements that receive focus
|
235
236
|
outline: 0;
|
236
237
|
|
237
238
|
.govuk-accordion__section-heading-text-focus,
|
@@ -257,9 +258,10 @@
|
|
257
258
|
}
|
258
259
|
}
|
259
260
|
|
260
|
-
// Remove the transparent border when the section is expanded to make it
|
261
|
-
// relates to the content below. Adjust padding to
|
262
|
-
//
|
261
|
+
// Remove the transparent border when the section is expanded to make it
|
262
|
+
// clear that the heading relates to the content below. Adjust padding to
|
263
|
+
// maintain the height of the element. See
|
264
|
+
// https://github.com/alphagov/govuk-frontend/pull/2257#issuecomment-951920798
|
263
265
|
.govuk-accordion__section--expanded .govuk-accordion__section-button {
|
264
266
|
padding-bottom: govuk-spacing(3);
|
265
267
|
border-bottom: 0;
|
@@ -269,8 +271,8 @@
|
|
269
271
|
}
|
270
272
|
}
|
271
273
|
|
272
|
-
// As Chevron icon is vertically aligned it overlaps with the focus state
|
273
|
-
//
|
274
|
+
// As Chevron icon is vertically aligned it overlaps with the focus state
|
275
|
+
// bottom border – this adds some spacing
|
274
276
|
.govuk-accordion__section-button:focus .govuk-accordion__section-toggle-focus {
|
275
277
|
padding-bottom: 3px;
|
276
278
|
|
@@ -299,9 +301,9 @@
|
|
299
301
|
color: $govuk-link-colour;
|
300
302
|
}
|
301
303
|
|
302
|
-
// Add space between the icon and text.
|
303
|
-
//
|
304
|
-
//
|
304
|
+
// Add space between the icon and text. Avoid applying spacing directly to
|
305
|
+
// the icon as the use of `transform` will change the placement of any
|
306
|
+
// margins.
|
305
307
|
.govuk-accordion__show-all-text,
|
306
308
|
.govuk-accordion__section-toggle-text {
|
307
309
|
margin-left: govuk-spacing(1);
|
@@ -310,23 +312,25 @@
|
|
310
312
|
|
311
313
|
// Background colour adjustment when user changes colours in Firefox
|
312
314
|
//
|
313
|
-
// When user changes colours in Firefox, text colour inside <button> is
|
314
|
-
// (regardless of the custom colours the user has set). This is
|
315
|
-
// button is not nested inside another element
|
316
|
-
//
|
317
|
-
// custom
|
315
|
+
// When user changes colours in Firefox, text colour inside <button> is
|
316
|
+
// always black (regardless of the custom colours the user has set). This is
|
317
|
+
// fine when the text in the button is not nested inside another element
|
318
|
+
// because when user changes colours in Firefox, the immediate background
|
319
|
+
// colour of buttons is always white (again, regardless of user's custom
|
320
|
+
// colours).
|
318
321
|
//
|
319
|
-
// However, when the text inside <button> is wrapped inside another element
|
320
|
-
// sets a background colour, the text colour is still black
|
321
|
-
//
|
322
|
-
//
|
323
|
-
//
|
322
|
+
// However, when the text inside <button> is wrapped inside another element
|
323
|
+
// AND that element sets a background colour, the text colour is still black
|
324
|
+
// but the background of that nested element gets the user's custom
|
325
|
+
// background colour. When the custom background is a lighter hue, the
|
326
|
+
// contrast might be sufficient. But if the user's custom background colour
|
327
|
+
// is a darker colour, the contrast with the text might not be sufficient.
|
324
328
|
//
|
325
|
-
// To ensure sufficient contrast, override the background colour set by the
|
326
|
-
// nested elements to be transparent.
|
329
|
+
// To ensure sufficient contrast, override the background colour set by the
|
330
|
+
// focus state on the nested elements to be transparent.
|
327
331
|
//
|
328
|
-
// Also override the background colour of the Show/Hide chevrons which set a
|
329
|
-
// on hover.
|
332
|
+
// Also override the background colour of the Show/Hide chevrons which set a
|
333
|
+
// background colour on hover.
|
330
334
|
@media screen and (forced-colors: active) {
|
331
335
|
.govuk-accordion__show-all:hover,
|
332
336
|
.govuk-accordion__section-button:hover {
|
@@ -11,6 +11,14 @@
|
|
11
11
|
.govuk-textarea {
|
12
12
|
margin-bottom: govuk-spacing(1);
|
13
13
|
}
|
14
|
+
|
15
|
+
// If the textarea enters the error state whilst the user is focused on it,
|
16
|
+
// show the error state. This presents feedback to the user that the value
|
17
|
+
// has become invalid without needing to see the counter.
|
18
|
+
.govuk-textarea--error:focus {
|
19
|
+
border-color: $govuk-error-colour;
|
20
|
+
box-shadow: inset 0 0 0 $govuk-border-width-form-element $govuk-error-colour;
|
21
|
+
}
|
14
22
|
}
|
15
23
|
|
16
24
|
.govuk-character-count__message {
|
@@ -19,10 +27,10 @@
|
|
19
27
|
margin-bottom: 0;
|
20
28
|
|
21
29
|
&::after {
|
22
|
-
// Zero-width space that will reserve vertical space when no hint is
|
23
|
-
// as:
|
24
|
-
// - setting a min-height is not possible without a magic number
|
25
|
-
//
|
30
|
+
// Zero-width space that will reserve vertical space when no hint is
|
31
|
+
// provided as:
|
32
|
+
// - setting a min-height is not possible without a magic number because
|
33
|
+
// the line-height is set by the `govuk-font` call above
|
26
34
|
// - using `:empty` is not possible as the hint macro outputs line breaks
|
27
35
|
content: "\200B";
|
28
36
|
}
|
@@ -159,7 +159,7 @@
|
|
159
159
|
// to be an even number in order to be centred under the 40px checkbox or radio.
|
160
160
|
$conditional-border-width: $govuk-border-width-narrow;
|
161
161
|
// Calculate the amount of padding needed to keep the border centered against the checkbox.
|
162
|
-
$conditional-border-padding: ($govuk-
|
162
|
+
$conditional-border-padding: ($govuk-touch-target-size / 2) - ($conditional-border-width / 2);
|
163
163
|
// Move the border centered with the checkbox
|
164
164
|
$conditional-margin-left: $conditional-border-padding;
|
165
165
|
// Move the contents of the conditional inline with the label
|
@@ -255,6 +255,11 @@
|
|
255
255
|
padding-left: ($govuk-touch-target-size - $input-offset) - ($margin-left + $conditional-border-width);
|
256
256
|
}
|
257
257
|
|
258
|
+
.govuk-checkboxes__divider {
|
259
|
+
width: $govuk-small-checkboxes-size;
|
260
|
+
margin-bottom: govuk-spacing(1);
|
261
|
+
}
|
262
|
+
|
258
263
|
// Hover state for small checkboxes.
|
259
264
|
//
|
260
265
|
// We use a hover state for small checkboxes because the touch target size
|
@@ -1,17 +1,23 @@
|
|
1
|
+
@import "../button/index";
|
2
|
+
|
1
3
|
@include govuk-exports("govuk/component/cookie-banner") {
|
2
4
|
// This needs to be kept in sync with the header component's styles
|
3
5
|
$border-bottom-width: govuk-spacing(2);
|
4
6
|
|
5
7
|
.govuk-cookie-banner {
|
6
8
|
padding-top: govuk-spacing(4);
|
7
|
-
// The component does not set bottom spacing.
|
8
|
-
//
|
9
|
+
// The component does not set bottom spacing. The bottom spacing should be
|
10
|
+
// created by the items inside the component.
|
9
11
|
|
10
|
-
// Visually separate the cookie banner from content underneath
|
11
|
-
//
|
12
|
+
// Visually separate the cookie banner from content underneath when user
|
13
|
+
// changes colours in their browser.
|
12
14
|
border-bottom: $border-bottom-width solid transparent;
|
13
15
|
|
14
|
-
|
16
|
+
@include _govuk-rebrand(
|
17
|
+
"background-color",
|
18
|
+
$govuk-template-background-colour,
|
19
|
+
$_govuk-rebrand-template-background-colour
|
20
|
+
);
|
15
21
|
}
|
16
22
|
|
17
23
|
// Support older browsers which don't hide elements with the `hidden` attribute
|
@@ -25,21 +31,24 @@
|
|
25
31
|
margin-bottom: -$border-bottom-width;
|
26
32
|
|
27
33
|
&[hidden] {
|
28
|
-
// Support older browsers which don't hide elements with the `hidden`
|
29
|
-
// when the visibility of cookie and replacement messages is
|
34
|
+
// Support older browsers which don't hide elements with the `hidden`
|
35
|
+
// attribute when the visibility of cookie and replacement messages is
|
36
|
+
// toggled.
|
30
37
|
display: none;
|
31
38
|
}
|
32
39
|
|
33
40
|
&:focus {
|
34
|
-
// Remove the native visible focus indicator when the element is
|
41
|
+
// Remove the native visible focus indicator when the element is
|
42
|
+
// programmatically focused.
|
35
43
|
//
|
36
|
-
// The focused cookie banner is the first element on the page and the last
|
37
|
-
// interacted with prior to it gaining focus.
|
38
|
-
//
|
39
|
-
// it a visible focus indicator could be more confusing than
|
40
|
-
// element is not normally keyboard operable.
|
44
|
+
// The focused cookie banner is the first element on the page and the last
|
45
|
+
// thing the user interacted with prior to it gaining focus. We therefore
|
46
|
+
// assume that moving focus to it is not going to surprise users, and that
|
47
|
+
// giving it a visible focus indicator could be more confusing than
|
48
|
+
// helpful, especially as the element is not normally keyboard operable.
|
41
49
|
//
|
42
|
-
// We have flagged this in the research section of the guidance as
|
50
|
+
// We have flagged this in the research section of the guidance as
|
51
|
+
// something to monitor.
|
43
52
|
//
|
44
53
|
// A related discussion: https://github.com/w3c/wcag/issues/1001
|
45
54
|
outline: none;
|
@@ -2,12 +2,12 @@
|
|
2
2
|
@import "../input/index";
|
3
3
|
@import "../hint/index";
|
4
4
|
@import "../label/index";
|
5
|
+
@import "../fieldset/index";
|
5
6
|
|
6
7
|
@include govuk-exports("govuk/component/date-input") {
|
7
8
|
.govuk-date-input {
|
8
9
|
@include govuk-clearfix;
|
9
|
-
|
10
|
-
font-size: 0;
|
10
|
+
font-size: 0; // removes whitespace caused by inline-block
|
11
11
|
}
|
12
12
|
|
13
13
|
.govuk-date-input__item {
|
@@ -8,9 +8,10 @@
|
|
8
8
|
}
|
9
9
|
|
10
10
|
.govuk-details__summary {
|
11
|
-
|
12
|
-
|
11
|
+
display: block;
|
12
|
+
}
|
13
13
|
|
14
|
+
.govuk-details[open] .govuk-details__summary {
|
14
15
|
margin-bottom: govuk-spacing(1);
|
15
16
|
}
|
16
17
|
|
@@ -72,6 +73,10 @@
|
|
72
73
|
// Absolutely position the marker against this element
|
73
74
|
position: relative;
|
74
75
|
|
76
|
+
// Make the focus outline shrink-wrap the text content of the summary
|
77
|
+
width: -webkit-fit-content;
|
78
|
+
width: fit-content;
|
79
|
+
|
75
80
|
// Allow for absolutely positioned marker and align with disclosed text
|
76
81
|
padding-left: govuk-spacing(4) + $govuk-border-width;
|
77
82
|
|
@@ -7,9 +7,8 @@
|
|
7
7
|
@include govuk-clearfix;
|
8
8
|
}
|
9
9
|
|
10
|
-
// Fix for Firefox < 53
|
11
|
-
//
|
12
|
-
// stylelint-disable selector-type-no-unknown -- Ignore unknown 'x:-moz-any-link'
|
10
|
+
// Fix for Firefox < 53 (https://bugzil.la/504622)
|
11
|
+
// stylelint-disable selector-type-no-unknown -- Ignore 'x:-moz-any-link'
|
13
12
|
@supports not (caret-color: auto) {
|
14
13
|
.govuk-fieldset,
|
15
14
|
x:-moz-any-link {
|
@@ -59,8 +58,7 @@
|
|
59
58
|
}
|
60
59
|
|
61
60
|
// When the legend contains an H1, we want the H1 to inherit all styles from
|
62
|
-
// the legend. Effectively
|
63
|
-
// not there.
|
61
|
+
// the legend. Effectively treat the heading as if it is not there.
|
64
62
|
.govuk-fieldset__heading {
|
65
63
|
margin: 0;
|
66
64
|
font-size: inherit;
|
@@ -3,7 +3,11 @@
|
|
3
3
|
@import "../label/index";
|
4
4
|
|
5
5
|
@include govuk-exports("govuk/component/file-upload") {
|
6
|
+
$file-upload-border-width: 2px;
|
6
7
|
$component-padding: govuk-spacing(1);
|
8
|
+
$empty-button-background-colour: govuk-colour("white");
|
9
|
+
$empty-pseudo-button-background-colour: govuk-colour("light-grey");
|
10
|
+
$empty-status-background-colour: govuk-tint(govuk-colour("blue"), 70%);
|
7
11
|
|
8
12
|
.govuk-file-upload {
|
9
13
|
@include govuk-font($size: 19);
|
@@ -12,11 +16,10 @@
|
|
12
16
|
margin-left: -$component-padding;
|
13
17
|
padding: $component-padding;
|
14
18
|
|
15
|
-
// The default file upload button in Safari does not
|
16
|
-
//
|
17
|
-
//
|
18
|
-
//
|
19
|
-
// https://bugs.webkit.org/show_bug.cgi?id=224746
|
19
|
+
// The default file upload button in Safari does not support setting a
|
20
|
+
// custom font-size. Set `-webkit-appearance` to `button` to drop out of the
|
21
|
+
// native appearance so the font-size is set to 19px
|
22
|
+
// https://webkit.org/b/224746
|
20
23
|
&::-webkit-file-upload-button {
|
21
24
|
-webkit-appearance: button;
|
22
25
|
color: inherit;
|
@@ -26,13 +29,13 @@
|
|
26
29
|
&:focus {
|
27
30
|
outline: $govuk-focus-width solid $govuk-focus-colour;
|
28
31
|
// Use `box-shadow` to add border instead of changing `border-width`
|
29
|
-
// (which changes element size) and since `outline` is already used for
|
30
|
-
// yellow focus state.
|
32
|
+
// (which changes element size) and since `outline` is already used for
|
33
|
+
// the yellow focus state.
|
31
34
|
box-shadow: inset 0 0 0 4px $govuk-input-border-colour;
|
32
35
|
}
|
33
36
|
|
34
|
-
// Set "focus-within" to fix https://
|
35
|
-
//
|
37
|
+
// Set "focus-within" to fix https://bugzil.la/1430196 so that component
|
38
|
+
// receives focus in Firefox.
|
36
39
|
// This can't be set together with `:focus` as all versions of IE fail
|
37
40
|
// to recognise `focus-within` and don't set any styles from the block
|
38
41
|
// when it's a selector.
|
@@ -47,6 +50,169 @@
|
|
47
50
|
cursor: not-allowed;
|
48
51
|
}
|
49
52
|
}
|
53
|
+
|
54
|
+
.govuk-drop-zone {
|
55
|
+
display: block;
|
56
|
+
position: relative;
|
57
|
+
z-index: 0;
|
58
|
+
background-color: $govuk-body-background-colour;
|
59
|
+
}
|
60
|
+
|
61
|
+
// required because disabling pointer events
|
62
|
+
// on the button means that the cursor style
|
63
|
+
// be applied on the button itself
|
64
|
+
.govuk-drop-zone--disabled {
|
65
|
+
cursor: not-allowed;
|
66
|
+
}
|
67
|
+
|
68
|
+
.govuk-file-upload-button__pseudo-button {
|
69
|
+
width: auto;
|
70
|
+
margin-right: govuk-spacing(2);
|
71
|
+
margin-bottom: $govuk-border-width-form-element + 1;
|
72
|
+
flex-shrink: 0;
|
73
|
+
}
|
74
|
+
|
75
|
+
.govuk-file-upload-button__instruction {
|
76
|
+
margin-top: govuk-spacing(2) - ($govuk-border-width-form-element + 1);
|
77
|
+
margin-bottom: 0;
|
78
|
+
text-align: left;
|
79
|
+
}
|
80
|
+
|
81
|
+
.govuk-file-upload-button__status {
|
82
|
+
display: block;
|
83
|
+
margin-bottom: govuk-spacing(2);
|
84
|
+
padding: govuk-spacing(3) govuk-spacing(2);
|
85
|
+
background-color: govuk-colour("white");
|
86
|
+
text-align: left;
|
87
|
+
}
|
88
|
+
|
89
|
+
// bugs documented with button using flex
|
90
|
+
// https://github.com/philipwalton/flexbugs#flexbug-9
|
91
|
+
// so we need a container here
|
92
|
+
.govuk-file-upload-button__pseudo-button-container {
|
93
|
+
display: flex;
|
94
|
+
align-items: baseline;
|
95
|
+
flex-wrap: wrap;
|
96
|
+
}
|
97
|
+
|
98
|
+
.govuk-file-upload-button {
|
99
|
+
width: 100%;
|
100
|
+
// align the padding to be same as notification banner and error summary accounting for the thicker borders
|
101
|
+
padding: (govuk-spacing(3) + $govuk-border-width - $file-upload-border-width);
|
102
|
+
border: $file-upload-border-width govuk-colour("mid-grey") solid;
|
103
|
+
background-color: govuk-colour("light-grey");
|
104
|
+
cursor: pointer;
|
105
|
+
|
106
|
+
@include govuk-media-query($from: tablet) {
|
107
|
+
padding: (govuk-spacing(4) + $govuk-border-width - $file-upload-border-width);
|
108
|
+
}
|
109
|
+
|
110
|
+
.govuk-file-upload-button__pseudo-button {
|
111
|
+
background-color: govuk-colour("white");
|
112
|
+
}
|
113
|
+
|
114
|
+
&:hover {
|
115
|
+
background-color: govuk-tint(govuk-colour("mid-grey"), 20%);
|
116
|
+
|
117
|
+
.govuk-file-upload-button__pseudo-button {
|
118
|
+
background-color: govuk-shade(govuk-colour("light-grey"), 10%);
|
119
|
+
}
|
120
|
+
|
121
|
+
.govuk-file-upload-button__status {
|
122
|
+
background-color: govuk-tint(govuk-colour("blue"), 80%);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
&:active,
|
127
|
+
&:focus {
|
128
|
+
border: $file-upload-border-width solid govuk-colour("black");
|
129
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
130
|
+
// Ensure outline appears outside of the element
|
131
|
+
outline-offset: 0;
|
132
|
+
background-color: govuk-tint(govuk-colour("mid-grey"), 20%);
|
133
|
+
// Double the border by adding its width again. Use `box-shadow` for this
|
134
|
+
// instead of changing `border-width` - this is for consistency with
|
135
|
+
// components such as textarea where we avoid changing `border-width` as
|
136
|
+
// it will change the element size. Also, `outline` cannot be utilised
|
137
|
+
// here as it is already used for the yellow focus state.
|
138
|
+
box-shadow: inset 0 0 0 $govuk-border-width-form-element;
|
139
|
+
|
140
|
+
.govuk-file-upload-button__pseudo-button {
|
141
|
+
background-color: $govuk-focus-colour;
|
142
|
+
box-shadow: 0 2px 0 govuk-colour("black");
|
143
|
+
}
|
144
|
+
|
145
|
+
&:hover .govuk-file-upload-button__pseudo-button {
|
146
|
+
border-color: $govuk-focus-colour;
|
147
|
+
outline: 3px solid transparent;
|
148
|
+
background-color: govuk-colour("light-grey");
|
149
|
+
box-shadow: inset 0 0 0 1px $govuk-focus-colour;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
.govuk-file-upload-button--empty {
|
155
|
+
border-style: dashed;
|
156
|
+
background-color: $empty-button-background-colour;
|
157
|
+
|
158
|
+
.govuk-file-upload-button__pseudo-button {
|
159
|
+
background-color: $empty-pseudo-button-background-colour;
|
160
|
+
}
|
161
|
+
|
162
|
+
.govuk-file-upload-button__status {
|
163
|
+
color: govuk-shade(govuk-colour("blue"), 60%);
|
164
|
+
background-color: $empty-status-background-colour;
|
165
|
+
}
|
166
|
+
|
167
|
+
&:hover,
|
168
|
+
&:focus,
|
169
|
+
&:active {
|
170
|
+
background-color: govuk-colour("light-grey");
|
171
|
+
|
172
|
+
.govuk-file-upload-button__status {
|
173
|
+
background-color: govuk-tint(govuk-colour("blue"), 80%);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
.govuk-file-upload-button--dragging {
|
179
|
+
border-style: solid;
|
180
|
+
border-color: govuk-colour("black");
|
181
|
+
|
182
|
+
// extra specificity to apply when
|
183
|
+
// empty
|
184
|
+
&.govuk-file-upload-button {
|
185
|
+
background-color: govuk-tint(govuk-colour("mid-grey"), 20%);
|
186
|
+
}
|
187
|
+
|
188
|
+
&.govuk-file-upload-button--empty {
|
189
|
+
background-color: govuk-colour("light-grey");
|
190
|
+
}
|
191
|
+
|
192
|
+
&.govuk-file-upload-button--empty:not(:disabled) .govuk-file-upload-button__status,
|
193
|
+
&.govuk-file-upload-button--empty .govuk-file-upload-button__pseudo-button {
|
194
|
+
background-color: govuk-colour("white");
|
195
|
+
}
|
196
|
+
|
197
|
+
.govuk-file-upload-button__pseudo-button {
|
198
|
+
background-color: govuk-shade(govuk-colour("light-grey"), 10%);
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
.govuk-file-upload-button:disabled {
|
203
|
+
pointer-events: none;
|
204
|
+
opacity: 0.5;
|
205
|
+
|
206
|
+
background-color: $empty-button-background-colour;
|
207
|
+
|
208
|
+
.govuk-file-upload-button__pseudo-button {
|
209
|
+
background-color: $empty-pseudo-button-background-colour;
|
210
|
+
}
|
211
|
+
|
212
|
+
.govuk-file-upload-button__status {
|
213
|
+
background-color: $empty-status-background-colour;
|
214
|
+
}
|
215
|
+
}
|
50
216
|
}
|
51
217
|
|
52
218
|
/*# sourceMappingURL=_index.scss.map */
|