govuk_publishing_components 37.3.1 → 37.5.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/images/govuk_publishing_components/favicon-development.png +0 -0
- data/app/assets/images/govuk_publishing_components/favicon-example.png +0 -0
- data/app/assets/images/govuk_publishing_components/favicon-integration.png +0 -0
- data/app/assets/images/govuk_publishing_components/favicon-production.png +0 -0
- data/app/assets/images/govuk_publishing_components/favicon-staging.png +0 -0
- data/app/assets/images/govuk_publishing_components/govuk-logo.png +0 -0
- data/app/assets/images/govuk_publishing_components/govuk-schema-placeholder-16x9.png +0 -0
- data/app/assets/images/govuk_publishing_components/govuk-schema-placeholder-1x1.png +0 -0
- data/app/assets/images/govuk_publishing_components/govuk-schema-placeholder-4x3.png +0 -0
- data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +26 -22
- data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +15 -7
- data/app/views/govuk_publishing_components/components/_document_list.html.erb +15 -8
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +4 -4
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +5 -4
- data/app/views/govuk_publishing_components/components/_notice.html.erb +23 -3
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +3 -3
- data/app/views/govuk_publishing_components/components/cross_service_header/_one_login_header.html.erb +3 -2
- data/app/views/govuk_publishing_components/components/docs/document_list.yml +24 -1
- data/app/views/govuk_publishing_components/components/docs/notice.yml +10 -0
- data/app/views/govuk_publishing_components/components/docs/share_links.yml +4 -4
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +5 -3
- data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +1 -1
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +4 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/govuk/_base.scss +2 -0
- data/node_modules/govuk-frontend/govuk/_base.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/all-ie8.scss +2 -0
- data/node_modules/govuk-frontend/govuk/all-ie8.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/all.js +1 -1
- data/node_modules/govuk-frontend/govuk/all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/all.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/assets/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-152x152.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-167x167.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-180x180.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-apple-touch-icon.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-logotype-tudor-crown.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-mask-icon.svg +1 -7
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js +1 -1
- data/node_modules/govuk-frontend/govuk/components/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/_all.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +8 -10
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +4 -4
- data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +4 -4
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/button/_button.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/button/_button.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +8 -2
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +4 -4
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +4 -3
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/details/_details.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/details/_details.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/details/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/details/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/exit-this-page/_exit-this-page.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/exit-this-page/_exit-this-page.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/exit-this-page/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/exit-this-page/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/header/_header.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/header/_header.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss +18 -0
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +29 -21
- data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +56 -31
- data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/hint/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/input/_input.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/input/_input.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/label/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/label/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/label/_label.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/label/_label.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/pagination/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/pagination/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/pagination/_pagination.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/pagination/_pagination.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/panel/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/panel/_panel.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/panel/_panel.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/radios/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/radios/_radios.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/radios/_radios.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/select/_select.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/select/_select.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +36 -9
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/table/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/table/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/table/_table.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/table/_table.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +2 -1
- data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/core/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/core/_all.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +2 -0
- data/node_modules/govuk-frontend/govuk/core/_global-styles.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/core/_govuk-frontend-version.scss +3 -1
- data/node_modules/govuk-frontend/govuk/core/_govuk-frontend-version.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/core/_links.scss +2 -0
- data/node_modules/govuk-frontend/govuk/core/_links.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/core/_lists.scss +2 -0
- data/node_modules/govuk-frontend/govuk/core/_lists.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/core/_section-break.scss +2 -0
- data/node_modules/govuk-frontend/govuk/core/_section-break.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/core/_typography.scss +2 -0
- data/node_modules/govuk-frontend/govuk/core/_typography.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_all.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_clearfix.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_clearfix.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_device-pixels.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_device-pixels.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_grid.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_typography.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +2 -0
- data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/objects/_all.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +2 -0
- data/node_modules/govuk-frontend/govuk/objects/_button-group.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_form-group.scss +2 -0
- data/node_modules/govuk-frontend/govuk/objects/_form-group.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_grid.scss +2 -0
- data/node_modules/govuk-frontend/govuk/objects/_grid.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +2 -0
- data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_template.scss +2 -0
- data/node_modules/govuk-frontend/govuk/objects/_template.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +2 -0
- data/node_modules/govuk-frontend/govuk/objects/_width-container.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/overrides/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/overrides/_all.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/overrides/_display.scss +2 -0
- data/node_modules/govuk-frontend/govuk/overrides/_display.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +2 -0
- data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/overrides/_text-align.scss +2 -0
- data/node_modules/govuk-frontend/govuk/overrides/_text-align.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +2 -0
- data/node_modules/govuk-frontend/govuk/overrides/_typography.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/overrides/_width.scss +2 -0
- data/node_modules/govuk-frontend/govuk/overrides/_width.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_all.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_assets.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_assets.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_global-styles.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_global-styles.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_ie8.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_links.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_links.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_measurements.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_media-queries.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_media-queries.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_spacing.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_spacing.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-font-families.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-font-families.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-font.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-font.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-responsive.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-responsive.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_warnings.scss +2 -0
- data/node_modules/govuk-frontend/govuk/settings/_warnings.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/tools/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/tools/_all.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +2 -0
- data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/tools/_exports.scss +2 -0
- data/node_modules/govuk-frontend/govuk/tools/_exports.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/tools/_font-url.scss +2 -0
- data/node_modules/govuk-frontend/govuk/tools/_font-url.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +2 -0
- data/node_modules/govuk-frontend/govuk/tools/_ie8.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/tools/_image-url.scss +2 -0
- data/node_modules/govuk-frontend/govuk/tools/_image-url.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/tools/_px-to-em.scss +2 -0
- data/node_modules/govuk-frontend/govuk/tools/_px-to-em.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss +2 -0
- data/node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/utilities/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/utilities/_all.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/utilities/_clearfix.scss +2 -0
- data/node_modules/govuk-frontend/govuk/utilities/_clearfix.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/utilities/_visually-hidden.scss +2 -0
- data/node_modules/govuk-frontend/govuk/utilities/_visually-hidden.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk/vendor/_sass-mq.scss +2 -0
- data/node_modules/govuk-frontend/govuk/vendor/_sass-mq.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk-esm/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/govuk-prototype-kit/init.scss +2 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit/init.scss.map +1 -0
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +135 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ae79b74c7f168d201da93dd67100925c6e89c34ea187b924fd9a4b93abc6b28
|
4
|
+
data.tar.gz: a0386e47e87e26590be08d1671be29add20066d965d1998b370ab26dd21d629e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb9f0fe2fce0cfbce193404c2e0f8a1e7842fdb4d011e96c698c00a999c59d71518b94463ce1ae8369fbc60e72ba0f53d5c590cb947aba2d8d4eb8052d36752b
|
7
|
+
data.tar.gz: a3cd14147b0f1d842f8d8688f6d3dfdc0adbea71588406b3b80b0b97240452fcdf3a9c5a3c366bd59836d6cef5811d8af1410ed6d8cfbe592ad442315d13df81
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -32,7 +32,8 @@
|
|
32
32
|
var remainingUtValues = utValues.slice(config.maxBeaconUTEntries);
|
33
33
|
// Trim UT entries until they fit within the maximum URL length, ensuring at least one UT entry
|
34
34
|
// is included.
|
35
|
-
while ((url + "&UT=" + beaconUtValues.join(",")).length > config.maxBeaconUrlLength &&
|
35
|
+
while ((url + "&UT=" + beaconUtValues.join(",")).length > config.maxBeaconUrlLength &&
|
36
|
+
beaconUtValues.length > 1) {
|
36
37
|
remainingUtValues.unshift(beaconUtValues.pop());
|
37
38
|
}
|
38
39
|
return [beaconUtValues, remainingUtValues];
|
@@ -546,10 +547,10 @@
|
|
546
547
|
// -------------------------------------------------------------------------
|
547
548
|
/// End
|
548
549
|
// -------------------------------------------------------------------------
|
549
|
-
var SCRIPT_VERSION = "
|
550
|
+
var SCRIPT_VERSION = "313";
|
550
551
|
var logger = new Logger();
|
551
552
|
var globalConfig = fromObject(LUX);
|
552
|
-
logger.logEvent(LogEvent.EvaluationStart, [SCRIPT_VERSION]);
|
553
|
+
logger.logEvent(LogEvent.EvaluationStart, [SCRIPT_VERSION, globalConfig]);
|
553
554
|
// Variable aliases that allow the minifier to reduce file size.
|
554
555
|
var document = window.document;
|
555
556
|
var addEventListener = window.addEventListener;
|
@@ -650,7 +651,7 @@
|
|
650
651
|
var gSessionTimeout = 30 * 60; // number of seconds after which we consider a session to have "timed out" (used for calculating bouncerate)
|
651
652
|
var gSyncId = createSyncId(); // if we send multiple beacons, use this to sync them (eg, LUX & IX) (also called "luxid")
|
652
653
|
var gUid = refreshUniqueId(gSyncId); // cookie for this session ("Unique ID")
|
653
|
-
var
|
654
|
+
var gCustomDataTimeout; // setTimeout timer for sending a Custom data beacon after onload
|
654
655
|
var gMaxMeasureTimeout; // setTimeout timer for sending the beacon after a maximum measurement time
|
655
656
|
var pageRestoreTime; // ms since navigationStart representing when the page was restored from the bfcache
|
656
657
|
/**
|
@@ -1186,16 +1187,16 @@
|
|
1186
1187
|
}
|
1187
1188
|
if (gbLuxSent) {
|
1188
1189
|
// This is special: We want to allow customers to call LUX.addData()
|
1189
|
-
// _after_ window.onload. So we have to send a
|
1190
|
-
// includes the new
|
1190
|
+
// _after_ window.onload. So we have to send a Custom data beacon that
|
1191
|
+
// includes the new custom data.
|
1191
1192
|
// Do setTimeout so that if there are multiple back-to-back addData calls
|
1192
1193
|
// we get them all in one beacon.
|
1193
|
-
if (
|
1194
|
+
if (gCustomDataTimeout) {
|
1194
1195
|
// Cancel the timer for any previous beacons so that if they have not
|
1195
1196
|
// yet been sent we can combine all the data in a new beacon.
|
1196
|
-
clearTimeout(
|
1197
|
+
clearTimeout(gCustomDataTimeout);
|
1197
1198
|
}
|
1198
|
-
|
1199
|
+
gCustomDataTimeout = setTimeout(_sendCustomData, 100);
|
1199
1200
|
}
|
1200
1201
|
}
|
1201
1202
|
// _sample()
|
@@ -1211,7 +1212,8 @@
|
|
1211
1212
|
* Re-initialize lux.js to start a new "page". This is typically called within a SPA at the
|
1212
1213
|
* beginning of a page transition, but is also called internally when the BF cache is restored.
|
1213
1214
|
*/
|
1214
|
-
function _init(startTime) {
|
1215
|
+
function _init(startTime, clearFlags) {
|
1216
|
+
if (clearFlags === void 0) { clearFlags = true; }
|
1215
1217
|
// Some customers (incorrectly) call LUX.init on the very first page load of a SPA. This would
|
1216
1218
|
// cause some first-page-only data (like paint metrics) to be lost. To prevent this, we silently
|
1217
1219
|
// bail from this function when we detect an unnecessary LUX.init call.
|
@@ -1245,8 +1247,10 @@
|
|
1245
1247
|
nErrors = 0;
|
1246
1248
|
gFirstInputDelay = undefined;
|
1247
1249
|
// Clear flags then set the flag that init was called (ie, this is a SPA).
|
1248
|
-
|
1249
|
-
|
1250
|
+
if (clearFlags) {
|
1251
|
+
gFlags = 0;
|
1252
|
+
gFlags = addFlag(gFlags, Flags.InitCalled);
|
1253
|
+
}
|
1250
1254
|
// Reset the maximum measure timeout
|
1251
1255
|
createMaxMeasureTimeout();
|
1252
1256
|
}
|
@@ -1653,9 +1657,9 @@
|
|
1653
1657
|
if (gFlags) {
|
1654
1658
|
queryParams.push("fl=" + gFlags);
|
1655
1659
|
}
|
1656
|
-
var
|
1657
|
-
if (
|
1658
|
-
queryParams.push("CD=" +
|
1660
|
+
var customDataValues = valuesToString(customData);
|
1661
|
+
if (customDataValues) {
|
1662
|
+
queryParams.push("CD=" + customDataValues);
|
1659
1663
|
clearUpdateCustomData();
|
1660
1664
|
}
|
1661
1665
|
return globalConfig.beaconUrl + "?" + queryParams.join("&");
|
@@ -1720,7 +1724,7 @@
|
|
1720
1724
|
LUX.addData(conversion, BOOLEAN_TRUE);
|
1721
1725
|
});
|
1722
1726
|
}
|
1723
|
-
// We want ALL beacons to have ALL the data used for query filters (geo, pagelabel, browser, &
|
1727
|
+
// We want ALL beacons to have ALL the data used for query filters (geo, pagelabel, browser, & custom data).
|
1724
1728
|
// So we create a base URL that has all the necessary information:
|
1725
1729
|
var baseUrl = _getBeaconUrl(getAllCustomData());
|
1726
1730
|
var is = inlineTagSize("script");
|
@@ -1819,9 +1823,9 @@
|
|
1819
1823
|
gbIxSent = 1;
|
1820
1824
|
}
|
1821
1825
|
}
|
1822
|
-
// Beacon back
|
1823
|
-
// (i.e.,
|
1824
|
-
function
|
1826
|
+
// Beacon back custom data that is recorded _after_ the main beacon was sent
|
1827
|
+
// (i.e., custom data after window.onload).
|
1828
|
+
function _sendCustomData() {
|
1825
1829
|
var customerid = getCustomerId();
|
1826
1830
|
if (!customerid ||
|
1827
1831
|
!gSyncId ||
|
@@ -1830,8 +1834,8 @@
|
|
1830
1834
|
) {
|
1831
1835
|
return;
|
1832
1836
|
}
|
1833
|
-
var
|
1834
|
-
if (
|
1837
|
+
var customDataValues = valuesToString(getUpdatedCustomData());
|
1838
|
+
if (customDataValues) {
|
1835
1839
|
var beaconUrl = _getBeaconUrl(getUpdatedCustomData());
|
1836
1840
|
logger.logEvent(LogEvent.CustomDataBeaconSent, [beaconUrl]);
|
1837
1841
|
_sendBeacon(beaconUrl);
|
@@ -2122,7 +2126,7 @@
|
|
2122
2126
|
if (gbLuxSent) {
|
2123
2127
|
// If the beacon was already sent for this page, we start a new page view and mark the
|
2124
2128
|
// load time as the time it took to restore the page.
|
2125
|
-
_init(pageRestoreTime);
|
2129
|
+
_init(pageRestoreTime, false);
|
2126
2130
|
_markLoadTime();
|
2127
2131
|
}
|
2128
2132
|
// Flag the current page as a bfcache restore
|
data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss
CHANGED
@@ -219,6 +219,14 @@ $govuk-header-link-underline-thickness: 3px;
|
|
219
219
|
vertical-align: top;
|
220
220
|
}
|
221
221
|
|
222
|
+
// Spacing adjustment for Tudor crown, as the new graphic is narrower than the
|
223
|
+
// existing crown. In Frontend v5, this rule should replace the equivalent in
|
224
|
+
// the block above.
|
225
|
+
.gem-c-one-login-header__logotype-crown[width="32"] {
|
226
|
+
top: -3px;
|
227
|
+
margin-right: 2px;
|
228
|
+
}
|
229
|
+
|
222
230
|
.gem-c-one-login-header__logotype-crown-fallback-image {
|
223
231
|
width: 36px;
|
224
232
|
height: 32px;
|
@@ -934,6 +934,13 @@ $after-button-padding-left: govuk-spacing(4);
|
|
934
934
|
}
|
935
935
|
}
|
936
936
|
|
937
|
+
// The large menu bar is used on the homepage with no GOV.UK text
|
938
|
+
// Resetting top back to 0 ensure the crown logo is aligned with
|
939
|
+
// the navigation items in the header
|
940
|
+
.gem-c-layout-super-navigation-header__logotype-crown--large-navbar[width="32"] {
|
941
|
+
top: 0;
|
942
|
+
}
|
943
|
+
|
937
944
|
@include govuk-media-query($from: desktop) {
|
938
945
|
// can't use govuk-spacing here because the navbar height
|
939
946
|
// isn't a multiple of 5 :(
|
@@ -944,24 +951,25 @@ $after-button-padding-left: govuk-spacing(4);
|
|
944
951
|
}
|
945
952
|
|
946
953
|
.gem-c-layout-super-navigation-header__logotype-crown--large-navbar {
|
947
|
-
|
948
|
-
width:
|
954
|
+
width: auto;
|
955
|
+
max-width: 41px; // Fix for IE11
|
956
|
+
height: 38px;
|
949
957
|
}
|
950
958
|
|
951
959
|
.gem-c-header__link--large-navbar:focus {
|
952
960
|
box-shadow: 0 -6px 0 12px $govuk-focus-colour;
|
953
961
|
border-bottom: $govuk-focus-width solid govuk-colour("black");
|
954
|
-
padding-bottom:
|
962
|
+
padding-bottom: 13px;
|
955
963
|
}
|
956
964
|
|
957
965
|
.gem-c-header__link--large-navbar:hover {
|
958
|
-
padding-bottom:
|
966
|
+
padding-bottom: 13px;
|
959
967
|
}
|
960
968
|
|
961
969
|
.gem-c-layout-super-navigation-header__header-logo--large-navbar {
|
962
|
-
height:
|
963
|
-
padding-bottom:
|
964
|
-
padding-top:
|
970
|
+
height: 38px;
|
971
|
+
padding-bottom: 17px;
|
972
|
+
padding-top: 17px;
|
965
973
|
}
|
966
974
|
|
967
975
|
.gem-c-layout-super-navigation-header__search-toggle-button--large-navbar {
|
@@ -11,20 +11,29 @@
|
|
11
11
|
classes << "gem-c-document-list--no-top-border-first-child" if local_assigns[:remove_top_border_from_first_child]
|
12
12
|
classes << shared_helper.get_margin_bottom
|
13
13
|
|
14
|
-
within_multitype_list ||= false
|
15
|
-
within_multitype_list_class = " gem-c-document-list__multi-list" if within_multitype_list
|
16
14
|
title_with_context_class = " gem-c-document-list__item-title--context"
|
17
15
|
|
18
16
|
brand ||= false
|
19
17
|
brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand)
|
18
|
+
|
19
|
+
disable_ga4 ||= false
|
20
|
+
unless disable_ga4
|
21
|
+
ga4_extra_data ||= {}
|
22
|
+
ga4_ul_attributes = {
|
23
|
+
module: "ga4-link-tracker",
|
24
|
+
ga4_track_links_only: "",
|
25
|
+
ga4_link: {
|
26
|
+
"event_name": "navigation",
|
27
|
+
"type": "document list",
|
28
|
+
}.merge(ga4_extra_data)
|
29
|
+
}
|
30
|
+
end
|
20
31
|
%>
|
21
32
|
<% if items.any? %>
|
22
|
-
|
23
|
-
<ul class="<%= classes.join(" ") %>">
|
24
|
-
<% end %>
|
33
|
+
<%= tag.ul(class: classes.join(" "), data: ga4_ul_attributes) do %>
|
25
34
|
<% items.each do |item| %>
|
26
35
|
<% highlight_class = " gem-c-document-list__item--highlight" if item[:highlight] %>
|
27
|
-
<li class="gem-c-document-list__item
|
36
|
+
<li class="gem-c-document-list__item <%= brand_helper.brand_class %> <%= highlight_class %>">
|
28
37
|
<% if item[:highlight] && item[:highlight_text] %>
|
29
38
|
<p class='gem-c-document-list__highlight-text'><%= item[:highlight_text] %></p>
|
30
39
|
<% end %>
|
@@ -127,7 +136,5 @@
|
|
127
136
|
<% end %>
|
128
137
|
</li>
|
129
138
|
<% end %>
|
130
|
-
<% unless within_multitype_list %>
|
131
|
-
</ul>
|
132
139
|
<% end %>
|
133
140
|
<% end %>
|
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
@@ -126,13 +126,13 @@
|
|
126
126
|
},
|
127
127
|
class: logotype_classes,
|
128
128
|
height: "30",
|
129
|
-
width: "
|
129
|
+
width: "32",
|
130
130
|
focusable: "false",
|
131
|
-
viewBox: "0 0
|
131
|
+
viewBox: "0 0 32 30",
|
132
132
|
xmlns: "http://www.w3.org/2000/svg",
|
133
133
|
}) do %>
|
134
134
|
<path
|
135
|
-
d="
|
135
|
+
d="M22.6 10.4c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m-5.9 6.7c-.9.4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m10.8-3.7c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s0 2-1 2.4m3.3 4.8c-1 .4-2-.1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.2-5.5-1.5 2-1.3 3.7.6 5.6-1.2-.7-3.1 0-2 2.3.6-1.4 1.8-1.1 2.1.1.2.9-.3 1.9-1.5 2.1-.9.2-2.4-.5-3.5-3 .6 0 1.2.3 2 .9l-1.2-4c-.3 1.1-.7 1.9-1.1 2.3-.3-.8-.2-1.4 0-2.7l-2.9.9C1.3 23 2.6 25.5 3.7 30c3.7-.5 7.9-.8 12.3-.8"
|
136
136
|
fill="currentColor"
|
137
137
|
fill-rule="evenodd"
|
138
138
|
>
|
@@ -140,7 +140,7 @@
|
|
140
140
|
<% end %>
|
141
141
|
<!--<![endif]-->
|
142
142
|
<!--[if IE 8]>
|
143
|
-
<img src="<%= asset_path('govuk-logotype-crown.png') %>" alt="" class="govuk-header__logotype-crown-fallback-image" width="
|
143
|
+
<img src="<%= asset_path('govuk-logotype-tudor-crown.png') %>" alt="" class="govuk-header__logotype-crown-fallback-image" width="32" height="30">
|
144
144
|
<![endif]-->
|
145
145
|
<% unless hide_logo_text %>
|
146
146
|
<span class="govuk-header__logotype-text">
|
@@ -13,10 +13,11 @@
|
|
13
13
|
<%= tag.div class: "gem-c-modal-dialogue__overlay" %>
|
14
14
|
<%= tag.dialog class: dialog_classes, data: data_attributes, aria: { modal: true, label: aria_label }, role: "dialog", tabindex: 0 do %>
|
15
15
|
<%= tag.div class: "gem-c-modal-dialogue__header" do %>
|
16
|
-
<svg aria-hidden="true" focusable="false" class="gem-c-modal-dialogue__logotype-crown" xmlns="http://www.w3.org/2000/svg" viewbox="0 0
|
17
|
-
<path
|
18
|
-
|
19
|
-
|
16
|
+
<svg aria-hidden="true" focusable="false" class="gem-c-modal-dialogue__logotype-crown" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 32 30" height="30" width="32">
|
17
|
+
<path
|
18
|
+
fill="currentColor" fill-rule="evenodd"
|
19
|
+
d="M22.6 10.4c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m-5.9 6.7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3c-1.1 0-2.1-.2-3.2-1.4l.4 4.3c1-1.4 2.2-2 2.9-1.9-.1 1.5-.2 3.4-2.9 3.6-1.9.2-3.4-.8-3.5-1.9-.2-1.3 1-2.2 1.9-.8.7-2.3-1.2-3-2.5-1.6.9-2.2.9-3.9-1.2-5.5-1.5 2-1.3 3.7.6 5.6-1.2-.7-3.1 0-2 2.3.6-1.4 1.8-1.1 2.1.1.2.9-.3 1.9-1.5 2.1-.9.2-2.4-.5-3.5-3 .6 0 1.2.3 2 .9l-1.2-4c-.3 1.1-.7 1.9-1.1 2.3-.3-.8-.2-1.4 0-2.7l-2.9.9C1.3 23 2.6 25.5 3.7 30c3.7-.5 7.9-.8 12.3-.8"></path>
|
20
|
+
<image src="<%= asset_path('govuk-logotype-tudor-crown.png') %>" class="gem-c-modal-dialogue__logotype-crown-fallback-image"></image>
|
20
21
|
</svg>
|
21
22
|
<% end %>
|
22
23
|
<%= tag.div yield, class: "gem-c-modal-dialogue__content" %>
|
@@ -25,9 +25,28 @@
|
|
25
25
|
aria_attributes[:labelledby] = banner_title_id if show_banner_title
|
26
26
|
|
27
27
|
description_present = description.present? || description_text.present? || description_govspeak.present?
|
28
|
+
disable_ga4 ||= false
|
29
|
+
|
30
|
+
if description_govspeak
|
31
|
+
govspeak_data_attributes = {
|
32
|
+
content: description_govspeak,
|
33
|
+
disable_ga4: true # Keep the govspeak component GA4 tracking disabled, otherwise tracking will be duplicated when tracking is enabled on this component.
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
unless disable_ga4
|
38
|
+
section_data_attributes = {
|
39
|
+
module: "ga4-link-tracker",
|
40
|
+
ga4_track_links_only: "",
|
41
|
+
ga4_link: {
|
42
|
+
event_name: "navigation",
|
43
|
+
type: "callout"
|
44
|
+
}.to_json
|
45
|
+
}
|
46
|
+
end
|
28
47
|
%>
|
29
48
|
<% if title || description_present %>
|
30
|
-
<%= tag.section class: css_classes, aria: aria_attributes, lang: lang, role: "region" do %>
|
49
|
+
<%= tag.section class: css_classes, aria: aria_attributes, lang: lang, role: "region", data: section_data_attributes do %>
|
31
50
|
<%= tag.div class: "govuk-notification-banner__header" do %>
|
32
51
|
<%= tag.h2 banner_title, class: "govuk-notification-banner__title", id: banner_title_id %>
|
33
52
|
<% end if show_banner_title %>
|
@@ -37,8 +56,9 @@
|
|
37
56
|
<%= tag.p description_text, class: "gem-c-notice__description" if description_text %>
|
38
57
|
|
39
58
|
<%= description if description %>
|
40
|
-
|
41
|
-
|
59
|
+
<% if govspeak_data_attributes %>
|
60
|
+
<%= render 'govuk_publishing_components/components/govspeak', govspeak_data_attributes %>
|
61
|
+
<% end %>
|
42
62
|
<% end %>
|
43
63
|
<% end %>
|
44
64
|
<% end %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
title ||= false
|
6
6
|
track_as_sharing ||= false
|
7
7
|
track_as_follow ||= false
|
8
|
-
|
8
|
+
ga4_extra_data ||= {}
|
9
9
|
stacked ||= false
|
10
10
|
columns ||= false
|
11
11
|
|
@@ -58,7 +58,7 @@
|
|
58
58
|
'index_link': index + 1,
|
59
59
|
'index_total': links.length,
|
60
60
|
'text': link[:icon],
|
61
|
-
}.merge(
|
61
|
+
}.merge(ga4_extra_data)
|
62
62
|
end
|
63
63
|
if track_as_follow
|
64
64
|
ga4_link_data = {
|
@@ -66,7 +66,7 @@
|
|
66
66
|
'type': 'follow us',
|
67
67
|
'index_link': index + 1,
|
68
68
|
'index_total': links.length,
|
69
|
-
}.merge(
|
69
|
+
}.merge(ga4_extra_data)
|
70
70
|
end
|
71
71
|
%>
|
72
72
|
<%
|
@@ -7,8 +7,9 @@
|
|
7
7
|
<a href="https://www.gov.uk/" class="gem-c-one-login-header__link gem-c-one-login-header__link--homepage">
|
8
8
|
<span class="gem-c-one-login-header__logotype">
|
9
9
|
<!--[if gt IE 8]><!-->
|
10
|
-
<svg aria-hidden="true" focusable="false" class="gem-c-one-login-header__logotype-crown" xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
11
|
-
<path fill="currentColor" fill-rule="evenodd"
|
10
|
+
<svg aria-hidden="true" focusable="false" class="gem-c-one-login-header__logotype-crown" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 30" height="30" width="32">
|
11
|
+
<path fill="currentColor" fill-rule="evenodd"
|
12
|
+
d="M22.6 10.4c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m-5.9 6.7c-.9.4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m10.8-3.7c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s0 2-1 2.4m3.3 4.8c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4M17 4.7l2.3 1.2V2.5l-2.3.7-.2-.2.9-3h-3.4l.9 3-.2.2c-.1.1-2.3-.7-2.3-.7v3.4L15 4.7c.1.1.1.2.2.2l-1.3 4c-.1.2-.1.4-.1.6 0 1.1.8 2 1.9 2.2h.7c1-.2 1.9-1.1 1.9-2.1 0-.2 0-.4-.1-.6l-1.3-4c-.1-.2 0-.2.1-.3m-7.6 5.7c.9.4 2-.1 2.4-1 .4-.9-.1-2-1-2.4-.9-.4-2 .1-2.4 1s0 2 1 2.4m-5 3c.9.4 2-.1 2.4-1 .4-.9-.1-2-1-2.4-.9-.4-2 .1-2.4 1s.1 2 1 2.4m-3.2 4.8c.9.4 2-.1 2.4-1 .4-.9-.1-2-1-2.4-.9-.4-2 .1-2.4 1s0 2 1 2.4m14.8 11c4.4 0 8.6.3 12.3.8 1.1-4.5 2.4-7 3.7-8.8l-2.5-.9c.2 1.3.3 1.9 0 2.7-.4-.4-.8-1.1-1.1-2.3l-1.2 4c.7-.5 1.3-.8 2-.9-1.1 2.5-2.6 3.1-3.5 3-1.1-.2-1.7-1.2-1.5-2.1.3-1.2 1.5-1.5 2.1-.1 1.1-2.3-.8-3-2-2.3 1.9-1.9 2.1-3.5.6-5.6-2.1 1.6-2.1 3.2-1.2 5.5-1.2-1.4-3.2-.6-2.5 1.6.9-1.4 2.1-.5 1.9.8-.2 1.1-1.7 2.1-3.5 1.9-2.7-.2-2.9-2.1-2.9-3.6.7-.1 1.9.5 2.9 1.9l.4-4.3c-1.1 1.1-2.1 1.4-3.2 1.4.4-1.2 2.1-3 2.1-3h-5.4s1.7 1.9 2.1 3c-1.1 0-2.1-.2-3.2-1.4l.4 4.3c1-1.4 2.2-2 2.9-1.9-.1 1.5-.2 3.4-2.9 3.6-1.9.2-3.4-.8-3.5-1.9-.2-1.3 1-2.2 1.9-.8.7-2.3-1.2-3-2.5-1.6.9-2.2.9-3.9-1.2-5.5-1.5 2-1.3 3.7.6 5.6-1.2-.7-3.1 0-2 2.3.6-1.4 1.8-1.1 2.1.1.2.9-.3 1.9-1.5 2.1-.9.2-2.4-.5-3.5-3 .6 0 1.2.3 2 .9l-1.2-4c-.3 1.1-.7 1.9-1.1 2.3-.3-.8-.2-1.4 0-2.7l-2.9.9C1.3 23 2.6 25.5 3.7 30c3.7-.5 7.9-.8 12.3-.8"></path>
|
12
13
|
</svg>
|
13
14
|
<!--<![endif]-->
|
14
15
|
<span>
|
@@ -73,7 +73,7 @@ examples:
|
|
73
73
|
public_updated_at: 2016-09-05 16:48:27
|
74
74
|
document_type: 'Statutory guidance'
|
75
75
|
with_data_attributes_on_links:
|
76
|
-
description: Note that the component does not include built in tracking. If this is required consider using the [track click script](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics/track-click.md).
|
76
|
+
description: Note that the component does not include built in Universal Analytics tracking. If this is required consider using the [track click script](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics/track-click.md).
|
77
77
|
data:
|
78
78
|
items:
|
79
79
|
- link:
|
@@ -356,3 +356,26 @@ examples:
|
|
356
356
|
path: 'https://www.actionfraud.police.uk/contact-us'
|
357
357
|
rel: 'external'
|
358
358
|
description: "Contact Action Fraud to report fraud and cyber crime, or to tell them you've been the victim of a scam."
|
359
|
+
with_extra_ga4_data:
|
360
|
+
description: |
|
361
|
+
Allows you to add extra GA4 link tracker attributes, or overwrite the existing ones on the links. See the
|
362
|
+
[ga4-link-tracker documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
|
363
|
+
data:
|
364
|
+
ga4_extra_data:
|
365
|
+
hello: 'world'
|
366
|
+
items:
|
367
|
+
- link:
|
368
|
+
text: 'Test link'
|
369
|
+
path: 'https://www.gov.uk'
|
370
|
+
description: "GOV.UK link"
|
371
|
+
without_ga4_tracking:
|
372
|
+
description: |
|
373
|
+
Disables GA4 tracking. Tracking is enabled by default. See the
|
374
|
+
[ga4-link-tracker documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
|
375
|
+
data:
|
376
|
+
disable_ga4: true
|
377
|
+
items:
|
378
|
+
- link:
|
379
|
+
text: 'Test link'
|
380
|
+
path: 'https://www.gov.uk'
|
381
|
+
description: "GOV.UK link"
|
@@ -65,3 +65,13 @@ examples:
|
|
65
65
|
description_govspeak: <p>This document is no longer current. We published a new version on 30 September 2015.</p>
|
66
66
|
show_banner_title: true
|
67
67
|
banner_title: "Information"
|
68
|
+
with_ga4_tracking_disabled:
|
69
|
+
description: |
|
70
|
+
Disables GA4 tracking on the component. Tracking on the component is enabled by default. Tracking on the nested govspeak component is always disabled to prevent duplication. When tracking is enabled on this component, a data module and data attributes are added to the parent element. See the [ga4-link-tracker documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
|
71
|
+
data:
|
72
|
+
disable_ga4: true
|
73
|
+
title: 'This publication was withdrawn on 30 September 2015'
|
74
|
+
description_govspeak: <p>This document is no longer current. We published a new version on 30 September 2015.</p>
|
75
|
+
show_banner_title: true
|
76
|
+
banner_title: "Information"
|
77
|
+
|
@@ -111,10 +111,10 @@ examples:
|
|
111
111
|
Where the component is used to allow users to share content on social media, tracking can be added that uses [Social Interactions](https://developers.google.com/analytics/devguides/collection/analyticsjs/social-interactions) in UA.
|
112
112
|
If this option is not included, it is assumed the component is simply linking to social media pages and the extra options are omitted from the tracking call in UA.
|
113
113
|
In GA4, when this is set to true, a JSON is added to a data-attribute called data-ga4-link, which is detected by ga4-link-tracker.js and pushed to the dataLayer.
|
114
|
-
Most of the tracking values are added by default, but if you need to add more GA4 values or override defaults, you can pass a
|
114
|
+
Most of the tracking values are added by default, but if you need to add more GA4 values or override defaults, you can pass a ga4_extra_data object.
|
115
115
|
data:
|
116
116
|
track_as_sharing: true
|
117
|
-
|
117
|
+
ga4_extra_data: {
|
118
118
|
optional_extra_values: "go here"
|
119
119
|
}
|
120
120
|
links: [
|
@@ -133,10 +133,10 @@ examples:
|
|
133
133
|
description: |
|
134
134
|
Where the component is used to allow users to follow us on social media, tracking can be added.
|
135
135
|
When this is set to true, a JSON is added to a data-attribute called data-ga4-link, which is detected by ga4-link-tracker.js and pushed to the dataLayer.
|
136
|
-
Most of the tracking values are added by default, but if you need to add more GA4 values or override defaults, you can pass a
|
136
|
+
Most of the tracking values are added by default, but if you need to add more GA4 values or override defaults, you can pass a ga4_extra_data object.
|
137
137
|
data:
|
138
138
|
track_as_follow: true
|
139
|
-
|
139
|
+
ga4_extra_data: {
|
140
140
|
optional_extra_values: "go here"
|
141
141
|
}
|
142
142
|
links: [
|
@@ -2,12 +2,14 @@
|
|
2
2
|
<a href="<%= logo_link %>" class="govuk-header__link govuk-header__link--homepage" data-module="gem-track-click" data-track-category="homeLinkClicked" data-track-action="homeHeader">
|
3
3
|
<span class="govuk-header__logotype gem-c-header__logotype header-logo">
|
4
4
|
<!--[if gt IE 8]><!-->
|
5
|
-
<svg aria-hidden="true" focusable="false" class="govuk-header__logotype-crown" xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
6
|
-
<path
|
5
|
+
<svg aria-hidden="true" focusable="false" class="govuk-header__log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-1.2-1.4-3.2-.6-2.5 1.6.9-1.4 2.1-.5 1.9.8-.2 1.1-1.7 2.1-3.5 1.9-2.7-.2-2.9-2.1-2.9-3.6.7-.1 1.9.5 2.9 1.9l.4-4.3c-1.1 1.1-2.1 1.4-3.2 1.4.4-1.2 2.1-3 2.1-3h-5.4s1.7 1.9 2.1 3c-1.1 0-2.1-.2-3.2-1.4l.4 4.3c1-1.4 2.2-2 2.9-1.9-.1 1.5-.2 3.4-2.9 3.6-1.9.2-3.4-.8-3.5-1.9-.2-1.3 1-2.2 1.9-.8.7-2.3-1.2-3-2.5-1.6.9-2.2.9-3.9-1.2-5.5-1.5 2-1.3 3.7.6 5.6-1.2-.7-3.1 0-2 2.3.6-1.4 1.8-1.1 2.1.1.2.9-.3 1.9-1.5 2.1-.9.2-2.4-.5-3.5-3 .6 0 1.2.3 2 .9l-1.2-4c-.3 1.1-.7 1.9-1.1 2.3-.3-.8-.2-1.4 0-2.7l-2.9.9C1.3 23 2.6 25.5 3.7 30c3.7-.5 7.9-.8 12.3-.8"></path>
|
7
9
|
</svg>
|
8
10
|
<!--<![endif]-->
|
9
11
|
<!--[if IE 8]>
|
10
|
-
<img src="<%= asset_path('govuk-logotype-crown.png') %>" alt="" class="govuk-header__logotype-crown-fallback-image" width="
|
12
|
+
<img src="<%= asset_path('govuk-logotype-tudor-crown.png') %>" alt="" class="govuk-header__logotype-crown-fallback-image" width="32" height="30">
|
11
13
|
<![endif]-->
|
12
14
|
<span class="govuk-header__logotype-text">
|
13
15
|
GOV.UK
|
@@ -45,7 +45,7 @@ module GovukPublishingComponents
|
|
45
45
|
step_by_step: false,
|
46
46
|
breadcrumbs: navigation.taxon_breadcrumbs,
|
47
47
|
}
|
48
|
-
elsif navigation.
|
48
|
+
elsif navigation.content_parent_is_mainstream_browse?
|
49
49
|
{
|
50
50
|
step_by_step: false,
|
51
51
|
breadcrumbs: navigation.breadcrumbs,
|
@@ -68,6 +68,10 @@ module GovukPublishingComponents
|
|
68
68
|
content_item.dig("links", "mainstream_browse_pages").present?
|
69
69
|
end
|
70
70
|
|
71
|
+
def content_parent_is_mainstream_browse?
|
72
|
+
content_item.dig("links", "parent").present? && content_item.dig("links", "parent", 0, "document_type") == "mainstream_browse_page"
|
73
|
+
end
|
74
|
+
|
71
75
|
def content_has_curated_related_items?
|
72
76
|
content_item.dig("links", "ordered_related_items").present? && content_item.dig("links", "parent").present?
|
73
77
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/govuk/_base.scss"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,mBAAmB;AACnB,qBAAqB","file":"_base.scss","sourcesContent":["@import \"settings/all\";\n@import \"tools/all\";\n@import \"helpers/all\";\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/govuk/all-ie8.scss"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,oEAAoE;AACpE;;;;CAIC;;AAED,8EAA8E;AAC9E,qEAAqE;AACrE,4BAA4B;AAC5B,mBAAmB;;AAEnB,aAAa","file":"all-ie8.scss","sourcesContent":["// Ignore IE8 related warnings whilst we continue to generate IE8 specific\n// stylesheets for the review app or dist versions of GOV.UK Frontend\n$govuk-suppressed-warnings: if(\n variable-exists(govuk-suppressed-warnings),\n append($govuk-suppressed-warnings, \"ie8\"),\n (\"ie8\")\n);\n\n// By setting $govuk-is-ie8 to true, we create a version of the stylesheet that\n// targets IE8 – e.g. conditionally including or excluding styles, and\n// rasterizing media queries.\n$govuk-is-ie8: true;\n\n@import \"all\";\n"]}
|