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,8 +1,44 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components/tag
|
|
3
|
+
////
|
|
4
|
+
|
|
5
|
+
/// Get tag text colour
|
|
6
|
+
/// Almost all tags should use the 50% shade of their colour for their text
|
|
7
|
+
///
|
|
8
|
+
/// @param {String} $colour - name of colour from the colour palette
|
|
9
|
+
/// @return {Colour} Representation of the named colour for use in tags
|
|
10
|
+
/// @access private
|
|
11
|
+
@function _govuk-tag-text-colour($colour) {
|
|
12
|
+
@return govuk-colour($colour, $variant: "shade-50");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/// Get tag background colour
|
|
16
|
+
/// Almost all tags should use the 80% tint of their colour for their background
|
|
17
|
+
///
|
|
18
|
+
/// @param {String} $colour - name of colour from the colour palette
|
|
19
|
+
/// @return {Colour} Representation of the named colour for use in tags
|
|
20
|
+
/// @access private
|
|
21
|
+
@function _govuk-tag-background-colour($colour) {
|
|
22
|
+
@return govuk-colour($colour, $variant: "tint-80");
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/// Generate colour CSS for tag and tag modifiers
|
|
26
|
+
/// Applies standard rules from the tag colour functions
|
|
27
|
+
///
|
|
28
|
+
/// @param {String} $colour - name of colour from the colour palette
|
|
29
|
+
/// @access private
|
|
30
|
+
@mixin _govuk-tag-colours($colour) {
|
|
31
|
+
color: _govuk-tag-text-colour($colour);
|
|
32
|
+
background-color: _govuk-tag-background-colour($colour);
|
|
33
|
+
}
|
|
34
|
+
|
|
1
35
|
@include govuk-exports("govuk/component/tag") {
|
|
2
36
|
$govuk-tag-max-width: if(map-has-key($govuk-breakpoints, "mobile"), map-get($govuk-breakpoints, "mobile") / 2, 160px);
|
|
3
37
|
|
|
4
38
|
.govuk-tag {
|
|
5
39
|
@include govuk-font($size: 19);
|
|
40
|
+
// Default tag colour is blue
|
|
41
|
+
@include _govuk-tag-colours("blue");
|
|
6
42
|
|
|
7
43
|
display: inline-block;
|
|
8
44
|
|
|
@@ -25,8 +61,8 @@
|
|
|
25
61
|
padding-right: 8px;
|
|
26
62
|
padding-bottom: 3px;
|
|
27
63
|
padding-left: 8px;
|
|
28
|
-
|
|
29
|
-
|
|
64
|
+
|
|
65
|
+
border-radius: 1px;
|
|
30
66
|
text-decoration: none;
|
|
31
67
|
overflow-wrap: break-word;
|
|
32
68
|
|
|
@@ -43,54 +79,53 @@
|
|
|
43
79
|
}
|
|
44
80
|
}
|
|
45
81
|
|
|
46
|
-
.
|
|
47
|
-
|
|
48
|
-
|
|
82
|
+
// Tag colour modifiers. Use the _govuk-tag-colours mixin to define consistent
|
|
83
|
+
// colour rules per modifier
|
|
84
|
+
.govuk-tag--green {
|
|
85
|
+
@include _govuk-tag-colours("green");
|
|
49
86
|
}
|
|
50
87
|
|
|
51
88
|
.govuk-tag--purple {
|
|
52
|
-
|
|
53
|
-
background-color: govuk-tint(govuk-colour("bright-purple"), 85%);
|
|
89
|
+
@include _govuk-tag-colours("purple");
|
|
54
90
|
}
|
|
55
91
|
|
|
56
|
-
.govuk-tag--
|
|
57
|
-
|
|
58
|
-
background-color: govuk-tint(govuk-colour("turquoise"), 80%);
|
|
92
|
+
.govuk-tag--red {
|
|
93
|
+
@include _govuk-tag-colours("red");
|
|
59
94
|
}
|
|
60
95
|
|
|
61
|
-
.govuk-tag--
|
|
62
|
-
|
|
63
|
-
background-color: govuk-tint(govuk-colour("blue"), 70%);
|
|
96
|
+
.govuk-tag--orange {
|
|
97
|
+
@include _govuk-tag-colours("orange");
|
|
64
98
|
}
|
|
65
99
|
|
|
66
|
-
.govuk-tag--
|
|
67
|
-
|
|
68
|
-
background-color: govuk-tint(govuk-colour("blue"), 90%);
|
|
100
|
+
.govuk-tag--teal {
|
|
101
|
+
@include _govuk-tag-colours("teal");
|
|
69
102
|
}
|
|
70
103
|
|
|
71
|
-
.govuk-tag--
|
|
72
|
-
|
|
73
|
-
background-color: govuk-tint(govuk-colour("yellow"), 75%);
|
|
104
|
+
.govuk-tag--magenta {
|
|
105
|
+
@include _govuk-tag-colours("magenta");
|
|
74
106
|
}
|
|
75
107
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
108
|
+
// Yellow uses different colours to ensure it's legible
|
|
109
|
+
.govuk-tag--yellow {
|
|
110
|
+
color: govuk-colour("orange", $variant: "shade-50");
|
|
111
|
+
background-color: govuk-colour("yellow", $variant: "tint-50");
|
|
79
112
|
}
|
|
80
113
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
114
|
+
// Grey uses different colours to ensure it's legible
|
|
115
|
+
.govuk-tag--grey {
|
|
116
|
+
color: govuk-colour("black");
|
|
117
|
+
background-color: govuk-colour("black", $variant: "tint-80");
|
|
84
118
|
}
|
|
85
119
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
120
|
+
// Turquoise and pink are deprecated over teal and magenta respectively
|
|
121
|
+
// @deprecated
|
|
122
|
+
.govuk-tag--turquoise {
|
|
123
|
+
@include _govuk-tag-colours("teal");
|
|
89
124
|
}
|
|
90
125
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
126
|
+
// @deprecated
|
|
127
|
+
.govuk-tag--pink {
|
|
128
|
+
@include _govuk-tag-colours("magenta");
|
|
94
129
|
}
|
|
95
130
|
}
|
|
96
131
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/tag/_index.scss"],"names":[],"mappings":"AAAA;EACE,qHAAqH;;EAErH;IACE,8BAA8B;;
|
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/tag/_index.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,wBAAwB;AACxB,GAAG;;AAEH,sBAAsB;AACtB,0EAA0E;AAC1E,EAAE;AACF,mEAAmE;AACnE,sEAAsE;AACtE,kBAAkB;AAClB;EACE,mDAAmD;AACrD;;AAEA,4BAA4B;AAC5B,+EAA+E;AAC/E,EAAE;AACF,mEAAmE;AACnE,sEAAsE;AACtE,kBAAkB;AAClB;EACE,kDAAkD;AACpD;;AAEA,gDAAgD;AAChD,uDAAuD;AACvD,EAAE;AACF,mEAAmE;AACnE,kBAAkB;AAClB;EACE,sCAAsC;EACtC,uDAAuD;AACzD;;AAEA;EACE,qHAAqH;;EAErH;IACE,8BAA8B;IAC9B,4BAA4B;IAC5B,mCAAmC;;IAEnC,qBAAqB;;IAErB,0EAA0E;IAC1E,uEAAuE;IACvE,0EAA0E;IAC1E,wBAAwB;IACxB,+BAA+B;;IAE/B,0EAA0E;IAC1E,2EAA2E;IAC3E,sDAAsD;IACtD,CAAC;IACD,2EAA2E;IAC3E,QAAQ;IACR,gBAAgB;IAChB,mBAAmB;;IAEnB,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,iBAAiB;;IAEjB,kBAAkB;IAClB,qBAAqB;IACrB,yBAAyB;;IAEzB,0EAA0E;IAC1E,0EAA0E;IAC1E,yEAAyE;IACzE,eAAe;IACf,CAAC;IACD,qEAAqE;IACrE,yEAAyE;IACzE,WAAW;IACX;MACE,iBAAiB;IACnB;EACF;;EAEA,6EAA6E;EAC7E,2BAA2B;EAC3B;IACE,oCAAoC;EACtC;;EAEA;IACE,qCAAqC;EACvC;;EAEA;IACE,kCAAkC;EACpC;;EAEA;IACE,qCAAqC;EACvC;;EAEA;IACE,mCAAmC;EACrC;;EAEA;IACE,sCAAsC;EACxC;;EAEA,sDAAsD;EACtD;IACE,mDAAmD;IACnD,6DAA6D;EAC/D;;EAEA,oDAAoD;EACpD;IACE,4BAA4B;IAC5B,4DAA4D;EAC9D;;EAEA,sEAAsE;EACtE,aAAa;EACb;IACE,mCAAmC;EACrC;;EAEA,aAAa;EACb;IACE,sCAAsC;EACxC;AACF","file":"_index.scss","sourcesContent":["////\n/// @group components/tag\n////\n\n/// Get tag text colour\n/// Almost all tags should use the 50% shade of their colour for their text\n///\n/// @param {String} $colour - name of colour from the colour palette\n/// @return {Colour} Representation of the named colour for use in tags\n/// @access private\n@function _govuk-tag-text-colour($colour) {\n @return govuk-colour($colour, $variant: \"shade-50\");\n}\n\n/// Get tag background colour\n/// Almost all tags should use the 80% tint of their colour for their background\n///\n/// @param {String} $colour - name of colour from the colour palette\n/// @return {Colour} Representation of the named colour for use in tags\n/// @access private\n@function _govuk-tag-background-colour($colour) {\n @return govuk-colour($colour, $variant: \"tint-80\");\n}\n\n/// Generate colour CSS for tag and tag modifiers\n/// Applies standard rules from the tag colour functions\n///\n/// @param {String} $colour - name of colour from the colour palette\n/// @access private\n@mixin _govuk-tag-colours($colour) {\n color: _govuk-tag-text-colour($colour);\n background-color: _govuk-tag-background-colour($colour);\n}\n\n@include govuk-exports(\"govuk/component/tag\") {\n $govuk-tag-max-width: if(map-has-key($govuk-breakpoints, \"mobile\"), map-get($govuk-breakpoints, \"mobile\") / 2, 160px);\n\n .govuk-tag {\n @include govuk-font($size: 19);\n // Default tag colour is blue\n @include _govuk-tag-colours(\"blue\");\n\n display: inline-block;\n\n // set a max-width along with overflow-wrap: break-word below for instances\n // where a tag has a single long word and could overflow its boundaries.\n // The max-width is necessary as break-word requires a bounding box to base\n // where to break off of.\n max-width: $govuk-tag-max-width;\n\n // These negative margins make sure that the tag component doesn’t increase\n // the size of its container. Otherwise, for example, a table row containing\n // a tag will be taller than one containing plain text.\n //\n // The negative margin added to the top and bottom matches the extra padding\n // added.\n margin-top: -2px;\n margin-bottom: -3px;\n\n padding-top: 2px;\n padding-right: 8px;\n padding-bottom: 3px;\n padding-left: 8px;\n\n border-radius: 1px;\n text-decoration: none;\n overflow-wrap: break-word;\n\n // When forced colour mode is active, for example to provide high contrast,\n // the background colour of the tag is the same as the rest of the page. To\n // ensure that the tag is perceived as separate from any surround text, it\n // is made bold.\n //\n // Transparent outlines are no longer added, as they make the Tag look\n // indistinguishable from a button – but the tag is not interactive in the\n // same way.\n @media screen and (forced-colors: active) {\n font-weight: bold;\n }\n }\n\n // Tag colour modifiers. Use the _govuk-tag-colours mixin to define consistent\n // colour rules per modifier\n .govuk-tag--green {\n @include _govuk-tag-colours(\"green\");\n }\n\n .govuk-tag--purple {\n @include _govuk-tag-colours(\"purple\");\n }\n\n .govuk-tag--red {\n @include _govuk-tag-colours(\"red\");\n }\n\n .govuk-tag--orange {\n @include _govuk-tag-colours(\"orange\");\n }\n\n .govuk-tag--teal {\n @include _govuk-tag-colours(\"teal\");\n }\n\n .govuk-tag--magenta {\n @include _govuk-tag-colours(\"magenta\");\n }\n\n // Yellow uses different colours to ensure it's legible\n .govuk-tag--yellow {\n color: govuk-colour(\"orange\", $variant: \"shade-50\");\n background-color: govuk-colour(\"yellow\", $variant: \"tint-50\");\n }\n\n // Grey uses different colours to ensure it's legible\n .govuk-tag--grey {\n color: govuk-colour(\"black\");\n background-color: govuk-colour(\"black\", $variant: \"tint-80\");\n }\n\n // Turquoise and pink are deprecated over teal and magenta respectively\n // @deprecated\n .govuk-tag--turquoise {\n @include _govuk-tag-colours(\"teal\");\n }\n\n // @deprecated\n .govuk-tag--pink {\n @include _govuk-tag-colours(\"magenta\");\n }\n}\n"]}
|
|
@@ -24,29 +24,17 @@
|
|
|
24
24
|
"screenshot": false,
|
|
25
25
|
"html": "<strong class=\"govuk-tag govuk-tag--grey\">\n Grey\n</strong>"
|
|
26
26
|
},
|
|
27
|
-
{
|
|
28
|
-
"name": "light blue",
|
|
29
|
-
"options": {
|
|
30
|
-
"text": "Light blue",
|
|
31
|
-
"classes": "govuk-tag--light-blue"
|
|
32
|
-
},
|
|
33
|
-
"hidden": false,
|
|
34
|
-
"description": "",
|
|
35
|
-
"pageTemplateOptions": {},
|
|
36
|
-
"screenshot": false,
|
|
37
|
-
"html": "<strong class=\"govuk-tag govuk-tag--light-blue\">\n Light blue\n</strong>"
|
|
38
|
-
},
|
|
39
27
|
{
|
|
40
28
|
"name": "turquoise",
|
|
41
29
|
"options": {
|
|
42
|
-
"text": "
|
|
43
|
-
"classes": "govuk-tag--
|
|
30
|
+
"text": "Teal",
|
|
31
|
+
"classes": "govuk-tag--teal"
|
|
44
32
|
},
|
|
45
33
|
"hidden": false,
|
|
46
34
|
"description": "",
|
|
47
35
|
"pageTemplateOptions": {},
|
|
48
36
|
"screenshot": false,
|
|
49
|
-
"html": "<strong class=\"govuk-tag govuk-tag--
|
|
37
|
+
"html": "<strong class=\"govuk-tag govuk-tag--teal\">\n Teal\n</strong>"
|
|
50
38
|
},
|
|
51
39
|
{
|
|
52
40
|
"name": "green",
|
|
@@ -75,14 +63,14 @@
|
|
|
75
63
|
{
|
|
76
64
|
"name": "pink",
|
|
77
65
|
"options": {
|
|
78
|
-
"text": "
|
|
79
|
-
"classes": "govuk-tag--
|
|
66
|
+
"text": "Magenta",
|
|
67
|
+
"classes": "govuk-tag--magenta"
|
|
80
68
|
},
|
|
81
69
|
"hidden": false,
|
|
82
70
|
"description": "",
|
|
83
71
|
"pageTemplateOptions": {},
|
|
84
72
|
"screenshot": false,
|
|
85
|
-
"html": "<strong class=\"govuk-tag govuk-tag--
|
|
73
|
+
"html": "<strong class=\"govuk-tag govuk-tag--magenta\">\n Magenta\n</strong>"
|
|
86
74
|
},
|
|
87
75
|
{
|
|
88
76
|
"name": "red",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<strong class="govuk-tag govuk-tag--
|
|
2
|
-
|
|
1
|
+
<strong class="govuk-tag govuk-tag--magenta">
|
|
2
|
+
Magenta
|
|
3
3
|
</strong>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<strong class="govuk-tag govuk-tag--
|
|
2
|
-
|
|
1
|
+
<strong class="govuk-tag govuk-tag--teal">
|
|
2
|
+
Teal
|
|
3
3
|
</strong>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import "../tag/index";
|
|
2
2
|
|
|
3
3
|
@include govuk-exports("govuk/component/task-list") {
|
|
4
|
-
$govuk-task-list-hover-colour: govuk-colour("
|
|
4
|
+
$govuk-task-list-hover-colour: govuk-colour("black", $variant: "tint-95");
|
|
5
5
|
|
|
6
6
|
.govuk-task-list {
|
|
7
7
|
@include govuk-font($size: 19);
|
|
@@ -25,11 +25,13 @@
|
|
|
25
25
|
margin-bottom: 0;
|
|
26
26
|
padding-top: govuk-spacing(2);
|
|
27
27
|
padding-bottom: govuk-spacing(2);
|
|
28
|
-
border-bottom: 1px solid
|
|
28
|
+
border-bottom: 1px solid;
|
|
29
|
+
border-bottom-color: govuk-functional-colour(border);
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.govuk-task-list__item:first-child {
|
|
32
|
-
border-top: 1px solid
|
|
33
|
+
border-top: 1px solid;
|
|
34
|
+
border-top-color: govuk-functional-colour(border);
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
// This class is added to the <li> elements where the task name is a link. The
|
|
@@ -54,7 +56,7 @@
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
.govuk-task-list__status--cannot-start-yet {
|
|
57
|
-
color:
|
|
59
|
+
color: govuk-functional-colour(secondary-text);
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
// This adds an empty transparent box covering the whole row, including the
|
|
@@ -72,7 +74,7 @@
|
|
|
72
74
|
|
|
73
75
|
.govuk-task-list__hint {
|
|
74
76
|
margin-top: govuk-spacing(1);
|
|
75
|
-
color:
|
|
77
|
+
color: govuk-functional-colour(secondary-text);
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/task-list/_index.scss"],"names":[],"mappings":"AAAA,sBAAsB;;AAEtB;EACE,
|
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/task-list/_index.scss"],"names":[],"mappings":"AAAA,sBAAsB;;AAEtB;EACE,yEAAyE;;EAEzE;IACE,8BAA8B;IAC9B,aAAa;IACb,6CAA6C;IAC7C,UAAU;IACV,qBAAqB;EACvB;;EAEA,uEAAuE;EACvE,6EAA6E;EAC7E,4CAA4C;EAC5C,CAAC;EACD,oEAAoE;EACpE,4EAA4E;EAC5E,mBAAmB;EACnB;IACE,cAAc;IACd,kBAAkB;IAClB,WAAW;IACX,gBAAgB;IAChB,6BAA6B;IAC7B,gCAAgC;IAChC,wBAAwB;IACxB,oDAAoD;EACtD;;EAEA;IACE,qBAAqB;IACrB,iDAAiD;EACnD;;EAEA,6EAA6E;EAC7E,yEAAyE;EACzE,oDAAoD;EACpD;IACE,yCAAyC;EAC3C;;EAEA;IACE,mBAAmB;IACnB,mBAAmB;IACnB,0BAA0B;EAC5B;;EAEA;IACE,mBAAmB;IACnB,8BAA8B;IAC9B,iBAAiB;IACjB,mBAAmB;IACnB,0BAA0B;EAC5B;;EAEA;IACE,8CAA8C;EAChD;;EAEA,0EAA0E;EAC1E,0EAA0E;EAC1E,sDAAsD;EACtD;IACE,WAAW;IACX,cAAc;IACd,kBAAkB;IAClB,MAAM;IACN,QAAQ;IACR,SAAS;IACT,OAAO;EACT;;EAEA;IACE,4BAA4B;IAC5B,8CAA8C;EAChD;AACF","file":"_index.scss","sourcesContent":["@import \"../tag/index\";\n\n@include govuk-exports(\"govuk/component/task-list\") {\n $govuk-task-list-hover-colour: govuk-colour(\"black\", $variant: \"tint-95\");\n\n .govuk-task-list {\n @include govuk-font($size: 19);\n margin-top: 0;\n @include govuk-responsive-margin(6, \"bottom\");\n padding: 0;\n list-style-type: none;\n }\n\n // This uses table layout so that the task name and status always appear\n // side-by-side, with the width of each 'column' being flexible depending upon\n // the length of the task names and statuses.\n //\n // The position is set to 'relative' so than an absolutely-positioned\n // transparent element box can be added within the link so that the whole row\n // can be clickable.\n .govuk-task-list__item {\n display: table;\n position: relative;\n width: 100%;\n margin-bottom: 0;\n padding-top: govuk-spacing(2);\n padding-bottom: govuk-spacing(2);\n border-bottom: 1px solid;\n border-bottom-color: govuk-functional-colour(border);\n }\n\n .govuk-task-list__item:first-child {\n border-top: 1px solid;\n border-top-color: govuk-functional-colour(border);\n }\n\n // This class is added to the <li> elements where the task name is a link. The\n // background hover colour is added to help indicate that the whole row is\n // clickable, rather than just the visible link text.\n .govuk-task-list__item--with-link:hover {\n background: $govuk-task-list-hover-colour;\n }\n\n .govuk-task-list__name-and-hint {\n display: table-cell;\n vertical-align: top;\n @include govuk-text-colour;\n }\n\n .govuk-task-list__status {\n display: table-cell;\n padding-left: govuk-spacing(2);\n text-align: right;\n vertical-align: top;\n @include govuk-text-colour;\n }\n\n .govuk-task-list__status--cannot-start-yet {\n color: govuk-functional-colour(secondary-text);\n }\n\n // This adds an empty transparent box covering the whole row, including the\n // task status and any hint text. Because this is generated within the link\n // element, this allows the whole area to be clickable.\n .govuk-task-list__link::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n\n .govuk-task-list__hint {\n margin-top: govuk-spacing(1);\n color: govuk-functional-colour(secondary-text);\n }\n}\n"]}
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"status": {
|
|
114
114
|
"tag": {
|
|
115
115
|
"text": "Not started",
|
|
116
|
-
"classes": "govuk-tag--
|
|
116
|
+
"classes": "govuk-tag--teal"
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
},
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"status": {
|
|
129
129
|
"tag": {
|
|
130
130
|
"text": "Review",
|
|
131
|
-
"classes": "govuk-tag--
|
|
131
|
+
"classes": "govuk-tag--magenta"
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
},
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"description": "",
|
|
175
175
|
"pageTemplateOptions": {},
|
|
176
176
|
"screenshot": true,
|
|
177
|
-
"html": "<ul class=\"govuk-task-list\">\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-1-status\">\n Company Directors\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-1-status\">\n Completed\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-2-status\">\n Registered company details\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-2-status\">\n <strong class=\"govuk-tag govuk-tag--
|
|
177
|
+
"html": "<ul class=\"govuk-task-list\">\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-1-status\">\n Company Directors\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-1-status\">\n Completed\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-2-status\">\n Registered company details\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-2-status\">\n <strong class=\"govuk-tag govuk-tag--teal\">\n Not started\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-3-hint task-list-3-status\">\n Business plan\n </a>\n <div id=\"task-list-3-hint\" class=\"govuk-task-list__hint\">\n Ensure the plan covers objectives, strategies, sales, marketing and financial forecasts.\n </div>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-3-status\">\n <strong class=\"govuk-tag govuk-tag--magenta\">\n Review\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-4-status\">\n Documentation\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-4-status\">\n <strong class=\"govuk-tag govuk-tag--blue\">\n In progress\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-5-status\">\n Charitable status\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-5-status\">\n <strong class=\"govuk-tag govuk-tag--red\">\n Error\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item\">\n <div class=\"govuk-task-list__name-and-hint\">\n <div>\n Payment\n </div>\n <div id=\"task-list-6-hint\" class=\"govuk-task-list__hint\">\n It will cost between £15 and £75\n </div>\n </div>\n <div class=\"govuk-task-list__status govuk-task-list__status--cannot-start-yet\" id=\"task-list-6-status\">\n Cannot start yet\n </div>\n </li>\n</ul>"
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
"name": "with all possible colours",
|
|
@@ -230,8 +230,8 @@
|
|
|
230
230
|
"href": "#",
|
|
231
231
|
"status": {
|
|
232
232
|
"tag": {
|
|
233
|
-
"text": "
|
|
234
|
-
"classes": "govuk-tag--
|
|
233
|
+
"text": "Teal",
|
|
234
|
+
"classes": "govuk-tag--teal"
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
},
|
|
@@ -240,18 +240,6 @@
|
|
|
240
240
|
"text": "Task F"
|
|
241
241
|
},
|
|
242
242
|
"href": "#",
|
|
243
|
-
"status": {
|
|
244
|
-
"tag": {
|
|
245
|
-
"text": "Turquoise",
|
|
246
|
-
"classes": "govuk-tag--turquoise"
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"title": {
|
|
252
|
-
"text": "Task G"
|
|
253
|
-
},
|
|
254
|
-
"href": "#",
|
|
255
243
|
"status": {
|
|
256
244
|
"tag": {
|
|
257
245
|
"text": "Green",
|
|
@@ -261,7 +249,7 @@
|
|
|
261
249
|
},
|
|
262
250
|
{
|
|
263
251
|
"title": {
|
|
264
|
-
"text": "Task
|
|
252
|
+
"text": "Task G"
|
|
265
253
|
},
|
|
266
254
|
"href": "#",
|
|
267
255
|
"status": {
|
|
@@ -273,19 +261,19 @@
|
|
|
273
261
|
},
|
|
274
262
|
{
|
|
275
263
|
"title": {
|
|
276
|
-
"text": "Task
|
|
264
|
+
"text": "Task H"
|
|
277
265
|
},
|
|
278
266
|
"href": "#",
|
|
279
267
|
"status": {
|
|
280
268
|
"tag": {
|
|
281
|
-
"text": "
|
|
282
|
-
"classes": "govuk-tag--
|
|
269
|
+
"text": "Magenta",
|
|
270
|
+
"classes": "govuk-tag--magenta"
|
|
283
271
|
}
|
|
284
272
|
}
|
|
285
273
|
},
|
|
286
274
|
{
|
|
287
275
|
"title": {
|
|
288
|
-
"text": "Task
|
|
276
|
+
"text": "Task I"
|
|
289
277
|
},
|
|
290
278
|
"href": "#",
|
|
291
279
|
"status": {
|
|
@@ -297,7 +285,7 @@
|
|
|
297
285
|
},
|
|
298
286
|
{
|
|
299
287
|
"title": {
|
|
300
|
-
"text": "Task
|
|
288
|
+
"text": "Task J"
|
|
301
289
|
},
|
|
302
290
|
"href": "#",
|
|
303
291
|
"status": {
|
|
@@ -309,7 +297,7 @@
|
|
|
309
297
|
},
|
|
310
298
|
{
|
|
311
299
|
"title": {
|
|
312
|
-
"text": "Task
|
|
300
|
+
"text": "Task K"
|
|
313
301
|
},
|
|
314
302
|
"href": "#",
|
|
315
303
|
"status": {
|
|
@@ -325,7 +313,7 @@
|
|
|
325
313
|
"description": "",
|
|
326
314
|
"pageTemplateOptions": {},
|
|
327
315
|
"screenshot": false,
|
|
328
|
-
"html": "<ul class=\"govuk-task-list\">\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-1-status\">\n Task A\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-1-status\">\n Text colour\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-2-status\">\n Task B\n </a>\n </div>\n <div class=\"govuk-task-list__status govuk-task-list__status--cannot-start-yet\" id=\"task-list-2-status\">\n Secondary text colour\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-3-status\">\n Task C\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-3-status\">\n <strong class=\"govuk-tag govuk-tag--grey\">\n Grey\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-4-status\">\n Task D\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-4-status\">\n <strong class=\"govuk-tag govuk-tag--blue\">\n Blue\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-5-status\">\n Task E\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-5-status\">\n <strong class=\"govuk-tag govuk-tag--
|
|
316
|
+
"html": "<ul class=\"govuk-task-list\">\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-1-status\">\n Task A\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-1-status\">\n Text colour\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-2-status\">\n Task B\n </a>\n </div>\n <div class=\"govuk-task-list__status govuk-task-list__status--cannot-start-yet\" id=\"task-list-2-status\">\n Secondary text colour\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-3-status\">\n Task C\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-3-status\">\n <strong class=\"govuk-tag govuk-tag--grey\">\n Grey\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-4-status\">\n Task D\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-4-status\">\n <strong class=\"govuk-tag govuk-tag--blue\">\n Blue\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-5-status\">\n Task E\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-5-status\">\n <strong class=\"govuk-tag govuk-tag--teal\">\n Teal\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-6-status\">\n Task F\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-6-status\">\n <strong class=\"govuk-tag govuk-tag--green\">\n Green\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-7-status\">\n Task G\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-7-status\">\n <strong class=\"govuk-tag govuk-tag--purple\">\n Purple\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-8-status\">\n Task H\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-8-status\">\n <strong class=\"govuk-tag govuk-tag--magenta\">\n Magenta\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-9-status\">\n Task I\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-9-status\">\n <strong class=\"govuk-tag govuk-tag--red\">\n Red\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-10-status\">\n Task J\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-10-status\">\n <strong class=\"govuk-tag govuk-tag--orange\">\n Orange\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link\" href=\"#\" aria-describedby=\"task-list-11-status\">\n Task K\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-11-status\">\n <strong class=\"govuk-tag govuk-tag--yellow\">\n Yellow\n </strong>\n </div>\n </li>\n</ul>"
|
|
329
317
|
},
|
|
330
318
|
{
|
|
331
319
|
"name": "with very long single word tags",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
</a>
|
|
52
52
|
</div>
|
|
53
53
|
<div class="govuk-task-list__status" id="task-list-5-status">
|
|
54
|
-
<strong class="govuk-tag govuk-tag--
|
|
55
|
-
|
|
54
|
+
<strong class="govuk-tag govuk-tag--teal">
|
|
55
|
+
Teal
|
|
56
56
|
</strong>
|
|
57
57
|
</div>
|
|
58
58
|
</li>
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
</a>
|
|
64
64
|
</div>
|
|
65
65
|
<div class="govuk-task-list__status" id="task-list-6-status">
|
|
66
|
-
<strong class="govuk-tag govuk-tag--
|
|
67
|
-
|
|
66
|
+
<strong class="govuk-tag govuk-tag--green">
|
|
67
|
+
Green
|
|
68
68
|
</strong>
|
|
69
69
|
</div>
|
|
70
70
|
</li>
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
</a>
|
|
76
76
|
</div>
|
|
77
77
|
<div class="govuk-task-list__status" id="task-list-7-status">
|
|
78
|
-
<strong class="govuk-tag govuk-tag--
|
|
79
|
-
|
|
78
|
+
<strong class="govuk-tag govuk-tag--purple">
|
|
79
|
+
Purple
|
|
80
80
|
</strong>
|
|
81
81
|
</div>
|
|
82
82
|
</li>
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
</a>
|
|
88
88
|
</div>
|
|
89
89
|
<div class="govuk-task-list__status" id="task-list-8-status">
|
|
90
|
-
<strong class="govuk-tag govuk-tag--
|
|
91
|
-
|
|
90
|
+
<strong class="govuk-tag govuk-tag--magenta">
|
|
91
|
+
Magenta
|
|
92
92
|
</strong>
|
|
93
93
|
</div>
|
|
94
94
|
</li>
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
</a>
|
|
100
100
|
</div>
|
|
101
101
|
<div class="govuk-task-list__status" id="task-list-9-status">
|
|
102
|
-
<strong class="govuk-tag govuk-tag--
|
|
103
|
-
|
|
102
|
+
<strong class="govuk-tag govuk-tag--red">
|
|
103
|
+
Red
|
|
104
104
|
</strong>
|
|
105
105
|
</div>
|
|
106
106
|
</li>
|
|
@@ -111,8 +111,8 @@
|
|
|
111
111
|
</a>
|
|
112
112
|
</div>
|
|
113
113
|
<div class="govuk-task-list__status" id="task-list-10-status">
|
|
114
|
-
<strong class="govuk-tag govuk-tag--
|
|
115
|
-
|
|
114
|
+
<strong class="govuk-tag govuk-tag--orange">
|
|
115
|
+
Orange
|
|
116
116
|
</strong>
|
|
117
117
|
</div>
|
|
118
118
|
</li>
|
|
@@ -123,18 +123,6 @@
|
|
|
123
123
|
</a>
|
|
124
124
|
</div>
|
|
125
125
|
<div class="govuk-task-list__status" id="task-list-11-status">
|
|
126
|
-
<strong class="govuk-tag govuk-tag--orange">
|
|
127
|
-
Orange
|
|
128
|
-
</strong>
|
|
129
|
-
</div>
|
|
130
|
-
</li>
|
|
131
|
-
<li class="govuk-task-list__item govuk-task-list__item--with-link">
|
|
132
|
-
<div class="govuk-task-list__name-and-hint">
|
|
133
|
-
<a class="govuk-link govuk-task-list__link" href="#" aria-describedby="task-list-12-status">
|
|
134
|
-
Task L
|
|
135
|
-
</a>
|
|
136
|
-
</div>
|
|
137
|
-
<div class="govuk-task-list__status" id="task-list-12-status">
|
|
138
126
|
<strong class="govuk-tag govuk-tag--yellow">
|
|
139
127
|
Yellow
|
|
140
128
|
</strong>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</a>
|
|
18
18
|
</div>
|
|
19
19
|
<div class="govuk-task-list__status" id="task-list-2-status">
|
|
20
|
-
<strong class="govuk-tag govuk-tag--
|
|
20
|
+
<strong class="govuk-tag govuk-tag--teal">
|
|
21
21
|
Not started
|
|
22
22
|
</strong>
|
|
23
23
|
</div>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
<div class="govuk-task-list__status" id="task-list-3-status">
|
|
35
|
-
<strong class="govuk-tag govuk-tag--
|
|
35
|
+
<strong class="govuk-tag govuk-tag--magenta">
|
|
36
36
|
Review
|
|
37
37
|
</strong>
|
|
38
38
|
</div>
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
resize: vertical;
|
|
17
17
|
|
|
18
|
-
border: $govuk-border-width-form-element solid
|
|
18
|
+
border: $govuk-border-width-form-element solid;
|
|
19
19
|
border-radius: 0;
|
|
20
|
+
border-color: govuk-functional-colour(input-border);
|
|
20
21
|
|
|
21
22
|
-webkit-appearance: none;
|
|
22
23
|
|
|
@@ -33,10 +34,10 @@
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.govuk-textarea--error {
|
|
36
|
-
border-color:
|
|
37
|
+
border-color: govuk-functional-colour(error);
|
|
37
38
|
|
|
38
39
|
&:focus {
|
|
39
|
-
border-color:
|
|
40
|
+
border-color: govuk-functional-colour(input-border);
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/textarea/_index.scss"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uBAAuB;AACvB,wBAAwB;;AAExB;EACE;IACE,kDAAkD;;IAElD,sBAAsB;IACtB,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,6CAA6C;IAC7C,yBAAyB;;IAEzB,gBAAgB;;IAEhB,
|
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/textarea/_index.scss"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uBAAuB;AACvB,wBAAwB;;AAExB;EACE;IACE,kDAAkD;;IAElD,sBAAsB;IACtB,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,6CAA6C;IAC7C,yBAAyB;;IAEzB,gBAAgB;;IAEhB,8CAA8C;IAC9C,gBAAgB;IAChB,mDAAmD;;IAEnD,wBAAwB;;IAExB;MACE,iCAAiC;IACnC;;IAEA;MACE,YAAY;MACZ,cAAc;MACd,6BAA6B;MAC7B,mBAAmB;IACrB;EACF;;EAEA;IACE,4CAA4C;;IAE5C;MACE,mDAAmD;IACrD;EACF;AACF","file":"_index.scss","sourcesContent":["@import \"../error-message/index\";\n@import \"../hint/index\";\n@import \"../label/index\";\n\n@include govuk-exports(\"govuk/component/textarea\") {\n .govuk-textarea {\n @include govuk-font($size: 19, $line-height: 1.25);\n\n box-sizing: border-box;\n display: block;\n width: 100%;\n min-height: 40px;\n @include govuk-responsive-margin(6, \"bottom\");\n padding: govuk-spacing(1);\n\n resize: vertical;\n\n border: $govuk-border-width-form-element solid;\n border-radius: 0;\n border-color: govuk-functional-colour(input-border);\n\n -webkit-appearance: none;\n\n &:focus {\n @include govuk-focused-form-input;\n }\n\n &:disabled {\n opacity: 0.5;\n color: inherit;\n background-color: transparent;\n cursor: not-allowed;\n }\n }\n\n .govuk-textarea--error {\n border-color: govuk-functional-colour(error);\n\n &:focus {\n border-color: govuk-functional-colour(input-border);\n }\n }\n}\n"]}
|
|
@@ -25,11 +25,12 @@
|
|
|
25
25
|
|
|
26
26
|
// When a user customises their colours the background colour will often be
|
|
27
27
|
// removed. Adding a border to the component keeps it's shape as a circle.
|
|
28
|
-
border: 3px solid
|
|
28
|
+
border: 3px solid;
|
|
29
29
|
border-radius: 50%;
|
|
30
|
+
border-color: govuk-functional-colour(text);
|
|
30
31
|
|
|
31
|
-
color:
|
|
32
|
-
background:
|
|
32
|
+
color: govuk-functional-colour(body-background);
|
|
33
|
+
background: govuk-functional-colour(text);
|
|
33
34
|
|
|
34
35
|
font-size: 30px;
|
|
35
36
|
line-height: 29px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/warning-text/_index.scss"],"names":[],"mappings":"AAAA;EACE;IACE,8BAA8B;IAC9B,6CAA6C;IAC7C,qCAAqC;IACrC,kBAAkB;IAClB,2BAA2B;EAC7B;;EAEA;IACE,sBAAsB;;IAEtB,qBAAqB;;IAErB,kBAAkB;IAClB,OAAO;;IAEP,eAAe;IACf,gBAAgB;IAChB,gBAAgB;;IAEhB;MACE,gBAAgB;IAClB;;IAEA,0EAA0E;IAC1E,yEAAyE;IACzE,
|
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/warning-text/_index.scss"],"names":[],"mappings":"AAAA;EACE;IACE,8BAA8B;IAC9B,6CAA6C;IAC7C,qCAAqC;IACrC,kBAAkB;IAClB,2BAA2B;EAC7B;;EAEA;IACE,sBAAsB;;IAEtB,qBAAqB;;IAErB,kBAAkB;IAClB,OAAO;;IAEP,eAAe;IACf,gBAAgB;IAChB,gBAAgB;;IAEhB;MACE,gBAAgB;IAClB;;IAEA,0EAA0E;IAC1E,yEAAyE;IACzE,iBAAiB;IACjB,kBAAkB;IAClB,2CAA2C;;IAE3C,+CAA+C;IAC/C,yCAAyC;;IAEzC,eAAe;IACf,iBAAiB;;IAEjB,kBAAkB;;IAElB,wEAAwE;IACxE,yBAAyB;IACzB,yBAAiB;QAAjB,qBAAiB;YAAjB,iBAAiB;;IAEjB,iEAAiE;IACjE,uEAAuE;IACvE,yBAAyB;;IAEzB;MACE,wBAAwB;MACxB,iBAAiB;MACjB,uBAAuB;IACzB;EACF;;EAEA;IACE,0BAA0B;IAC1B,cAAc;IACd,kBAAkB;IAClB,8DAA8D;IAC9D,2CAA2C;IAC3C,oBAAoB;EACtB;AACF","file":"_index.scss","sourcesContent":["@include govuk-exports(\"govuk/component/warning-text\") {\n .govuk-warning-text {\n @include govuk-font($size: 19);\n @include govuk-responsive-margin(6, \"bottom\");\n @include govuk-typography-weight-bold;\n position: relative;\n padding: govuk-spacing(2) 0;\n }\n\n .govuk-warning-text__icon {\n box-sizing: border-box;\n\n display: inline-block;\n\n position: absolute;\n left: 0;\n\n min-width: 35px;\n min-height: 35px;\n margin-top: -7px;\n\n @media #{govuk-from-breakpoint(tablet)} {\n margin-top: -5px;\n }\n\n // When a user customises their colours the background colour will often be\n // removed. Adding a border to the component keeps it's shape as a circle.\n border: 3px solid;\n border-radius: 50%;\n border-color: govuk-functional-colour(text);\n\n color: govuk-functional-colour(body-background);\n background: govuk-functional-colour(text);\n\n font-size: 30px;\n line-height: 29px;\n\n text-align: center;\n\n // Prevent the exclamation mark from being included when the warning text\n // is copied, for example.\n user-select: none;\n\n // Improve rendering in Windows High Contrast Mode (Edge), where a\n // readability backplate behind the exclamation mark obscures the circle\n forced-color-adjust: none;\n\n @media screen and (forced-colors: active) {\n border-color: windowText;\n color: windowText;\n background: transparent;\n }\n }\n\n .govuk-warning-text__text {\n @include govuk-text-colour;\n display: block;\n padding-left: 45px;\n // While `<strong>` is styled `bold` or `bolder` by user-agents\n // this can be reset by the app's stylesheet\n font-weight: inherit;\n }\n}\n"]}
|