govuk_publishing_components 17.21.0 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/all_components.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/character-count.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/error-summary.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/radio.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/lib/header-navigation.js +1 -1
- data/app/assets/stylesheets/component_guide/application.scss +5 -7
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +5 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +3 -15
- data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +28 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +1 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +18 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-admin.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +8 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +6 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +10 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +17 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +8 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +5 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +4 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +1 -1
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +14 -12
- data/app/views/govuk_publishing_components/components/_accordion.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_button.html.erb +16 -2
- data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_contents_list.html.erb +5 -1
- data/app/views/govuk_publishing_components/components/_details.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_error_summary.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_tabs.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_textarea.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_title.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/button.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/contents_list.yml +12 -0
- data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/fieldset.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/label.yml +4 -1
- data/app/views/govuk_publishing_components/components/docs/table.yml +1 -0
- data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +2 -2
- data/config/initializers/assets.rb +3 -3
- data/config/locales/en.yml +0 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/README.md +4 -9
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +4 -5
- data/node_modules/govuk-frontend/{all-ie8.scss → govuk/all-ie8.scss} +0 -0
- data/node_modules/govuk-frontend/{all.js → govuk/all.js} +116 -63
- data/node_modules/govuk-frontend/{all.scss → govuk/all.scss} +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/bold-affa96571d-v2.woff +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/bold-b542beb274-v2.woff2 +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/light-94a07e06a1-v2.woff2 +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/light-f591b13f7d-v2.woff +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-152x152.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-167x167.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-180x180.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-crest-2x.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-crest.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-logotype-crown.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-mask-icon.svg +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/{common.js → govuk/common.js} +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/_accordion.scss +48 -28
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/accordion.js +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/macro-options.json +8 -2
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/template.njk +1 -3
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/_back-link.scss +17 -9
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/_breadcrumbs.scss +10 -11
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/button/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/button/_button.scss +76 -46
- data/node_modules/govuk-frontend/{components → govuk/components}/button/button.js +168 -17
- data/node_modules/govuk-frontend/{components → govuk/components}/button/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/button/macro.njk +0 -0
- data/node_modules/govuk-frontend/govuk/components/button/template.njk +60 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/_character-count.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/character-count.js +5 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/template.njk +2 -2
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/_checkboxes.scss +4 -6
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/checkboxes.js +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/template.njk +18 -5
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/_date-input.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/details/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/_details.scss +12 -13
- data/node_modules/govuk-frontend/{components → govuk/components}/details/details.js +3 -4
- data/node_modules/govuk-frontend/{components → govuk/components}/details/implementation.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/_error-message.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/_error-summary.scss +4 -17
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/error-summary.js +0 -10
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/_fieldset.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/macro-options.json +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +81 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/_footer.scss +47 -16
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/macro-options.json +5 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/header/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/header/_header.scss +34 -21
- data/node_modules/govuk-frontend/{components → govuk/components}/header/header.js +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/header/macro-options.json +2 -2
- data/node_modules/govuk-frontend/{components → govuk/components}/header/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/header/template.njk +6 -9
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/_hint.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/_input.scss +24 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/input/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/_inset-text.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/_label.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/_panel.scss +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/_phase-banner.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/template.njk +5 -7
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/_radios.scss +7 -9
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/radios.js +24 -11
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/template.njk +15 -5
- data/node_modules/govuk-frontend/{components → govuk/components}/select/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/select/_select.scss +23 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/select/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/select/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/select/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/_skip-link.scss +6 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/_summary-list.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/macro-options.json +7 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/table/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/_table.scss +1 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/template.njk +14 -14
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +142 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/tabs.js +59 -5
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/template.njk +4 -6
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +44 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +55 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/_warning-text.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/template.njk +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_global-styles.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_links.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_lists.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_section-break.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_template.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_typography.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_all.scss +1 -1
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_clearfix.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_colour.scss +23 -1
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_device-pixels.scss +0 -0
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +28 -0
- data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +41 -0
- data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +60 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_links.scss +15 -1
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_media-queries.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_shape-arrow.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_spacing.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_typography.scss +23 -5
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_visually-hidden.scss +4 -2
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_form-group.scss +0 -0
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_grid.scss +2 -2
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_main-wrapper.scss +15 -1
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_width-container.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_display.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_spacing.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_typography.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_width.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_assets.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_colours-applied.scss +9 -8
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_colours-organisations.scss +1 -1
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +101 -0
- data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss +75 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_global-styles.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_ie8.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_measurements.scss +2 -2
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_media-queries.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_spacing.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-font-families.scss +11 -1
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-font.scss +27 -7
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-responsive.scss +9 -10
- data/node_modules/govuk-frontend/{template.njk → govuk/template.njk} +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_compatibility.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_exports.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_font-url.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_ie8.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_iff.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_image-url.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_px-to-em.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_px-to-rem.scss +0 -0
- data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_clearfix.scss +0 -0
- data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_visually-hidden.scss +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/_sass-mq.scss +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/DOMTokenList.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Document.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/classList.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/closest.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/matches.js +0 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +259 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +257 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Event.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Function/prototype/bind.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Object/defineProperty.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Window.js +0 -0
- data/node_modules/govuk-frontend/package.json +21 -21
- data/node_modules/react-is/README.md +2 -12
- data/node_modules/react-is/build-info.json +5 -5
- data/node_modules/react-is/cjs/react-is.development.js +7 -2
- data/node_modules/react-is/cjs/react-is.production.min.js +6 -6
- data/node_modules/react-is/package.json +13 -13
- data/node_modules/react-is/umd/react-is.development.js +7 -2
- data/node_modules/react-is/umd/react-is.production.min.js +5 -5
- data/node_modules/type/CHANGELOG.md +62 -50
- data/node_modules/type/LICENSE +15 -0
- data/node_modules/type/README.md +19 -19
- data/node_modules/type/error/is.js +28 -7
- data/node_modules/type/package.json +36 -22
- data/node_modules/type/test/error/is.js +13 -5
- metadata +247 -344
- data/app/assets/javascripts/govuk_publishing_components/components/accessible-autocomplete.js +0 -79
- data/app/assets/stylesheets/govuk_publishing_components/components/_accessible-autocomplete.scss +0 -41
- data/app/views/govuk_publishing_components/components/_accessible_autocomplete.html.erb +0 -35
- data/app/views/govuk_publishing_components/components/docs/accessible_autocomplete.yml +0 -49
- data/node_modules/accessible-autocomplete/CHANGELOG.md +0 -269
- data/node_modules/accessible-autocomplete/CONTRIBUTING.md +0 -150
- data/node_modules/accessible-autocomplete/LICENSE.txt +0 -20
- data/node_modules/accessible-autocomplete/Procfile +0 -1
- data/node_modules/accessible-autocomplete/README.md +0 -416
- data/node_modules/accessible-autocomplete/accessibility-criteria.md +0 -42
- data/node_modules/accessible-autocomplete/app.json +0 -15
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.css +0 -1
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js +0 -2
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js.map +0 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js +0 -2
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map +0 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js +0 -2
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map +0 -1
- data/node_modules/accessible-autocomplete/examples/form.html +0 -671
- data/node_modules/accessible-autocomplete/examples/index.html +0 -665
- data/node_modules/accessible-autocomplete/examples/multiselect.html +0 -134
- data/node_modules/accessible-autocomplete/examples/preact/index.html +0 -346
- data/node_modules/accessible-autocomplete/examples/react/index.html +0 -347
- data/node_modules/accessible-autocomplete/package-lock.json +0 -14491
- data/node_modules/accessible-autocomplete/package.json +0 -173
- data/node_modules/accessible-autocomplete/preact.js +0 -1
- data/node_modules/accessible-autocomplete/react.js +0 -1
- data/node_modules/accessible-autocomplete/scripts/check-staged.js +0 -14
- data/node_modules/accessible-autocomplete/src/autocomplete.css +0 -192
- data/node_modules/accessible-autocomplete/src/autocomplete.js +0 -618
- data/node_modules/accessible-autocomplete/src/dropdown-arrow-down.js +0 -11
- data/node_modules/accessible-autocomplete/src/status.js +0 -80
- data/node_modules/accessible-autocomplete/src/wrapper.js +0 -76
- data/node_modules/accessible-autocomplete/test/functional/dropdown-arrow-down.js +0 -44
- data/node_modules/accessible-autocomplete/test/functional/index.js +0 -485
- data/node_modules/accessible-autocomplete/test/functional/wrapper.js +0 -318
- data/node_modules/accessible-autocomplete/test/integration/index.js +0 -188
- data/node_modules/accessible-autocomplete/test/karma.config.js +0 -42
- data/node_modules/accessible-autocomplete/test/wdio.config.js +0 -80
- data/node_modules/accessible-autocomplete/webpack.config.babel.js +0 -193
- data/node_modules/govuk-frontend/assets/fonts/bold-a2452cb66f-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-f38c792ac2-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-fb2676462a-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-357fdfbcc3-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-784c21afb8-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-b89238d840-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-2c037cf7e1-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-458f8ea81c-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-f38ad40456-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-498ea8ffe2-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-62cc6f0a28-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-851b10ccdd-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-arrow-left.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-important.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-pointer-2x.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-pointer.png +0 -0
- data/node_modules/govuk-frontend/components/button/template.njk +0 -35
- data/node_modules/govuk-frontend/components/file-upload/_file-upload.scss +0 -19
- data/node_modules/govuk-frontend/components/tabs/_tabs.scss +0 -130
- data/node_modules/govuk-frontend/components/tag/_tag.scss +0 -33
- data/node_modules/govuk-frontend/components/textarea/_textarea.scss +0 -32
- data/node_modules/govuk-frontend/helpers/_focusable.scss +0 -34
- data/node_modules/govuk-frontend/helpers/_font-faces.scss +0 -67
- data/node_modules/govuk-frontend/helpers/_grid.scss +0 -107
- data/node_modules/govuk-frontend/settings/_colours-palette.scss +0 -37
- data/node_modules/govuk-frontend/settings/_compatibility.scss +0 -51
- data/node_modules/preact/LICENSE +0 -21
- data/node_modules/preact/README.md +0 -592
- data/node_modules/preact/debug.js +0 -740
- data/node_modules/preact/debug.js.map +0 -1
- data/node_modules/preact/debug/dist/debug.js +0 -2
- data/node_modules/preact/debug/dist/debug.js.map +0 -1
- data/node_modules/preact/debug/dist/debug.mjs +0 -681
- data/node_modules/preact/debug/dist/debug.mjs.map +0 -1
- data/node_modules/preact/debug/dist/debug.module.js +0 -2
- data/node_modules/preact/debug/dist/debug.module.js.map +0 -1
- data/node_modules/preact/debug/dist/debug.umd.js +0 -2
- data/node_modules/preact/debug/dist/debug.umd.js.map +0 -1
- data/node_modules/preact/debug/index.js +0 -122
- data/node_modules/preact/devtools.js +0 -403
- data/node_modules/preact/devtools.js.map +0 -1
- data/node_modules/preact/devtools/devtools.js +0 -395
- data/node_modules/preact/devtools/index.js +0 -4
- data/node_modules/preact/dist/preact.d.ts +0 -1712
- data/node_modules/preact/dist/preact.dev.js +0 -727
- data/node_modules/preact/dist/preact.dev.js.map +0 -1
- data/node_modules/preact/dist/preact.js +0 -414
- data/node_modules/preact/dist/preact.js.flow +0 -25
- data/node_modules/preact/dist/preact.js.map +0 -1
- data/node_modules/preact/dist/preact.min.js +0 -2
- data/node_modules/preact/dist/preact.min.js.map +0 -1
- data/node_modules/preact/dist/preact.mjs +0 -724
- data/node_modules/preact/dist/preact.mjs.map +0 -1
- data/node_modules/preact/dist/preact.umd.js +0 -751
- data/node_modules/preact/dist/preact.umd.js.map +0 -1
- data/node_modules/preact/package.json +0 -226
- data/node_modules/preact/src/clone-element.js +0 -18
- data/node_modules/preact/src/component.js +0 -90
- data/node_modules/preact/src/constants.js +0 -17
- data/node_modules/preact/src/dom/index.js +0 -139
- data/node_modules/preact/src/h.js +0 -86
- data/node_modules/preact/src/options.js +0 -22
- data/node_modules/preact/src/preact.d.ts +0 -1712
- data/node_modules/preact/src/preact.js +0 -32
- data/node_modules/preact/src/preact.js.flow +0 -25
- data/node_modules/preact/src/render-queue.js +0 -27
- data/node_modules/preact/src/render.js +0 -22
- data/node_modules/preact/src/util.js +0 -30
- data/node_modules/preact/src/vdom/component-recycler.js +0 -48
- data/node_modules/preact/src/vdom/component.js +0 -296
- data/node_modules/preact/src/vdom/diff.js +0 -337
- data/node_modules/preact/src/vdom/index.js +0 -54
- data/node_modules/preact/src/vnode.js +0 -9
- data/node_modules/preact/typings.json +0 -5
@@ -18,7 +18,8 @@
|
|
18
18
|
|
19
19
|
width: 1px iff($important, !important);
|
20
20
|
height: 1px iff($important, !important);
|
21
|
-
// If margin is set to a negative value it can cause text to be announced in
|
21
|
+
// If margin is set to a negative value it can cause text to be announced in
|
22
|
+
// the wrong order in VoiceOver for OSX
|
22
23
|
margin: 0 iff($important, !important);
|
23
24
|
padding: 0 iff($important, !important);
|
24
25
|
|
@@ -51,7 +52,8 @@
|
|
51
52
|
|
52
53
|
width: 1px iff($important, !important);
|
53
54
|
height: 1px iff($important, !important);
|
54
|
-
// If margin is set to a negative value it can cause text to be announced in
|
55
|
+
// If margin is set to a negative value it can cause text to be announced in
|
56
|
+
// the wrong order in VoiceOver for OSX
|
55
57
|
margin: 0 iff($important, !important);
|
56
58
|
|
57
59
|
overflow: hidden iff($important, !important);
|
File without changes
|
File without changes
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
@each $width in map-keys($govuk-grid-widths) {
|
14
14
|
.govuk-grid-column-#{$width} {
|
15
|
-
@include govuk-grid-column($width
|
15
|
+
@include govuk-grid-column($width)
|
16
16
|
}
|
17
17
|
}
|
18
18
|
|
@@ -21,7 +21,7 @@
|
|
21
21
|
// them in the outputted CSS
|
22
22
|
@each $width in map-keys($govuk-grid-widths) {
|
23
23
|
.govuk-grid-column-#{$width}-from-desktop {
|
24
|
-
@include govuk-grid-column($width, $at: desktop
|
24
|
+
@include govuk-grid-column($width, $at: desktop)
|
25
25
|
}
|
26
26
|
}
|
27
27
|
}
|
@@ -20,6 +20,8 @@
|
|
20
20
|
// </div>
|
21
21
|
|
22
22
|
|
23
|
+
/// @deprecated Replace this mixin with more direct references to the [spacing
|
24
|
+
/// mixins](https://design-system.service.gov.uk/styles/spacing/#spacing-on-custom-components).
|
23
25
|
@mixin govuk-main-wrapper {
|
24
26
|
// In IE11 the `main` element can be used, but is not recognized –
|
25
27
|
// meaning it's not defined in IE's default style sheet,
|
@@ -37,7 +39,11 @@
|
|
37
39
|
}
|
38
40
|
}
|
39
41
|
|
40
|
-
|
42
|
+
/// Use govuk-main-wrapper--l when you page does not have Breadcrumbs, phase
|
43
|
+
/// banners or back links.
|
44
|
+
///
|
45
|
+
/// @deprecated Replace this mixin with more direct references to the [spacing
|
46
|
+
/// mixins](https://design-system.service.gov.uk/styles/spacing/#spacing-on-custom-components).
|
41
47
|
@mixin govuk-main-wrapper--l {
|
42
48
|
@include govuk-responsive-padding(8, "top");
|
43
49
|
}
|
@@ -47,6 +53,14 @@
|
|
47
53
|
@include govuk-main-wrapper;
|
48
54
|
}
|
49
55
|
|
56
|
+
// Using the `.govuk-main-wrapper--auto-spacing` modifier should apply the
|
57
|
+
// correct spacing depending on whether there are any elements
|
58
|
+
// (such the back link, breadcrumbs or phase banner components) before the
|
59
|
+
// `.govuk-main-wrapper` in the `govuk-width-container`.
|
60
|
+
//
|
61
|
+
// If you need to control the spacing manually, use the
|
62
|
+
// `govuk-main-wrapper--l` modifier instead.
|
63
|
+
.govuk-main-wrapper--auto-spacing:first-child,
|
50
64
|
.govuk-main-wrapper--l {
|
51
65
|
@include govuk-main-wrapper--l;
|
52
66
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -26,12 +26,13 @@ $govuk-text-colour: govuk-colour("black") !default;
|
|
26
26
|
|
27
27
|
/// Canvas background colour
|
28
28
|
///
|
29
|
-
/// Used by the footer component and template to give the illusion of a long
|
29
|
+
/// Used by the footer component and template to give the illusion of a long
|
30
|
+
/// footer.
|
30
31
|
///
|
31
32
|
/// @type Colour
|
32
33
|
/// @access public
|
33
34
|
|
34
|
-
$govuk-canvas-background-colour: govuk-colour("grey-3") !default;
|
35
|
+
$govuk-canvas-background-colour: govuk-colour("light-grey", $legacy: "grey-3") !default;
|
35
36
|
|
36
37
|
/// Body background colour
|
37
38
|
///
|
@@ -56,7 +57,7 @@ $govuk-print-text-colour: #000000 !default;
|
|
56
57
|
/// @type Colour
|
57
58
|
/// @access public
|
58
59
|
|
59
|
-
$govuk-secondary-text-colour: govuk-colour("grey-1") !default;
|
60
|
+
$govuk-secondary-text-colour: govuk-colour("dark-grey", $legacy: "grey-1") !default;
|
60
61
|
|
61
62
|
/// Focus colour
|
62
63
|
///
|
@@ -94,7 +95,7 @@ $govuk-error-colour: govuk-colour("red") !default;
|
|
94
95
|
/// @type Colour
|
95
96
|
/// @access public
|
96
97
|
|
97
|
-
$govuk-border-colour: govuk-colour("grey-2")
|
98
|
+
$govuk-border-colour: govuk-colour("mid-grey", $legacy: "grey-2");
|
98
99
|
|
99
100
|
/// Input border colour
|
100
101
|
///
|
@@ -112,7 +113,7 @@ $govuk-input-border-colour: govuk-colour("black") !default;
|
|
112
113
|
/// @type Colour
|
113
114
|
/// @access public
|
114
115
|
|
115
|
-
$govuk-hover-colour: govuk-colour("grey-3")
|
116
|
+
$govuk-hover-colour: govuk-colour("mid-grey", $legacy: "grey-3");
|
116
117
|
|
117
118
|
|
118
119
|
// =============================================================================
|
@@ -131,18 +132,18 @@ $govuk-link-colour: govuk-colour("blue") !default;
|
|
131
132
|
/// @type Colour
|
132
133
|
/// @access public
|
133
134
|
|
134
|
-
$govuk-link-visited-colour: #4c2c92 !default;
|
135
|
+
$govuk-link-visited-colour: govuk-colour("purple", $legacy: #4c2c92) !default;
|
135
136
|
|
136
137
|
/// Link hover colour
|
137
138
|
///
|
138
139
|
/// @type Colour
|
139
140
|
/// @access public
|
140
141
|
|
141
|
-
$govuk-link-hover-colour: govuk-colour("light-blue") !default;
|
142
|
+
$govuk-link-hover-colour: govuk-colour("dark-blue", $legacy: "light-blue") !default;
|
142
143
|
|
143
144
|
/// Active link colour
|
144
145
|
///
|
145
146
|
/// @type Colour
|
146
147
|
/// @access public
|
147
148
|
|
148
|
-
$govuk-link-active-colour: govuk-colour("light-blue") !default;
|
149
|
+
$govuk-link-active-colour: govuk-colour("black", $legacy: "light-blue") !default;
|
@@ -0,0 +1,101 @@
|
|
1
|
+
@import "compatibility";
|
2
|
+
|
3
|
+
////
|
4
|
+
/// @group settings/colours
|
5
|
+
////
|
6
|
+
|
7
|
+
/// Use 'legacy' colour palette
|
8
|
+
///
|
9
|
+
/// Whether or not to use the colour palette from GOV.UK Elements / Frontend
|
10
|
+
/// Toolkit, for teams that are migrating to GOV.UK Frontend and may be using
|
11
|
+
/// components from both places in a single application.
|
12
|
+
///
|
13
|
+
/// @type Boolean
|
14
|
+
/// @access public
|
15
|
+
|
16
|
+
$govuk-use-legacy-palette: if((
|
17
|
+
$govuk-compatibility-govukfrontendtoolkit or
|
18
|
+
$govuk-compatibility-govuktemplate or
|
19
|
+
$govuk-compatibility-govukelements
|
20
|
+
), true, false) !default;
|
21
|
+
|
22
|
+
/// Legacy colour palette
|
23
|
+
///
|
24
|
+
/// This exists only because you cannot easily set a !default variable
|
25
|
+
/// conditionally (thanks to the way scope works in Sass) so we set
|
26
|
+
/// `$govuk-colour-palette` using the `if` function.
|
27
|
+
///
|
28
|
+
/// @access private
|
29
|
+
|
30
|
+
$_govuk-colour-palette-legacy: (
|
31
|
+
"purple": #2e358b,
|
32
|
+
"light-purple": #6f72af,
|
33
|
+
"bright-purple": #912b88,
|
34
|
+
"pink": #d53880,
|
35
|
+
"light-pink": #f499be,
|
36
|
+
"red": #b10e1e,
|
37
|
+
"bright-red": #df3034,
|
38
|
+
"orange": #f47738,
|
39
|
+
"brown": #b58840,
|
40
|
+
"yellow": #ffbf47,
|
41
|
+
"light-green": #85994b,
|
42
|
+
"green": #006435,
|
43
|
+
"turquoise": #28a197,
|
44
|
+
"light-blue": #2b8cc4,
|
45
|
+
"blue": #005ea5,
|
46
|
+
|
47
|
+
"black": #0b0c0c,
|
48
|
+
"grey-1": #6f777b,
|
49
|
+
"grey-2": #bfc1c3,
|
50
|
+
"grey-3": #dee0e2,
|
51
|
+
"grey-4": #f8f8f8,
|
52
|
+
"white": #ffffff
|
53
|
+
);
|
54
|
+
|
55
|
+
/// Modern colour palette
|
56
|
+
///
|
57
|
+
/// This exists only because you cannot easily set a !default variable
|
58
|
+
/// conditionally (thanks to the way scope works in Sass) so we set
|
59
|
+
/// `$govuk-colour-palette` using the `if` function.
|
60
|
+
///
|
61
|
+
/// @access private
|
62
|
+
|
63
|
+
$_govuk-colour-palette-modern: (
|
64
|
+
"red": #d4351c,
|
65
|
+
"yellow": #ffdd00,
|
66
|
+
"green": #00703c,
|
67
|
+
"blue": #1d70b8,
|
68
|
+
"dark-blue": #003078,
|
69
|
+
"light-blue": #5694ca,
|
70
|
+
"purple": #4c2c92,
|
71
|
+
|
72
|
+
"black": #0b0c0c,
|
73
|
+
"dark-grey": #6f777b,
|
74
|
+
"mid-grey": #b1b4b6,
|
75
|
+
"light-grey": #f3f2f1,
|
76
|
+
"white": #ffffff,
|
77
|
+
|
78
|
+
"light-purple": #6f72af,
|
79
|
+
"bright-purple": #912b88,
|
80
|
+
"pink": #d53880,
|
81
|
+
"light-pink": #f499be,
|
82
|
+
"orange": #f47738,
|
83
|
+
"brown": #b58840,
|
84
|
+
"light-green": #85994b,
|
85
|
+
"turquoise": #28a197
|
86
|
+
);
|
87
|
+
|
88
|
+
/// Colour palette
|
89
|
+
///
|
90
|
+
/// @type Map
|
91
|
+
///
|
92
|
+
/// @prop $colour - Representation for the given $colour, where $colour is the
|
93
|
+
/// friendly name for the colour (e.g. "red": #ff0000);
|
94
|
+
///
|
95
|
+
/// @access public
|
96
|
+
|
97
|
+
$govuk-colours: if(
|
98
|
+
$govuk-use-legacy-palette,
|
99
|
+
$_govuk-colour-palette-legacy,
|
100
|
+
$_govuk-colour-palette-modern
|
101
|
+
) !default;
|
@@ -0,0 +1,75 @@
|
|
1
|
+
////
|
2
|
+
/// 'Compatibility Mode'
|
3
|
+
///
|
4
|
+
/// Enabling these flags improves compatibility if you are using GOV.UK Frontend
|
5
|
+
/// in an application that also uses govuk_elements, govuk_frontend_toolkit or
|
6
|
+
/// govuk_template (the 'legacy repos').
|
7
|
+
///
|
8
|
+
/// Enabling any of these settings will, by default:
|
9
|
+
///
|
10
|
+
/// - switch GOV.UK Frontend to using the same colour palette as the legacy
|
11
|
+
/// repos, by setting `$govuk-use-legacy-palette` to true.
|
12
|
+
///
|
13
|
+
/// - prevent GOV.UK Frontend from using rem for font sizing, by setting
|
14
|
+
/// `$govuk-typography-use-rem` to false.
|
15
|
+
///
|
16
|
+
/// @group settings/compatibility
|
17
|
+
////
|
18
|
+
|
19
|
+
|
20
|
+
/// Compatibility Mode: alphagov/govuk_frontend_toolkit
|
21
|
+
///
|
22
|
+
/// Set this to true if you are also including alphagov/govuk_frontend_toolkit
|
23
|
+
/// in your application.
|
24
|
+
///
|
25
|
+
/// @type Boolean
|
26
|
+
/// @access public
|
27
|
+
|
28
|
+
$govuk-compatibility-govukfrontendtoolkit: false !default;
|
29
|
+
|
30
|
+
/// Compatibility Mode: alphagov/govuk_template
|
31
|
+
///
|
32
|
+
/// Enabling this will:
|
33
|
+
///
|
34
|
+
/// - prevent GOV.UK Frontend from including the New Transport typeface, as
|
35
|
+
/// it'll use the version of New Transport included with GOV.UK Template.
|
36
|
+
///
|
37
|
+
/// - alter some of the CSS outputted by GOV.UK Frontend to 'counter'
|
38
|
+
/// specific CSS rules in GOV.UK Template.
|
39
|
+
///
|
40
|
+
/// Set this to true if you are also including alphagov/govuk_template in your
|
41
|
+
/// application.
|
42
|
+
///
|
43
|
+
/// @type Boolean
|
44
|
+
/// @access public
|
45
|
+
|
46
|
+
$govuk-compatibility-govuktemplate: false !default;
|
47
|
+
|
48
|
+
/// Compatibility Mode: alphagov/govuk_elements
|
49
|
+
///
|
50
|
+
/// Enabling this will:
|
51
|
+
///
|
52
|
+
/// - alter some of the CSS outputted by GOV.UK Frontend to 'counter'
|
53
|
+
/// specific CSS rules in GOV.UK Elements.
|
54
|
+
///
|
55
|
+
/// Set this to true if you are also including alphagov/govuk_elements in your
|
56
|
+
/// application.
|
57
|
+
///
|
58
|
+
/// @type Boolean
|
59
|
+
/// @access public
|
60
|
+
|
61
|
+
$govuk-compatibility-govukelements: false !default;
|
62
|
+
|
63
|
+
/// Compatibility Product Map
|
64
|
+
///
|
65
|
+
/// Maps product names to their settings that we can use to lookup states from
|
66
|
+
/// within the `@govuk-compatibility` mixin.
|
67
|
+
///
|
68
|
+
/// @type Map
|
69
|
+
/// @access private
|
70
|
+
|
71
|
+
$_govuk-compatibility: (
|
72
|
+
govuk_frontend_toolkit: $govuk-compatibility-govukfrontendtoolkit,
|
73
|
+
govuk_template: $govuk-compatibility-govuktemplate,
|
74
|
+
govuk_elements: $govuk-compatibility-govukelements,
|
75
|
+
);
|
File without changes
|
File without changes
|
@@ -63,12 +63,12 @@ $govuk-border-width: 5px !default;
|
|
63
63
|
|
64
64
|
$govuk-border-width-wide: 10px !default;
|
65
65
|
|
66
|
-
///
|
66
|
+
/// Narrow border width
|
67
67
|
///
|
68
68
|
/// @type Number
|
69
69
|
/// @access public
|
70
70
|
|
71
|
-
$govuk-border-width-
|
71
|
+
$govuk-border-width-narrow: 4px !default;
|
72
72
|
|
73
73
|
/// Form control border width
|
74
74
|
///
|
File without changes
|
File without changes
|
@@ -2,11 +2,20 @@
|
|
2
2
|
/// @group settings/typography
|
3
3
|
////
|
4
4
|
|
5
|
-
/// List of font families to use if using
|
5
|
+
/// List of font families to use if using GDS Transport (the default font
|
6
|
+
/// 'stack' for GOV.UK)
|
7
|
+
///
|
8
|
+
/// @type List
|
9
|
+
/// @access public
|
10
|
+
|
11
|
+
$govuk-font-family-gds-transport: "GDS Transport", Arial, sans-serif;
|
12
|
+
|
13
|
+
/// List of font families to use if using NTA (old font 'stack' for
|
6
14
|
/// GOV.UK)
|
7
15
|
///
|
8
16
|
/// @type List
|
9
17
|
/// @access public
|
18
|
+
/// @deprecated To be removed once support for compatibility mode is dropped
|
10
19
|
|
11
20
|
$govuk-font-family-nta: "nta", Arial, sans-serif;
|
12
21
|
|
@@ -18,5 +27,6 @@ $govuk-font-family-nta: "nta", Arial, sans-serif;
|
|
18
27
|
///
|
19
28
|
/// @type List
|
20
29
|
/// @access public
|
30
|
+
/// @deprecated To be removed once support for compatibility mode is dropped
|
21
31
|
|
22
32
|
$govuk-font-family-nta-tabular: "ntatabularnumbers", $govuk-font-family-nta;
|
@@ -1,8 +1,24 @@
|
|
1
|
+
@import "compatibility";
|
2
|
+
@import "typography-font-families";
|
3
|
+
|
1
4
|
////
|
2
5
|
/// @group settings/typography
|
3
6
|
////
|
4
7
|
|
8
|
+
/// Use 'legacy' fonts
|
9
|
+
///
|
10
|
+
/// Whether or not to use v1 nta font from GOV.UK Elements / Frontend
|
11
|
+
/// Toolkit, for teams that are migrating to GOV.UK Frontend and may be using
|
12
|
+
/// components from both places in a single application.
|
13
|
+
///
|
14
|
+
/// @type Boolean
|
15
|
+
/// @access public
|
5
16
|
|
17
|
+
$govuk-use-legacy-font: if((
|
18
|
+
$govuk-compatibility-govukfrontendtoolkit or
|
19
|
+
$govuk-compatibility-govuktemplate or
|
20
|
+
$govuk-compatibility-govukelements
|
21
|
+
), true, false) !default;
|
6
22
|
|
7
23
|
// =========================================================
|
8
24
|
// Font families
|
@@ -13,14 +29,20 @@
|
|
13
29
|
/// @type List
|
14
30
|
/// @access public
|
15
31
|
|
16
|
-
$govuk-font-family: $govuk-
|
32
|
+
$govuk-font-family: if($govuk-use-legacy-font,
|
33
|
+
$govuk-font-family-nta,
|
34
|
+
$govuk-font-family-gds-transport
|
35
|
+
) !default;
|
17
36
|
|
18
37
|
/// Font families to use when displaying tabular numbers
|
19
38
|
///
|
20
39
|
/// @type List
|
21
40
|
/// @access public
|
22
41
|
|
23
|
-
$govuk-font-family-tabular: $govuk-
|
42
|
+
$govuk-font-family-tabular: if($govuk-use-legacy-font,
|
43
|
+
$govuk-font-family-nta-tabular,
|
44
|
+
false
|
45
|
+
) !default;
|
24
46
|
|
25
47
|
/// Font families to use for print media
|
26
48
|
///
|
@@ -31,16 +53,14 @@ $govuk-font-family-print: sans-serif !default;
|
|
31
53
|
|
32
54
|
/// Include the default @font-face declarations
|
33
55
|
///
|
34
|
-
/// If you have set $govuk-font-family to something other than
|
35
|
-
///
|
36
|
-
/// If you are using $govuk-compatibility-govuktemplate this option is disabled by default.
|
56
|
+
/// If you have set $govuk-font-family to something other than
|
57
|
+
/// `$govuk-font-family-gds-transport` this option is disabled by default.
|
37
58
|
///
|
38
59
|
/// @type Boolean
|
39
60
|
/// @access public
|
40
61
|
|
41
62
|
$govuk-include-default-font-face: (
|
42
|
-
$govuk-font-family == $govuk-font-family-
|
43
|
-
not($govuk-compatibility-govuktemplate)
|
63
|
+
$govuk-font-family == $govuk-font-family-gds-transport
|
44
64
|
) !default;
|
45
65
|
|
46
66
|
// =========================================================
|