defra_ruby_template 5.4.1 → 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 +39 -18
- data/lib/defra_ruby_template/version.rb +1 -1
- 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
@@ -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;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/fieldset/_index.scss"],"names":[],"mappings":"AAAA;EACE;IACE,YAAY;IACZ,SAAS;IACT,UAAU;IACV,SAAS;IACT,uBAAuB;EACzB;;EAEA,
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/fieldset/_index.scss"],"names":[],"mappings":"AAAA;EACE;IACE,YAAY;IACZ,SAAS;IACT,UAAU;IACV,SAAS;IACT,uBAAuB;EACzB;;EAEA,iDAAiD;EACjD,wEAAwE;EACxE;IACE;;MAEE,mBAAmB;IACrB;EACF;EACA,2CAA2C;;EAE3C;IACE,8BAA8B;IAC9B,0BAA0B;;IAE1B,yCAAyC;IACzC,wBAAwB;IACxB,WAAW;IACX,sBAAsB,EAAE,GAAG;IAC3B,cAAc,EAAE,GAAG;IACnB,eAAe,EAAE,GAAG;IACpB,+BAA+B;IAC/B,UAAU;;IAEV,mBAAmB,EAAE,GAAG;EAC1B;;EAEA,sEAAsE;EACtE;;;IAGE,qCAAqC;IACrC,+BAA+B;EACjC;;EAEA;IACE,mCAAmC;EACrC;;EAEA;IACE,mCAAmC;EACrC;;EAEA;IACE,mCAAmC;EACrC;;EAEA;IACE,qCAAqC;EACvC;;EAEA,2EAA2E;EAC3E,kEAAkE;EAClE;IACE,SAAS;IACT,kBAAkB;IAClB,oBAAoB;EACtB;AACF","file":"_index.scss","sourcesContent":["@include govuk-exports(\"govuk/component/fieldset\") {\n .govuk-fieldset {\n min-width: 0;\n margin: 0;\n padding: 0;\n border: 0;\n @include govuk-clearfix;\n }\n\n // Fix for Firefox < 53 (https://bugzil.la/504622)\n // stylelint-disable selector-type-no-unknown -- Ignore 'x:-moz-any-link'\n @supports not (caret-color: auto) {\n .govuk-fieldset,\n x:-moz-any-link {\n display: table-cell;\n }\n }\n // stylelint-enable selector-type-no-unknown\n\n .govuk-fieldset__legend {\n @include govuk-font($size: 19);\n @include govuk-text-colour;\n\n // Fix legend text wrapping in Edge and IE\n // 1. IE9-11 & Edge 12-13\n // 2. IE8-11\n box-sizing: border-box; // 1\n display: table; // 2\n max-width: 100%; // 1\n margin-bottom: govuk-spacing(2);\n padding: 0;\n\n white-space: normal; // 1\n }\n\n // Modifiers that make legends look more like their equivalent headings\n .govuk-fieldset__legend--xl,\n .govuk-fieldset__legend--l,\n .govuk-fieldset__legend--m {\n @include govuk-typography-weight-bold;\n margin-bottom: govuk-spacing(3);\n }\n\n .govuk-fieldset__legend--xl {\n @include govuk-font-size($size: 48);\n }\n\n .govuk-fieldset__legend--l {\n @include govuk-font-size($size: 36);\n }\n\n .govuk-fieldset__legend--m {\n @include govuk-font-size($size: 24);\n }\n\n .govuk-fieldset__legend--s {\n @include govuk-typography-weight-bold;\n }\n\n // When the legend contains an H1, we want the H1 to inherit all styles from\n // the legend. Effectively treat the heading as if it is not there.\n .govuk-fieldset__heading {\n margin: 0;\n font-size: inherit;\n font-weight: inherit;\n }\n}\n"]}
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"hidden": false,
|
12
12
|
"description": "",
|
13
13
|
"previewLayoutModifiers": [],
|
14
|
+
"screenshot": false,
|
14
15
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n What is your address?\n </legend>\n</fieldset>"
|
15
16
|
},
|
16
17
|
{
|
@@ -24,6 +25,7 @@
|
|
24
25
|
"hidden": false,
|
25
26
|
"description": "",
|
26
27
|
"previewLayoutModifiers": [],
|
28
|
+
"screenshot": false,
|
27
29
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--xl\">\n What is your address?\n </legend>\n</fieldset>"
|
28
30
|
},
|
29
31
|
{
|
@@ -37,6 +39,7 @@
|
|
37
39
|
"hidden": false,
|
38
40
|
"description": "",
|
39
41
|
"previewLayoutModifiers": [],
|
42
|
+
"screenshot": false,
|
40
43
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n What is your address?\n </legend>\n</fieldset>"
|
41
44
|
},
|
42
45
|
{
|
@@ -50,6 +53,7 @@
|
|
50
53
|
"hidden": false,
|
51
54
|
"description": "",
|
52
55
|
"previewLayoutModifiers": [],
|
56
|
+
"screenshot": false,
|
53
57
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n What is your address?\n </legend>\n</fieldset>"
|
54
58
|
},
|
55
59
|
{
|
@@ -63,6 +67,7 @@
|
|
63
67
|
"hidden": false,
|
64
68
|
"description": "",
|
65
69
|
"previewLayoutModifiers": [],
|
70
|
+
"screenshot": false,
|
66
71
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s\">\n What is your address?\n </legend>\n</fieldset>"
|
67
72
|
},
|
68
73
|
{
|
@@ -77,6 +82,7 @@
|
|
77
82
|
"hidden": false,
|
78
83
|
"description": "",
|
79
84
|
"previewLayoutModifiers": [],
|
85
|
+
"screenshot": false,
|
80
86
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--xl\">\n <h1 class=\"govuk-fieldset__heading\">\n What is your address?\n </h1>\n </legend>\n</fieldset>"
|
81
87
|
},
|
82
88
|
{
|
@@ -91,6 +97,7 @@
|
|
91
97
|
"hidden": false,
|
92
98
|
"description": "",
|
93
99
|
"previewLayoutModifiers": [],
|
100
|
+
"screenshot": false,
|
94
101
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n What is your address?\n </h1>\n </legend>\n</fieldset>"
|
95
102
|
},
|
96
103
|
{
|
@@ -105,6 +112,7 @@
|
|
105
112
|
"hidden": false,
|
106
113
|
"description": "",
|
107
114
|
"previewLayoutModifiers": [],
|
115
|
+
"screenshot": false,
|
108
116
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 class=\"govuk-fieldset__heading\">\n What is your address?\n </h1>\n </legend>\n</fieldset>"
|
109
117
|
},
|
110
118
|
{
|
@@ -119,6 +127,7 @@
|
|
119
127
|
"hidden": false,
|
120
128
|
"description": "",
|
121
129
|
"previewLayoutModifiers": [],
|
130
|
+
"screenshot": false,
|
122
131
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s\">\n <h1 class=\"govuk-fieldset__heading\">\n What is your address?\n </h1>\n </legend>\n</fieldset>"
|
123
132
|
},
|
124
133
|
{
|
@@ -132,6 +141,7 @@
|
|
132
141
|
"hidden": false,
|
133
142
|
"description": "",
|
134
143
|
"previewLayoutModifiers": [],
|
144
|
+
"screenshot": false,
|
135
145
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n <h1 class=\"govuk-fieldset__heading\">\n What is your address?\n </h1>\n </legend>\n</fieldset>"
|
136
146
|
},
|
137
147
|
{
|
@@ -145,6 +155,7 @@
|
|
145
155
|
"hidden": true,
|
146
156
|
"description": "",
|
147
157
|
"previewLayoutModifiers": [],
|
158
|
+
"screenshot": false,
|
148
159
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n What is your address?\n </legend>\n <div class=\"my-content\">\n <p>This is some content to put inside the fieldset</p>\n</div>\n\n</fieldset>"
|
149
160
|
},
|
150
161
|
{
|
@@ -158,6 +169,7 @@
|
|
158
169
|
"hidden": true,
|
159
170
|
"description": "",
|
160
171
|
"previewLayoutModifiers": [],
|
172
|
+
"screenshot": false,
|
161
173
|
"html": "<fieldset class=\"govuk-fieldset\" aria-describedby=\"test-target-element\">\n <legend class=\"govuk-fieldset__legend\">\n Which option?\n </legend>\n</fieldset>"
|
162
174
|
},
|
163
175
|
{
|
@@ -170,6 +182,7 @@
|
|
170
182
|
"hidden": true,
|
171
183
|
"description": "",
|
172
184
|
"previewLayoutModifiers": [],
|
185
|
+
"screenshot": false,
|
173
186
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n What is <b>your</b> address?\n </legend>\n</fieldset>"
|
174
187
|
},
|
175
188
|
{
|
@@ -182,6 +195,7 @@
|
|
182
195
|
"hidden": true,
|
183
196
|
"description": "",
|
184
197
|
"previewLayoutModifiers": [],
|
198
|
+
"screenshot": false,
|
185
199
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n What is <b>your</b> address?\n </legend>\n</fieldset>"
|
186
200
|
},
|
187
201
|
{
|
@@ -195,6 +209,7 @@
|
|
195
209
|
"hidden": true,
|
196
210
|
"description": "",
|
197
211
|
"previewLayoutModifiers": [],
|
212
|
+
"screenshot": false,
|
198
213
|
"html": "<fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend my-custom-class\">\n What is your address?\n </legend>\n</fieldset>"
|
199
214
|
},
|
200
215
|
{
|
@@ -208,6 +223,7 @@
|
|
208
223
|
"hidden": true,
|
209
224
|
"description": "",
|
210
225
|
"previewLayoutModifiers": [],
|
226
|
+
"screenshot": false,
|
211
227
|
"html": "<fieldset class=\"govuk-fieldset app-fieldset--custom-modifier\">\n <legend class=\"govuk-fieldset__legend\">\n Which option?\n </legend>\n</fieldset>"
|
212
228
|
},
|
213
229
|
{
|
@@ -221,6 +237,7 @@
|
|
221
237
|
"hidden": true,
|
222
238
|
"description": "",
|
223
239
|
"previewLayoutModifiers": [],
|
240
|
+
"screenshot": false,
|
224
241
|
"html": "<fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend class=\"govuk-fieldset__legend\">\n Which option?\n </legend>\n</fieldset>"
|
225
242
|
},
|
226
243
|
{
|
@@ -236,6 +253,7 @@
|
|
236
253
|
"hidden": true,
|
237
254
|
"description": "",
|
238
255
|
"previewLayoutModifiers": [],
|
256
|
+
"screenshot": false,
|
239
257
|
"html": "<fieldset class=\"govuk-fieldset\" data-attribute=\"value\">\n <legend class=\"govuk-fieldset__legend\">\n Which option?\n </legend>\n</fieldset>"
|
240
258
|
}
|
241
259
|
]
|
@@ -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 */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/file-upload/_index.scss"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uBAAuB;AACvB,wBAAwB;;AAExB;EACE,oCAAoC;;
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/file-upload/_index.scss"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uBAAuB;AACvB,wBAAwB;;AAExB;EACE,8BAA8B;EAC9B,oCAAoC;EACpC,sDAAsD;EACtD,kEAAkE;EAClE,sEAAsE;;EAEtE;IACE,8BAA8B;IAC9B,0BAA0B;IAC1B,eAAe;IACf,gCAAgC;IAChC,2BAA2B;;IAE3B,qEAAqE;IACrE,2EAA2E;IAC3E,mDAAmD;IACnD,6BAA6B;IAC7B;MACE,0BAA0B;MAC1B,cAAc;MACd,aAAa;IACf;;IAEA;MACE,qDAAqD;MACrD,mEAAmE;MACnE,sEAAsE;MACtE,yBAAyB;MACzB,sDAAsD;IACxD;;IAEA,uEAAuE;IACvE,4BAA4B;IAC5B,qEAAqE;IACrE,qEAAqE;IACrE,uBAAuB;IACvB;MACE,qDAAqD;;MAErD,sDAAsD;IACxD;;IAEA;MACE,YAAY;MACZ,mBAAmB;IACrB;EACF;;EAEA;IACE,cAAc;IACd,kBAAkB;IAClB,UAAU;IACV,+CAA+C;EACjD;;EAEA,2CAA2C;EAC3C,2CAA2C;EAC3C,iCAAiC;EACjC;IACE,mBAAmB;EACrB;;EAEA;IACE,WAAW;IACX,8BAA8B;IAC9B,mDAAmD;IACnD,cAAc;EAChB;;EAEA;IACE,qEAAqE;IACrE,gBAAgB;IAChB,gBAAgB;EAClB;;EAEA;IACE,cAAc;IACd,+BAA+B;IAC/B,0CAA0C;IAC1C,uCAAuC;IACvC,gBAAgB;EAClB;;EAEA,wCAAwC;EACxC,oDAAoD;EACpD,6BAA6B;EAC7B;IACE,aAAa;IACb,qBAAqB;IACrB,eAAe;EACjB;;EAEA;IACE,WAAW;IACX,0GAA0G;IAC1G,6EAA6E;IAC7E,gEAAgE;IAChE,4CAA4C;IAC5C,eAAe;;IAEf;MACE,6EAA6E;IAC/E;;IAEA;MACE,uCAAuC;IACzC;;IAEA;MACE,2DAA2D;;MAE3D;QACE,8DAA8D;MAChE;;MAEA;QACE,uDAAuD;MACzD;IACF;;IAEA;;MAEE,6DAA6D;MAC7D,qDAAqD;MACrD,+CAA+C;MAC/C,iBAAiB;MACjB,2DAA2D;MAC3D,wEAAwE;MACxE,mEAAmE;MACnE,uEAAuE;MACvE,qEAAqE;MACrE,wDAAwD;MACxD,wDAAwD;;MAExD;QACE,qCAAqC;QACrC,yCAAyC;MAC3C;;MAEA;QACE,iCAAiC;QACjC,8BAA8B;QAC9B,4CAA4C;QAC5C,+CAA+C;MACjD;IACF;EACF;;EAEA;IACE,oBAAoB;IACpB,iDAAiD;;IAEjD;MACE,wDAAwD;IAC1D;;IAEA;MACE,6CAA6C;MAC7C,iDAAiD;IACnD;;IAEA;;;MAGE,4CAA4C;;MAE5C;QACE,uDAAuD;MACzD;IACF;EACF;;EAEA;IACE,mBAAmB;IACnB,mCAAmC;;IAEnC,iCAAiC;IACjC,OAAO;IACP;MACE,2DAA2D;IAC7D;;IAEA;MACE,4CAA4C;IAC9C;;IAEA;;MAEE,uCAAuC;IACzC;;IAEA;MACE,8DAA8D;IAChE;EACF;;EAEA;IACE,oBAAoB;IACpB,YAAY;;IAEZ,iDAAiD;;IAEjD;MACE,wDAAwD;IAC1D;;IAEA;MACE,iDAAiD;IACnD;EACF;AACF","file":"_index.scss","sourcesContent":["@import \"../error-message/index\";\n@import \"../hint/index\";\n@import \"../label/index\";\n\n@include govuk-exports(\"govuk/component/file-upload\") {\n $file-upload-border-width: 2px;\n $component-padding: govuk-spacing(1);\n $empty-button-background-colour: govuk-colour(\"white\");\n $empty-pseudo-button-background-colour: govuk-colour(\"light-grey\");\n $empty-status-background-colour: govuk-tint(govuk-colour(\"blue\"), 70%);\n\n .govuk-file-upload {\n @include govuk-font($size: 19);\n @include govuk-text-colour;\n max-width: 100%;\n margin-left: -$component-padding;\n padding: $component-padding;\n\n // The default file upload button in Safari does not support setting a\n // custom font-size. Set `-webkit-appearance` to `button` to drop out of the\n // native appearance so the font-size is set to 19px\n // https://webkit.org/b/224746\n &::-webkit-file-upload-button {\n -webkit-appearance: button;\n color: inherit;\n font: inherit;\n }\n\n &:focus {\n outline: $govuk-focus-width solid $govuk-focus-colour;\n // Use `box-shadow` to add border instead of changing `border-width`\n // (which changes element size) and since `outline` is already used for\n // the yellow focus state.\n box-shadow: inset 0 0 0 4px $govuk-input-border-colour;\n }\n\n // Set \"focus-within\" to fix https://bugzil.la/1430196 so that component\n // receives focus in Firefox.\n // This can't be set together with `:focus` as all versions of IE fail\n // to recognise `focus-within` and don't set any styles from the block\n // when it's a selector.\n &:focus-within {\n outline: $govuk-focus-width solid $govuk-focus-colour;\n\n box-shadow: inset 0 0 0 4px $govuk-input-border-colour;\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n }\n\n .govuk-drop-zone {\n display: block;\n position: relative;\n z-index: 0;\n background-color: $govuk-body-background-colour;\n }\n\n // required because disabling pointer events\n // on the button means that the cursor style\n // be applied on the button itself\n .govuk-drop-zone--disabled {\n cursor: not-allowed;\n }\n\n .govuk-file-upload-button__pseudo-button {\n width: auto;\n margin-right: govuk-spacing(2);\n margin-bottom: $govuk-border-width-form-element + 1;\n flex-shrink: 0;\n }\n\n .govuk-file-upload-button__instruction {\n margin-top: govuk-spacing(2) - ($govuk-border-width-form-element + 1);\n margin-bottom: 0;\n text-align: left;\n }\n\n .govuk-file-upload-button__status {\n display: block;\n margin-bottom: govuk-spacing(2);\n padding: govuk-spacing(3) govuk-spacing(2);\n background-color: govuk-colour(\"white\");\n text-align: left;\n }\n\n // bugs documented with button using flex\n // https://github.com/philipwalton/flexbugs#flexbug-9\n // so we need a container here\n .govuk-file-upload-button__pseudo-button-container {\n display: flex;\n align-items: baseline;\n flex-wrap: wrap;\n }\n\n .govuk-file-upload-button {\n width: 100%;\n // align the padding to be same as notification banner and error summary accounting for the thicker borders\n padding: (govuk-spacing(3) + $govuk-border-width - $file-upload-border-width);\n border: $file-upload-border-width govuk-colour(\"mid-grey\") solid;\n background-color: govuk-colour(\"light-grey\");\n cursor: pointer;\n\n @include govuk-media-query($from: tablet) {\n padding: (govuk-spacing(4) + $govuk-border-width - $file-upload-border-width);\n }\n\n .govuk-file-upload-button__pseudo-button {\n background-color: govuk-colour(\"white\");\n }\n\n &:hover {\n background-color: govuk-tint(govuk-colour(\"mid-grey\"), 20%);\n\n .govuk-file-upload-button__pseudo-button {\n background-color: govuk-shade(govuk-colour(\"light-grey\"), 10%);\n }\n\n .govuk-file-upload-button__status {\n background-color: govuk-tint(govuk-colour(\"blue\"), 80%);\n }\n }\n\n &:active,\n &:focus {\n border: $file-upload-border-width solid govuk-colour(\"black\");\n outline: $govuk-focus-width solid $govuk-focus-colour;\n // Ensure outline appears outside of the element\n outline-offset: 0;\n background-color: govuk-tint(govuk-colour(\"mid-grey\"), 20%);\n // Double the border by adding its width again. Use `box-shadow` for this\n // instead of changing `border-width` - this is for consistency with\n // components such as textarea where we avoid changing `border-width` as\n // it will change the element size. Also, `outline` cannot be utilised\n // here as it is already used for the yellow focus state.\n box-shadow: inset 0 0 0 $govuk-border-width-form-element;\n\n .govuk-file-upload-button__pseudo-button {\n background-color: $govuk-focus-colour;\n box-shadow: 0 2px 0 govuk-colour(\"black\");\n }\n\n &:hover .govuk-file-upload-button__pseudo-button {\n border-color: $govuk-focus-colour;\n outline: 3px solid transparent;\n background-color: govuk-colour(\"light-grey\");\n box-shadow: inset 0 0 0 1px $govuk-focus-colour;\n }\n }\n }\n\n .govuk-file-upload-button--empty {\n border-style: dashed;\n background-color: $empty-button-background-colour;\n\n .govuk-file-upload-button__pseudo-button {\n background-color: $empty-pseudo-button-background-colour;\n }\n\n .govuk-file-upload-button__status {\n color: govuk-shade(govuk-colour(\"blue\"), 60%);\n background-color: $empty-status-background-colour;\n }\n\n &:hover,\n &:focus,\n &:active {\n background-color: govuk-colour(\"light-grey\");\n\n .govuk-file-upload-button__status {\n background-color: govuk-tint(govuk-colour(\"blue\"), 80%);\n }\n }\n }\n\n .govuk-file-upload-button--dragging {\n border-style: solid;\n border-color: govuk-colour(\"black\");\n\n // extra specificity to apply when\n // empty\n &.govuk-file-upload-button {\n background-color: govuk-tint(govuk-colour(\"mid-grey\"), 20%);\n }\n\n &.govuk-file-upload-button--empty {\n background-color: govuk-colour(\"light-grey\");\n }\n\n &.govuk-file-upload-button--empty:not(:disabled) .govuk-file-upload-button__status,\n &.govuk-file-upload-button--empty .govuk-file-upload-button__pseudo-button {\n background-color: govuk-colour(\"white\");\n }\n\n .govuk-file-upload-button__pseudo-button {\n background-color: govuk-shade(govuk-colour(\"light-grey\"), 10%);\n }\n }\n\n .govuk-file-upload-button:disabled {\n pointer-events: none;\n opacity: 0.5;\n\n background-color: $empty-button-background-colour;\n\n .govuk-file-upload-button__pseudo-button {\n background-color: $empty-pseudo-button-background-colour;\n }\n\n .govuk-file-upload-button__status {\n background-color: $empty-status-background-colour;\n }\n }\n}\n"]}
|