govuk_publishing_components 67.0.1 → 68.0.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/assets/config/govuk_publishing_components_manifest.js +1 -1
- data/app/assets/stylesheets/component_guide/application.scss +12 -18
- data/app/assets/stylesheets/govuk_publishing_components/all-components.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +6 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment-link.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +5 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list-with-body.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +14 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +3 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +7 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_figure.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_glance-metric.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +30 -51
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +23 -23
- data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_pagination.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_published-dates.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_search-with-autocomplete.scss +7 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +8 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_secondary-navigation.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +15 -15
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_signup-link.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +11 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/_sub-navigation-menu.scss +9 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +5 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_summary-banner.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +15 -10
- data/app/assets/stylesheets/govuk_publishing_components/components/_tag.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.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 +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_colours.scss +9 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/lib/_link.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/settings/_custom-properties.scss +9 -0
- data/app/assets/stylesheets/govuk_publishing_components/settings/_index.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/specific-components.scss +2 -0
- data/app/views/govuk_publishing_components/components/_cross_service_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_glance_metric.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +20 -18
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +14 -36
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_tag.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/attachment/_thumbnail_external.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/attachment/_thumbnail_pdf.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/cross_service_header.yml +0 -1
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +24 -3
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +0 -15
- data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml +1 -3
- data/app/views/govuk_publishing_components/components/docs/tag.yml +4 -8
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +4 -13
- data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -1
- data/config/initializers/assets.rb +1 -1
- data/config/locales/cy.yml +4 -4
- data/config/locales/en.yml +4 -4
- data/lib/govuk_publishing_components/presenters/devolved_nations_helper.rb +5 -4
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/README.md +1 -1
- data/node_modules/govuk-frontend/dist/govuk/_base.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/_base.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +21 -95
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +22 -95
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.mjs +0 -1
- data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.svg +1 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-192.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-512.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +14 -11
- 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.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +16 -19
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +7 -95
- data/node_modules/govuk-frontend/dist/govuk/components/button/macro-options.json +12 -19
- data/node_modules/govuk-frontend/dist/govuk/components/button/template.njk +8 -20
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -2
- 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 +19 -9
- 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 +19 -9
- 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 +19 -9
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -5
- 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 +4 -40
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-default.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-with-html.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
- 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.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +28 -37
- 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.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +0 -7
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +18 -23
- 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 +25 -38
- data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-default.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-full-gds-example.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-three-equal-columns.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-html-content-licence-and-copyright-notice.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-meta.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-text-content-licence-and-copyright-notice.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-one-column.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-two-columns.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta-links-and-meta-content.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-navigation.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-no-content-licence.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-custom-meta.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-meta-links.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +6 -11
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +85 -457
- 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 +7 -536
- data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +2 -101
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +4 -50
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +8 -6
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +9 -10
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
- 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.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +12 -6
- 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 -7
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template-default.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template.njk +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +50 -71
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +7 -32
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +9 -5
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +7 -8
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +8 -5
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +66 -31
- 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 +6 -18
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template-pink.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template-turquoise.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +7 -5
- 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 +13 -25
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-all-possible-colours.html +12 -24
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-hint-text-and-additional-states.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +4 -3
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +4 -3
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +3 -17
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss +17 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +15 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +17 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss +5 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss.map +1 -0
- 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 +168 -82
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +8 -7
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +23 -39
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +2 -26
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.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 +1 -2
- data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +4 -26
- data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +2 -6
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +0 -2
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +3 -188
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +366 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +8 -254
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss +117 -25
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss +18 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +3 -14
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +0 -16
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +12 -189
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/template.njk +61 -23
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map +1 -1
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -4
- data/node_modules/govuk-frontend/package.json +13 -12
- metadata +14 -56
- data/app/assets/javascripts/govuk_publishing_components/components/layout-header.js +0 -3
- data/app/assets/stylesheets/govuk_publishing_components/settings/_colours.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/settings/_typography.scss +0 -1
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +0 -34
- data/node_modules/govuk-frontend/dist/govuk/all.scss +0 -9
- data/node_modules/govuk-frontend/dist/govuk/all.scss.map +0 -1
- 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 +0 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +0 -1
- 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 +0 -1
- 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 +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/components/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-input.html +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +0 -238
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +0 -230
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +0 -89
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +0 -54
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +0 -54
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +0 -48
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-text.html +0 -59
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +0 -29
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-large-navigation.html +0 -119
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-navigation.html +0 -59
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-and-navigation.html +0 -62
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-but-no-service-url.html +0 -34
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name.html +0 -34
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-st-edwards-crown.html +0 -19
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template-light-blue.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/core/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +0 -15
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +0 -9
- data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +0 -65
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +0 -25
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.gem-c-translation-nav {
|
|
2
2
|
margin-bottom: govuk-spacing(6);
|
|
3
|
-
border-bottom: 1px solid
|
|
3
|
+
border-bottom: 1px solid govuk-functional-colour(border);
|
|
4
4
|
@include govuk-text-colour;
|
|
5
5
|
@include govuk-font(16);
|
|
6
6
|
}
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
padding-left: govuk-spacing(2);
|
|
18
18
|
padding-right: govuk-spacing(2);
|
|
19
19
|
margin-bottom: govuk-spacing(2);
|
|
20
|
-
border-right: 1px solid
|
|
20
|
+
border-right: 1px solid govuk-functional-colour(border);
|
|
21
21
|
height: 16px;
|
|
22
22
|
|
|
23
23
|
.direction-rtl & {
|
|
24
24
|
direction: rtl;
|
|
25
25
|
float: right;
|
|
26
26
|
text-align: start;
|
|
27
|
-
border-left: 1px solid
|
|
27
|
+
border-left: 1px solid govuk-functional-colour(border);
|
|
28
28
|
border-right: 0;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.gem-c-warning-text__text--highlight {
|
|
21
|
-
color:
|
|
21
|
+
color: govuk-functional-colour(error);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@include govuk-media-query($media-type: print) {
|
|
25
25
|
.gem-c-warning-text * {
|
|
26
|
-
color:
|
|
26
|
+
color: govuk-functional-colour(print-text);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.govuk-warning-text__icon {
|
|
30
30
|
background: none;
|
|
31
|
-
color:
|
|
31
|
+
color: govuk-functional-colour(print-text);
|
|
32
32
|
}
|
|
33
33
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss
CHANGED
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
width: $thumbnail-width;
|
|
40
40
|
height: 140px;
|
|
41
41
|
background: govuk-colour("white");
|
|
42
|
-
box-shadow: 0 2px 2px
|
|
42
|
+
box-shadow: 0 2px 2px govuk-colour("black", $variant: "tint-50"), 0 0 0 5px govuk-functional-colour("border");
|
|
43
43
|
|
|
44
44
|
@include high-contrast-outline;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
svg {
|
|
48
|
-
fill: govuk-colour("
|
|
49
|
-
stroke: govuk-colour("
|
|
48
|
+
fill: govuk-colour("black", $variant: "tint-50");
|
|
49
|
+
stroke: govuk-colour("black", $variant: "tint-50");
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
@include govuk-media-query($media-type: print) {
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
a,
|
|
128
128
|
a:link,
|
|
129
129
|
a:link:visited {
|
|
130
|
-
color:
|
|
130
|
+
color: govuk-functional-colour(print-text) !important;
|
|
131
131
|
|
|
132
132
|
&::after {
|
|
133
133
|
display: block;
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
.gem-c-govspeak {
|
|
11
11
|
.call-to-action {
|
|
12
12
|
margin: 0 0 govuk-spacing(4) 0;
|
|
13
|
-
background-color: govuk-colour("
|
|
13
|
+
background-color: govuk-colour("black", $variant: "tint-95");
|
|
14
14
|
padding: govuk-spacing(6);
|
|
15
15
|
padding-bottom: govuk-spacing(2);
|
|
16
16
|
|
|
17
17
|
@include govuk-media-query($media-type: print) {
|
|
18
18
|
background: none;
|
|
19
|
-
border: 1pt solid
|
|
19
|
+
border: 1pt solid govuk-functional-colour(border);
|
|
20
20
|
padding: govuk-spacing(3);
|
|
21
21
|
margin: govuk-spacing(3) 0;
|
|
22
22
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// .address is used by the `$A` markdown pattern
|
|
13
13
|
.address,
|
|
14
14
|
.contact {
|
|
15
|
-
border-left: 1px solid govuk-colour("
|
|
15
|
+
border-left: 1px solid govuk-functional-colour("border");
|
|
16
16
|
padding-left: govuk-spacing(3);
|
|
17
17
|
margin: 0 0 govuk-spacing(6) 0;
|
|
18
18
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
|
9
9
|
.gem-c-govspeak {
|
|
10
10
|
.example {
|
|
11
|
-
border-left: 10px solid govuk-colour("
|
|
11
|
+
border-left: 10px solid govuk-functional-colour("border");
|
|
12
12
|
padding: govuk-spacing(4) 0 0.1234px govuk-spacing(4); // non-zero padding on bottom keeps margin of last element inside parent, simulating padding
|
|
13
13
|
margin: 0 0 govuk-spacing(4) 0;
|
|
14
14
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
|
15
15
|
.gem-c-govspeak {
|
|
16
16
|
.footnotes {
|
|
17
|
-
border-top: 1px solid govuk-colour("
|
|
17
|
+
border-top: 1px solid govuk-functional-colour("border");
|
|
18
18
|
margin: 0 0 govuk-spacing(4) 0;
|
|
19
19
|
padding-top: govuk-spacing(4);
|
|
20
20
|
overflow-wrap: break-word;
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
li:target {
|
|
31
|
-
background: govuk-colour("
|
|
32
|
-
border-bottom: solid 3px
|
|
31
|
+
background: govuk-colour("black", $variant: "tint-95");
|
|
32
|
+
border-bottom: solid 3px govuk-functional-colour(border);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
@include govuk-media-query($media-type: print) {
|
|
36
|
-
border-top: 1px solid
|
|
36
|
+
border-top: 1px solid govuk-functional-colour(text);
|
|
37
37
|
|
|
38
38
|
a[role="doc-backlink"] {
|
|
39
39
|
display: none;
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss
CHANGED
|
@@ -48,7 +48,7 @@ $highlight-answer-color: govuk-colour("white");
|
|
|
48
48
|
|
|
49
49
|
&,
|
|
50
50
|
& * {
|
|
51
|
-
color:
|
|
51
|
+
color: govuk-functional-colour(print-text) !important; // stylelint-disable-line declaration-no-important
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
|
10
10
|
.gem-c-govspeak {
|
|
11
11
|
.info-notice {
|
|
12
|
-
border-left: 10px solid govuk-colour("
|
|
12
|
+
border-left: 10px solid govuk-functional-colour("border");
|
|
13
13
|
padding: govuk-spacing(4) 0 0.1234px govuk-spacing(4); // non-zero padding on bottom keeps margin of last element inside parent, simulating padding
|
|
14
14
|
margin: 0 0 govuk-spacing(4) 0;
|
|
15
15
|
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss
CHANGED
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
position: relative;
|
|
36
36
|
padding: govuk-spacing(6);
|
|
37
37
|
padding-bottom: govuk-spacing(8);
|
|
38
|
-
background: govuk-colour("
|
|
39
|
-
border: solid 2px
|
|
38
|
+
background: govuk-colour("black", $variant: "tint-95");
|
|
39
|
+
border: solid 2px govuk-functional-colour(border);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.gem-c-govspeak__youtube-placeholder-text {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
td {
|
|
26
26
|
vertical-align: top;
|
|
27
27
|
padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
|
|
28
|
-
border-bottom: 1px solid govuk-colour("
|
|
28
|
+
border-bottom: 1px solid govuk-functional-colour("border");
|
|
29
29
|
|
|
30
30
|
&:last-child {
|
|
31
31
|
padding: govuk-spacing(2) 0 govuk-spacing(2) 0;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
th {
|
|
36
36
|
text-align: left;
|
|
37
|
-
color:
|
|
37
|
+
color: govuk-functional-colour(text);
|
|
38
38
|
@include govuk-font($size: 19, $weight: bold);
|
|
39
39
|
}
|
|
40
40
|
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
CHANGED
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
@include govuk-media-query($media-type: print) {
|
|
97
|
-
color:
|
|
97
|
+
color: govuk-functional-colour(print-text);
|
|
98
98
|
|
|
99
99
|
a:link {
|
|
100
|
-
color:
|
|
100
|
+
color: govuk-functional-colour(print-text);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
$gem-secondary-button-colour:
|
|
2
|
-
$gem-secondary-button-hover-colour:
|
|
1
|
+
$gem-secondary-button-colour: govuk-colour("green", $variant: "shade-25");
|
|
2
|
+
$gem-secondary-button-hover-colour: govuk-colour("green", $variant: "shade-50");
|
|
3
3
|
$gem-secondary-button-background-colour: govuk-colour("white");
|
|
4
|
-
$gem-secondary-button-hover-background-colour: govuk-colour("
|
|
4
|
+
$gem-secondary-button-hover-background-colour: govuk-colour("black", $variant: "tint-95");
|
|
5
5
|
|
|
6
|
-
$gem-quiet-button-colour: govuk-colour("
|
|
7
|
-
$gem-quiet-button-hover-colour:
|
|
6
|
+
$gem-quiet-button-colour: govuk-functional-colour("secondary-text");
|
|
7
|
+
$gem-quiet-button-hover-colour: govuk-colour("black");
|
|
8
|
+
$gem-quiet-button-hover-background-colour: govuk-colour("black", $variant: "tint-80");
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
$govuk-blue-tint-
|
|
11
|
-
$govuk-blue-tint-
|
|
12
|
-
$govuk-blue-tint-50: govuk-tint(govuk-colour("blue"), 50%);
|
|
13
|
-
|
|
14
|
-
$govuk-rebrand-template-background-colour: $govuk-blue-tint-95;
|
|
10
|
+
$govuk-blue-tint-95: govuk-colour("blue", $variant: "tint-95");
|
|
11
|
+
$govuk-blue-tint-80: govuk-colour("blue", $variant: "tint-80");
|
|
12
|
+
$govuk-blue-tint-50: govuk-colour("blue", $variant: "tint-50");
|
data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@include govuk-media-query($media-type: print) {
|
|
66
|
-
color:
|
|
66
|
+
color: govuk-functional-colour(print-text) !important; // stylelint-disable-line declaration-no-important
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -115,12 +115,12 @@
|
|
|
115
115
|
hr {
|
|
116
116
|
margin-top: govuk-spacing(6) - 1px;
|
|
117
117
|
margin-bottom: govuk-spacing(6);
|
|
118
|
-
border-top: 1px solid
|
|
118
|
+
border-top: 1px solid govuk-functional-colour(border);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
code {
|
|
122
122
|
padding: 0 5px;
|
|
123
123
|
color: #d13118;
|
|
124
|
-
background-color: govuk-colour("
|
|
124
|
+
background-color: govuk-colour("black", $variant: "tint-95");
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
@include govuk-font(19);
|
|
3
3
|
|
|
4
4
|
&:link {
|
|
5
|
-
color:
|
|
5
|
+
color: govuk-functional-colour(error);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&:visited,
|
|
9
9
|
&:hover,
|
|
10
10
|
&:active {
|
|
11
|
-
color:
|
|
11
|
+
color: govuk-colour("red", $variant: "shade-25");
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
&:focus {
|
|
15
|
-
color:
|
|
15
|
+
color: govuk-functional-colour(focus-text);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
&,
|
|
58
58
|
&:link,
|
|
59
59
|
&:visited {
|
|
60
|
-
color:
|
|
60
|
+
color: govuk-functional-colour(print-text) !important;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&::after {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
margin: 1mm auto;
|
|
66
66
|
font-size: 12pt;
|
|
67
67
|
font-weight: normal;
|
|
68
|
-
color:
|
|
68
|
+
color: govuk-functional-colour(print-text) !important;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Default the `govuk-output-custom-properties` flag to false to prevent custom properties
|
|
2
|
+
// being output multiple times.
|
|
3
|
+
// Entry points such as `all-components.scss` and `specific-components` override this
|
|
4
|
+
// value when they need to include custom properties (for example, the component guide
|
|
5
|
+
// or application stylesheets where there is only a single stylesheet).
|
|
6
|
+
// Direct imports of base (e.g. secondary stylesheets) keep the default value of `false`,
|
|
7
|
+
// rather than using the GOV.UK Frontend default of `true`.
|
|
8
|
+
|
|
9
|
+
$govuk-output-custom-properties: false !default;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
service_navigation_items ||= []
|
|
5
5
|
%>
|
|
6
6
|
|
|
7
|
-
<
|
|
7
|
+
<div class="gem-c-cross-service-header gem-c-rebranded-cross-service-header" data-module="cross-service-header">
|
|
8
8
|
<%= render "govuk_publishing_components/components/cross_service_header/one_login_header", {
|
|
9
9
|
one_login_navigation_items: one_login_navigation_items,
|
|
10
10
|
} %>
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
service_name: service_name,
|
|
13
13
|
navigation_items: service_navigation_items,
|
|
14
14
|
} %>
|
|
15
|
-
</
|
|
15
|
+
</div>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
body_css_classes << body_classes if body_classes
|
|
33
33
|
-%>
|
|
34
34
|
<!DOCTYPE html>
|
|
35
|
-
<html class="govuk-template
|
|
35
|
+
<html class="govuk-template" lang="<%= html_lang %>">
|
|
36
36
|
<head>
|
|
37
37
|
<meta charset="utf-8">
|
|
38
38
|
<%= tag.title title, lang: title_lang %>
|
|
@@ -81,27 +81,29 @@
|
|
|
81
81
|
<% end %>
|
|
82
82
|
<% end %>
|
|
83
83
|
<% unless omit_header %>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<% else %>
|
|
91
|
-
<% I18n.with_locale(:en) do %>
|
|
92
|
-
<%= render "govuk_publishing_components/components/layout_super_navigation_header", {
|
|
93
|
-
homepage:,
|
|
94
|
-
logo_link:,
|
|
95
|
-
phase_banner:,
|
|
84
|
+
<%= tag.header do %>
|
|
85
|
+
<% if show_cross_service_header %>
|
|
86
|
+
<%= render "govuk_publishing_components/components/cross_service_header", {
|
|
87
|
+
one_login_navigation_items: one_login_navigation_items,
|
|
88
|
+
service_navigation_items: service_navigation_items,
|
|
89
|
+
service_name: service_name,
|
|
96
90
|
} %>
|
|
91
|
+
<% else %>
|
|
92
|
+
<% I18n.with_locale(:en) do %>
|
|
93
|
+
<%= render "govuk_publishing_components/components/layout_super_navigation_header", {
|
|
94
|
+
homepage:,
|
|
95
|
+
logo_link:,
|
|
96
|
+
phase_banner:,
|
|
97
|
+
} %>
|
|
98
|
+
<% end %>
|
|
97
99
|
<% end %>
|
|
98
|
-
<% end %>
|
|
99
|
-
<% end %>
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
<%= raw(emergency_banner) %>
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
<% if global_banner.present? %>
|
|
104
|
+
<%= raw(global_banner) %>
|
|
105
|
+
<% end %>
|
|
106
|
+
<% end %>
|
|
105
107
|
<% end %>
|
|
106
108
|
|
|
107
109
|
<% if show_account_layout %>
|
|
@@ -6,50 +6,28 @@
|
|
|
6
6
|
navigation_items ||= []
|
|
7
7
|
product_name ||= nil
|
|
8
8
|
remove_bottom_border ||= false
|
|
9
|
-
deprecated_navigation ||= false
|
|
10
9
|
width_class = full_width ? "govuk-header__container--full-width" : "govuk-width-container"
|
|
11
10
|
logo_link ||= "/"
|
|
12
11
|
|
|
13
12
|
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
|
14
13
|
component_helper.add_class("gem-c-layout-header govuk-header")
|
|
15
14
|
component_helper.add_class("gem-c-layout-header--no-bottom-border") if remove_bottom_border || navigation_items
|
|
16
|
-
component_helper.add_data_attribute({ module: "govuk-header" })
|
|
17
15
|
%>
|
|
18
16
|
|
|
19
17
|
<%= tag.header(**component_helper.all_attributes) do %>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} %>
|
|
35
|
-
<% end %>
|
|
36
|
-
<% else %>
|
|
37
|
-
<div class="govuk-header__container <%= width_class %>">
|
|
38
|
-
<div class="govuk-grid-row">
|
|
39
|
-
<div class="gem-c-layout-header__logo govuk-grid-column-one-half">
|
|
40
|
-
<%= render "govuk_publishing_components/components/layout_header/header_logo", {
|
|
41
|
-
environment:,
|
|
42
|
-
logo_link:,
|
|
43
|
-
product_name:,
|
|
44
|
-
deprecated_navigation: true,
|
|
45
|
-
} %>
|
|
46
|
-
</div>
|
|
47
|
-
<% if navigation_items.any? %>
|
|
48
|
-
<div class="govuk-header__content gem-c-header__content govuk-grid-column-full govuk-!-display-none-print">
|
|
49
|
-
<%= render "govuk_publishing_components/components/layout_header/navigation_items", navigation_items: navigation_items, navigation_aria_label: navigation_aria_label %>
|
|
50
|
-
</div>
|
|
51
|
-
<% end %>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
18
|
+
<div class="govuk-header__container <%= width_class %> gem-c-layout-header__logo">
|
|
19
|
+
<%= render "govuk_publishing_components/components/layout_header/header_logo", {
|
|
20
|
+
environment:,
|
|
21
|
+
logo_link:,
|
|
22
|
+
product_name:,
|
|
23
|
+
signout_link:,
|
|
24
|
+
} %>
|
|
25
|
+
</div>
|
|
26
|
+
<% if navigation_items.any? %>
|
|
27
|
+
<%= render "govuk_publishing_components/components/service_navigation", {
|
|
28
|
+
navigation_items:,
|
|
29
|
+
navigation_aria_label:,
|
|
30
|
+
full_width:,
|
|
31
|
+
} %>
|
|
54
32
|
<% end %>
|
|
55
33
|
<% end %>
|
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
header_logo_classes = %w(gem-c-layout-super-navigation-header__header-logo)
|
|
31
31
|
header_logo_classes << "gem-c-layout-super-navigation-header__header-logo--homepage" if homepage
|
|
32
32
|
|
|
33
|
-
header_link_classes = %w(govuk-
|
|
33
|
+
header_link_classes = %w(govuk-header__homepage-link)
|
|
34
34
|
|
|
35
35
|
dropdown_menu_classes = %w(gem-c-layout-super-navigation-header__navigation-dropdown-menu)
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
component_helper.add_class("gem-c-layout-super-navigation-header")
|
|
39
39
|
component_helper.add_data_attribute({ module: "ga4-event-tracker ga4-link-tracker", ga4_expandable: "" })
|
|
40
40
|
%>
|
|
41
|
-
<%= tag.
|
|
41
|
+
<%= tag.div(**component_helper.all_attributes) do %>
|
|
42
42
|
<div class="gem-c-layout-super-navigation-header__nav-wrapper">
|
|
43
43
|
<div class="gem-c-layout-super-navigation-header__container govuk-width-container">
|
|
44
44
|
<nav
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
|
9
9
|
component_helper.add_class("govuk-tag gem-c-tag")
|
|
10
10
|
|
|
11
|
-
colours = %w[grey green
|
|
11
|
+
colours = %w[grey green teal blue purple magenta red orange yellow]
|
|
12
12
|
colour ||= nil
|
|
13
13
|
component_helper.add_class("govuk-tag--#{colour}") if colours.include?(colour)
|
|
14
14
|
%>
|
data/app/views/govuk_publishing_components/components/attachment/_thumbnail_external.html.erb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg class="gem-c-attachment__thumbnail-image gem-c-attachment__thumbnail-image--external" version="1.1" viewBox="0 0 99 140" aria-hidden="true">
|
|
1
|
+
<svg class="gem-c-attachment__thumbnail-image gem-c-attachment__thumbnail-image--external" version="1.1" viewBox="0 0 99 140" width="99" height="140" aria-hidden="true">
|
|
2
2
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M21 59H12V68H21V59ZM30 86V77H69V86H30ZM87 104H30V95H87V104ZM78 122H30V113H78V122ZM21 86H12V77H21V86ZM21 122H12V113H21V122ZM21 104H12V95H21V104ZM87 68H30V59H87V68ZM87 39V12H12V39H87ZM77.9699 29.2919H77.9202L75.2756 17H71.2279L68.5088 29.2919H68.4591L66.1249 17H62.2014L66.1746 34.8047H70.5699L73.2145 22.0409L75.9088 34.8047H80.3289L84.3021 17H80.391L77.9699 29.2919ZM53.8195 29.2919H53.8692L56.2903 17H60.2014L56.2282 34.8047H51.8081L49.1138 22.0409L46.4692 34.8047H42.0739L38.1007 17H42.0242L44.3584 29.2919H44.4081L47.1272 17H51.1749L53.8195 29.2919ZM29.7684 29.2919H29.7188L27.0742 17H23.0265L20.3074 29.2919H20.2577L17.9235 17H14L17.9732 34.8047H22.3685L25.0131 22.0409L27.7074 34.8047H32.1275L36.1007 17H32.1896L29.7684 29.2919Z" />
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg class="gem-c-attachment__thumbnail-image gem-c-attachment__thumbnail-image--pdf" version="1.1" viewBox="0 0 99 140">
|
|
1
|
+
<svg class="gem-c-attachment__thumbnail-image gem-c-attachment__thumbnail-image--pdf" version="1.1" viewBox="0 0 99 140" width="99" height="140" aria-hidden="true">
|
|
2
2
|
<path d="M12,59h9v9h-9v-9ZM30,77v9h39v-9H30ZM30,104h57v-9H30v9ZM30,122h48v-9H30v9ZM12,86h9v-9h-9v9ZM12,122h9v-9h-9v9ZM12,104h9v-9h-9v9ZM30,68h57v-9H30v9ZM35.2,21c-.3-.2-.6-.4-1-.5s-.8-.2-1.3-.2h-2.6v5.5h2.6c.5,0,1,0,1.3-.2s.7-.3,1-.5c.3-.2.5-.5.7-.8s.2-.7.2-1.1h0c0-.5,0-.9-.2-1.2-.2-.3-.4-.6-.7-.8h0ZM52.4,21.9c-.4-.5-1-.9-1.6-1.1-.7-.3-1.5-.4-2.4-.4h-2.7v11.5h2.7c.9,0,1.7-.1,2.4-.4s1.2-.7,1.6-1.1c.4-.5.7-1.1.9-1.7.2-.7.3-1.4.3-2.1v-.7c0-.8,0-1.5-.3-2.1-.2-.6-.5-1.2-.9-1.7h0ZM87,12v27H12V12h75ZM39.8,23c0-.9-.1-1.6-.4-2.4-.3-.7-.7-1.4-1.2-1.9-.5-.5-1.2-1-1.9-1.2-.8-.3-1.6-.5-2.5-.5h-7.2v17.9h3.6v-6h3.2c.9,0,1.8-.1,2.6-.5.8-.3,1.4-.7,2-1.2.5-.5,1-1.2,1.3-1.9.3-.7.5-1.5.5-2.4h0ZM57.4,26c0-1.3-.2-2.6-.5-3.7s-.9-2-1.6-2.8c-.7-.8-1.6-1.4-2.7-1.8-1.1-.4-2.3-.6-3.8-.6h-6.6v17.9h6.6c1.5,0,2.7-.2,3.8-.6,1.1-.4,2-1,2.7-1.8.7-.8,1.3-1.7,1.6-2.8.4-1.1.5-2.3.5-3.7h0ZM72.4,17.1h-12.1v17.9h3.6v-7.5h7.8v-3.3h-7.8v-3.8h8.4s0-3.3,0-3.3Z" />
|
|
3
3
|
</svg>
|
|
@@ -12,6 +12,7 @@ accessibility_criteria: |
|
|
|
12
12
|
* have a `lang` attribute
|
|
13
13
|
* contain a [skip link](/component-guide/skip_link)
|
|
14
14
|
* have a sensible page `<title>`
|
|
15
|
+
* contain a `<header>` element
|
|
15
16
|
examples:
|
|
16
17
|
default:
|
|
17
18
|
data:
|
|
@@ -47,11 +48,11 @@ examples:
|
|
|
47
48
|
href: "item-3"
|
|
48
49
|
show_only_in_collapsed_menu: true
|
|
49
50
|
with_global_banner:
|
|
50
|
-
description: This allows the HTML for the global banner to be added to the page. This is only the slot for the global banner - the markup for the banner needs to be passed in.
|
|
51
|
+
description: This allows the HTML for the global banner to be added to the page within the header element. This is only the slot for the global banner - the markup for the banner needs to be passed in.
|
|
51
52
|
data:
|
|
52
53
|
global_banner: <div class="govuk-!-padding-top-5 govuk-!-padding-bottom-3">This is the global banner slot</div>
|
|
53
54
|
with_emergency_banner:
|
|
54
|
-
description: This allows the HTML for the emergency banner to be added to the page
|
|
55
|
+
description: This allows the HTML for the emergency banner to be added to the page within the header element. This is only the slot for the emergency banner - the markup for the banner needs to be passed in.
|
|
55
56
|
data:
|
|
56
57
|
emergency_banner: <div class="govuk-!-padding-top-3 govuk-!-padding-bottom-3">This is the emergency banner slot</div>
|
|
57
58
|
with_phase_banner:
|
|
@@ -61,13 +62,33 @@ examples:
|
|
|
61
62
|
phase: "beta"
|
|
62
63
|
message: "This is a custom test message for the public layout phase banner."
|
|
63
64
|
with_all_banners:
|
|
64
|
-
description: The phase banner, global banner and emergency banner should be usable together.
|
|
65
|
+
description: The phase banner, global banner and emergency banner should be usable together within the header element.
|
|
65
66
|
data:
|
|
66
67
|
phase_banner:
|
|
67
68
|
phase: "beta"
|
|
68
69
|
message: "This is the phase banner banner"
|
|
69
70
|
emergency_banner: <div class="govuk-!-padding-top-3 govuk-!-padding-bottom-3">This is the emergency banner slot</div>
|
|
70
71
|
global_banner: <div class="govuk-!-padding-top-5 govuk-!-padding-bottom-3">This is the global banner slot</div>
|
|
72
|
+
with_cross_service_header:
|
|
73
|
+
description: Passes the navigation through to the [cross service header](/component-guide/cross_service_header/).
|
|
74
|
+
data:
|
|
75
|
+
show_cross_service_header: true
|
|
76
|
+
service_name: "My Service Name"
|
|
77
|
+
one_login_navigation_items:
|
|
78
|
+
one_login_home:
|
|
79
|
+
href: "#"
|
|
80
|
+
one_login_sign_out:
|
|
81
|
+
href: "#"
|
|
82
|
+
navigation_items: []
|
|
83
|
+
service_navigation_items:
|
|
84
|
+
- text: Navigation item 1
|
|
85
|
+
href: "item-1"
|
|
86
|
+
active: true
|
|
87
|
+
- text: Navigation item 2
|
|
88
|
+
href: "item-2"
|
|
89
|
+
- text: Hidden on desktop
|
|
90
|
+
href: "item-3"
|
|
91
|
+
show_only_in_collapsed_menu: true
|
|
71
92
|
with_account_layout_enabled:
|
|
72
93
|
description: Adds account layout wrapper around the content passed in to the component
|
|
73
94
|
data:
|
|
@@ -58,21 +58,6 @@ examples:
|
|
|
58
58
|
href: "item-4"
|
|
59
59
|
- text: Logout
|
|
60
60
|
href: "item-5"
|
|
61
|
-
with_deprecated_navigation:
|
|
62
|
-
description: Note that [remove_bottom_border](#no_bottom_border) automatically gets set to true on the header when navigation items are added.
|
|
63
|
-
data:
|
|
64
|
-
environment: production
|
|
65
|
-
deprecated_navigation: true
|
|
66
|
-
navigation_items:
|
|
67
|
-
- text: Mainstream browse
|
|
68
|
-
href: "item-1"
|
|
69
|
-
active: true
|
|
70
|
-
- text: Step by steps
|
|
71
|
-
href: "item-2"
|
|
72
|
-
- text: Jonathan Doe
|
|
73
|
-
href: "item-3"
|
|
74
|
-
- text: Logout
|
|
75
|
-
href: "item-4"
|
|
76
61
|
with_product_name_and_navigation:
|
|
77
62
|
data:
|
|
78
63
|
product_name: Component Guide 999.9.9
|