govuk_publishing_components 42.0.0 → 43.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +2 -1
- data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +18 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment-link.scss +15 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +20 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +21 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +27 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_chat-entry.scss +36 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +29 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +23 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +19 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +5 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +16 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +19 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +23 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +29 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-admin.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +6 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +16 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +7 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +21 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +8 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +22 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +11 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +24 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss +2 -0
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_attachment.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/_chat_entry.html.erb +46 -0
- data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +6 -4
- data/app/views/govuk_publishing_components/components/_contextual_footer.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_error_alert.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_intervention.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +3 -5
- data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/cross_service_header/_one_login_header.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/cross_service_header/_service_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/docs/chat_entry.yml +36 -0
- data/app/views/govuk_publishing_components/components/docs/contents_list.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/organisation_logo.yml +1 -1
- data/{node_modules/govuk-frontend/dist/govuk/components/header/template-with-tudor-crown.html → app/views/govuk_publishing_components/components/govuk_logo/_govuk_logo.html.erb} +5 -12
- data/app/views/govuk_publishing_components/components/govuk_logo/_govuk_logo_crown_only.html.erb +15 -0
- data/app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb +6 -27
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -13
- data/config/locales/ar.yml +4 -1
- data/config/locales/az.yml +4 -1
- data/config/locales/be.yml +4 -1
- data/config/locales/bg.yml +4 -1
- data/config/locales/bn.yml +4 -1
- data/config/locales/cs.yml +4 -1
- data/config/locales/cy.yml +4 -1
- data/config/locales/da.yml +4 -1
- data/config/locales/de.yml +4 -1
- data/config/locales/dr.yml +4 -1
- data/config/locales/el.yml +4 -1
- data/config/locales/en.yml +3 -0
- data/config/locales/es-419.yml +4 -1
- data/config/locales/es.yml +4 -1
- data/config/locales/et.yml +4 -1
- data/config/locales/fa.yml +4 -1
- data/config/locales/fi.yml +4 -1
- data/config/locales/fr.yml +4 -1
- data/config/locales/gd.yml +4 -1
- data/config/locales/gu.yml +4 -1
- data/config/locales/he.yml +4 -1
- data/config/locales/hi.yml +4 -1
- data/config/locales/hr.yml +4 -1
- data/config/locales/hu.yml +4 -1
- data/config/locales/hy.yml +4 -1
- data/config/locales/id.yml +4 -1
- data/config/locales/is.yml +4 -1
- data/config/locales/it.yml +4 -1
- data/config/locales/ja.yml +4 -1
- data/config/locales/ka.yml +4 -1
- data/config/locales/kk.yml +4 -1
- data/config/locales/ko.yml +4 -1
- data/config/locales/lt.yml +4 -1
- data/config/locales/lv.yml +4 -1
- data/config/locales/ms.yml +4 -1
- data/config/locales/mt.yml +4 -1
- data/config/locales/nl.yml +4 -1
- data/config/locales/no.yml +4 -1
- data/config/locales/pa-pk.yml +4 -1
- data/config/locales/pa.yml +4 -1
- data/config/locales/pl.yml +4 -1
- data/config/locales/ps.yml +4 -1
- data/config/locales/pt.yml +4 -1
- data/config/locales/ro.yml +4 -1
- data/config/locales/ru.yml +4 -1
- data/config/locales/si.yml +4 -1
- data/config/locales/sk.yml +4 -1
- data/config/locales/sl.yml +4 -1
- data/config/locales/so.yml +4 -1
- data/config/locales/sq.yml +4 -1
- data/config/locales/sr.yml +4 -1
- data/config/locales/sv.yml +4 -1
- data/config/locales/sw.yml +4 -1
- data/config/locales/ta.yml +4 -1
- data/config/locales/th.yml +4 -1
- data/config/locales/tk.yml +4 -1
- data/config/locales/tr.yml +4 -1
- data/config/locales/uk.yml +4 -1
- data/config/locales/ur.yml +4 -1
- data/config/locales/uz.yml +4 -1
- data/config/locales/vi.yml +4 -1
- data/config/locales/zh-hk.yml +4 -1
- data/config/locales/zh-tw.yml +4 -1
- data/config/locales/zh.yml +4 -1
- data/lib/govuk_publishing_components/presenters/contents_list_helper.rb +2 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/dist/govuk/_base.scss +3 -3
- data/node_modules/govuk-frontend/dist/govuk/_base.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +451 -176
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +450 -177
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.mjs +13 -76
- data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.scss +1 -9
- data/node_modules/govuk-frontend/dist/govuk/all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/closest-attribute-value.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +56 -36
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs +12 -20
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs +31 -0
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +7 -35
- data/node_modules/govuk-frontend/dist/govuk/components/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/_index.scss +39 -0
- data/node_modules/govuk-frontend/dist/govuk/components/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +35 -31
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +177 -133
- 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 +177 -133
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs +80 -76
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +16 -3
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/template.njk +2 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +25 -15
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-link.html +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template.njk +6 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +53 -15
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/macro-options.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-inverse.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-collapse-on-mobile.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-last-breadcrumb-as-current-page.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-multiple-levels.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-one-level.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-without-the-home-section.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template.njk +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js +97 -39
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs +97 -39
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs +13 -3
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +38 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template.njk +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +4 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +125 -69
- 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 +125 -69
- 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 +17 -3
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +46 -23
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-default.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-custom-rows.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-custom-textarea-description.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-default-value-exceeding-limit.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-default-value.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-hint.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-label-as-page-heading.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-threshold.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-translations.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-word-count.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template.njk +72 -39
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +10 -2
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js +9 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs +9 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +153 -47
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-default.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-conditional-reveal.html +11 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-disabled.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-divider-and-none.html +34 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-error.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-hint.html +13 -13
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-long-text.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-a-medium-legend.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-item-checked.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items-with-special-characters.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-disabled-item.html +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-and-none.html +17 -16
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-none-and-conditional-items.html +24 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message-and-hints-on-items.html +15 -15
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-fieldset-and-error-message.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-hints-on-items.html +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-id-and-name.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-legend-as-a-page-heading.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-optional-form-group-classes-showing-group-error.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-pre-checked-values.html +15 -16
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-and-hint-set-aria-describedby-on-input.html +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-set-aria-describedby-on-input.html +4 -4
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-very-long-option-text.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-without-fieldset.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template.njk +58 -54
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +17 -14
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +46 -23
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-accepted-confirmation-banner.html +11 -8
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-client-side-implementation.html +38 -29
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-default.html +18 -13
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-rejected-confirmation-banner.html +11 -8
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-with-html.html +19 -15
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template.njk +37 -44
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +1 -2
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +27 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template.njk +10 -3
- data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/details/template.njk +6 -2
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/template.njk +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +14 -3
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js +96 -37
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs +96 -37
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs +12 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +48 -18
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/macro-options.json +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-default.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-mixed-with-and-without-links.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-with-description-only.html +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-with-everything.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-without-links.html +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template.njk +19 -14
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +112 -61
- 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 +112 -61
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs +15 -4
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -5
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +18 -0
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template.njk +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +8 -9
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +13 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +10 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +1 -1
- 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 +46 -23
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-default.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-full-gds-example.html +41 -40
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-three-equal-columns.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-html-content-licence-and-copyright-notice.html +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-meta.html +14 -13
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-text-content-licence-and-copyright-notice.html +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-one-column.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-two-columns.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta-links-and-meta-content.html +56 -55
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta.html +28 -27
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-navigation.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +42 -38
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +1 -1
- 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 +49 -26
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +29 -30
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-label.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-text.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-navigation-label.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-large-navigation.html +100 -101
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-navigation.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-and-navigation.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-but-no-service-url.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-st-edwards-crown.html +21 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +31 -26
- data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/hint/template.njk +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -4
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +138 -25
- data/node_modules/govuk-frontend/dist/govuk/components/input/macro-options.json +67 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-disabled.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocapitalize-turned-off.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-and-hint.html +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-message.html +2 -5
- data/node_modules/govuk-frontend/dist/govuk/components/input/template.njk +70 -14
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +7 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/template-with-html.html +8 -9
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/template.njk +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +17 -0
- data/node_modules/govuk-frontend/dist/govuk/components/label/template.njk +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +50 -26
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js +96 -37
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs +96 -37
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs +12 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-disabled-with-type-as-success.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-explicitly-enabled-with-type-as-success.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-custom-tabindex.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-default.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-paragraph-as-html-heading.html +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-rolealert-overridden-to-roleregion-with-type-as-success.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-success-with-custom-html.html +9 -8
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-a-list.html +9 -8
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-long-heading.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-lots-of-content.html +12 -9
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-text-as-html.html +8 -5
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-type-as-success.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template.njk +11 -7
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +24 -37
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +30 -15
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-default.html +38 -23
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-first-page.html +28 -16
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-last-page.html +29 -20
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-accessible-labels-on-item-links.html +38 -23
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-link-and-item-text.html +38 -23
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-navigation-landmark.html +38 -23
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-many-pages.html +64 -39
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-next-only.html +11 -4
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-and-labels.html +25 -13
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-and-very-long-labels.html +25 -13
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-in-a-different-language.html +21 -11
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only.html +21 -11
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-previous-only.html +11 -7
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template.njk +78 -63
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +14 -10
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/panel/template.njk +6 -3
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +57 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +196 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/macro-options.json +181 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/macro.njk +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +528 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +520 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs +163 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-default.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-error-message.html +17 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-hint-text.html +14 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-input-width-class.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-label-as-page-heading.html +13 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-new-password-autocomplete.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-translations.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template.njk +91 -0
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +6 -8
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +7 -0
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template.njk +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +11 -6
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +113 -48
- data/node_modules/govuk-frontend/dist/govuk/components/radios/macro-options.json +41 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-default.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-inline.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked-using-value.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline-extreme.html +40 -40
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-a-divider.html +13 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-conditional-reveal.html +15 -16
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-disabled.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-error.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-hint.html +13 -13
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-long-text.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-divider.html +13 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-medium-legend.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-item-checked.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-and-pre-checked-value.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-with-special-characters.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-disabled.html +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-fieldset-and-error-message.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-hints-on-items.html +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-idprefix.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-legend-as-page-heading.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-optional-form-group-classes-showing-group-error.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-very-long-option-text.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-without-fieldset.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template.njk +54 -50
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +42 -23
- data/node_modules/govuk-frontend/dist/govuk/components/select/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-default.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-full-width-override.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-hint-text-and-error-message.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-label-as-page-heading.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-optional-form-group-classes.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-selected-value.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template.njk +18 -8
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -4
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/template.njk +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +63 -32
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-custom-header-level.html +25 -20
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-html-header.html +25 -20
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-text-header.html +25 -20
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-actions-plus-summary-list-actions.html +46 -29
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-actions.html +33 -23
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-check-your-answers.html +96 -97
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-default.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-extreme.html +261 -70
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-no-border-on-last-row.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-no-border.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-overridden-widths.html +58 -45
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-translated.html +51 -45
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-actions.html +58 -45
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-no-first-action.html +58 -59
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-some-actions.html +45 -39
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template.njk +68 -65
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +93 -21
- data/node_modules/govuk-frontend/dist/govuk/components/table/template-default.html +15 -15
- data/node_modules/govuk-frontend/dist/govuk/components/table/template-table-with-head-and-caption.html +15 -15
- data/node_modules/govuk-frontend/dist/govuk/components/table/template-table-with-head.html +15 -15
- data/node_modules/govuk-frontend/dist/govuk/components/table/template-with-small-text-modifier-for-tables-with-a-lot-of-data.html +19 -0
- data/node_modules/govuk-frontend/dist/govuk/components/table/template.njk +43 -31
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +27 -13
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +13 -11
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +13 -11
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs +5 -11
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/template-default.html +110 -113
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/template-tabs-with-anchor-in-panel.html +19 -21
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/template.njk +30 -18
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +11 -8
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +14 -0
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template.njk +5 -2
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +12 -10
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +54 -10
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-default.html +35 -28
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-3-states.html +47 -38
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-all-possible-colours.html +141 -116
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-hint-text-and-additional-states.html +72 -59
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-very-long-single-word-tags.html +35 -28
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-empty-values.html +27 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template.njk +33 -23
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +17 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/template.njk +10 -2
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/template.njk +3 -2
- data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +8 -6
- data/node_modules/govuk-frontend/dist/govuk/core/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +8 -12
- data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +44 -8
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_index.scss +14 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +19 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +30 -62
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs +18 -12
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/index.scss +11 -0
- data/node_modules/govuk-frontend/dist/govuk/index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/init.mjs +100 -0
- data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/macros/attributes.njk +94 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +8 -6
- data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_index.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +7 -5
- data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss +7 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +10 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +8 -21
- data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +235 -9
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +23 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +1 -1
- 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 +172 -13
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss +8 -3
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/template.njk +3 -2
- data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +8 -5
- data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +7 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +8 -2
- data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +5 -1
- data/node_modules/govuk-frontend/package.json +16 -15
- metadata +60 -3
data/node_modules/govuk-frontend/dist/govuk/components/tabs/template-tabs-with-anchor-in-panel.html
CHANGED
@@ -3,26 +3,24 @@
|
|
3
3
|
Contents
|
4
4
|
</h2>
|
5
5
|
<ul class="govuk-tabs__list">
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
6
|
+
<li class="govuk-tabs__list-item govuk-tabs__list-item--selected">
|
7
|
+
<a class="govuk-tabs__tab" href="#tab-1">
|
8
|
+
Tab 1
|
9
|
+
</a>
|
10
|
+
</li>
|
11
|
+
<li class="govuk-tabs__list-item">
|
12
|
+
<a class="govuk-tabs__tab" href="#tab-2">
|
13
|
+
Tab 2
|
14
|
+
</a>
|
15
|
+
</li>
|
16
16
|
</ul>
|
17
|
-
|
18
|
-
|
19
|
-
<p class="govuk-body">Testing that when you click the anchor it moves to the anchor point successfully</p>
|
20
|
-
<p class="govuk-body"><a class="govuk-link" href="#anchor">Anchor</a></p>
|
21
|
-
<p class="govuk-body"><a id="anchor" tabindex="0">Anchor Point</a></p>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
</div>
|
17
|
+
<div class="govuk-tabs__panel" id="tab-1">
|
18
|
+
<h2 class="govuk-heading-l">Tab 1</h2>
|
19
|
+
<p class="govuk-body">Testing that when you click the anchor it moves to the anchor point successfully</p>
|
20
|
+
<p class="govuk-body"><a class="govuk-link" href="#anchor">Anchor</a></p>
|
21
|
+
<p class="govuk-body"><a id="anchor" tabindex="0">Anchor Point</a></p>
|
22
|
+
</div>
|
23
|
+
<div class="govuk-tabs__panel govuk-tabs__panel--hidden" id="tab-2">
|
24
|
+
<h2 class="govuk-heading-l">Tab 2</h2>
|
25
|
+
</div>
|
28
26
|
</div>
|
@@ -1,36 +1,48 @@
|
|
1
|
+
{% from "../../macros/attributes.njk" import govukAttributes %}
|
2
|
+
|
3
|
+
{%- macro _tabListItem(params, item, index) %}
|
4
|
+
{% set tabPanelId = item.id if item.id else idPrefix + "-" + index -%}
|
5
|
+
<li class="govuk-tabs__list-item {%- if index == 1 %} govuk-tabs__list-item--selected{% endif %}">
|
6
|
+
<a class="govuk-tabs__tab" href="#{{ tabPanelId }}"
|
7
|
+
{{- govukAttributes(item.attributes) }}>
|
8
|
+
{{ item.label }}
|
9
|
+
</a>
|
10
|
+
</li>
|
11
|
+
{% endmacro -%}
|
12
|
+
|
13
|
+
{%- macro _tabPanel(params, item, index) %}
|
14
|
+
{% set tabPanelId = item.id if item.id else idPrefix + "-" + index -%}
|
15
|
+
<div class="govuk-tabs__panel {%- if index > 1 %} govuk-tabs__panel--hidden{% endif %}" id="{{ tabPanelId }}"
|
16
|
+
{{- govukAttributes(item.panel.attributes) }}>
|
17
|
+
{% if item.panel.html %}
|
18
|
+
{{ item.panel.html | safe | trim | indent(2) }}
|
19
|
+
{% elif item.panel.text %}
|
20
|
+
<p class="govuk-body">{{ item.panel.text }}</p>
|
21
|
+
{% endif %}
|
22
|
+
</div>
|
23
|
+
{% endmacro -%}
|
24
|
+
|
1
25
|
{#- If an id 'prefix' is not passed, fall back to using the name attribute
|
2
26
|
instead. We need this for error messages and hints as well -#}
|
3
27
|
{% set idPrefix = params.idPrefix if params.idPrefix -%}
|
4
28
|
|
5
|
-
<div {%- if params.id %} id="{{ params.id }}"{% endif %} class="govuk-tabs {%- if params.classes %} {{ params.classes }}{% endif %}"
|
29
|
+
<div {%- if params.id %} id="{{ params.id }}"{% endif %} class="govuk-tabs {%- if params.classes %} {{ params.classes }}{% endif %}"
|
30
|
+
{{- govukAttributes(params.attributes) }} data-module="govuk-tabs">
|
6
31
|
<h2 class="govuk-tabs__title">
|
7
32
|
{{ params.title | default ("Contents") }}
|
8
33
|
</h2>
|
9
|
-
|
34
|
+
{% if params.items | length %}
|
10
35
|
<ul class="govuk-tabs__list">
|
11
36
|
{% for item in params.items %}
|
12
37
|
{% if item %}
|
13
|
-
{
|
14
|
-
<li class="govuk-tabs__list-item {%- if loop.index == 1 %} govuk-tabs__list-item--selected{% endif %}">
|
15
|
-
<a class="govuk-tabs__tab" href="#{{ id }}"
|
16
|
-
{%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
|
17
|
-
{{ item.label }}
|
18
|
-
</a>
|
19
|
-
</li>
|
38
|
+
{{- _tabListItem(params, item, loop.index) | trim | indent(4, true) }}
|
20
39
|
{% endif %}
|
21
40
|
{% endfor %}
|
22
41
|
</ul>
|
23
|
-
{% endif %}
|
24
42
|
{% for item in params.items %}
|
25
43
|
{% if item %}
|
26
|
-
{
|
27
|
-
<div class="govuk-tabs__panel {%- if loop.index > 1 %} govuk-tabs__panel--hidden{% endif %}" id="{{ id }}" {%- for attribute, value in item.panel.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
|
28
|
-
{% if item.panel.html %}
|
29
|
-
{{ item.panel.html | safe }}
|
30
|
-
{% elif item.panel.text %}
|
31
|
-
<p class="govuk-body">{{ item.panel.text }}</p>
|
32
|
-
{% endif %}
|
33
|
-
</div>
|
44
|
+
{{- _tabPanel(params, item, loop.index) | trim | indent(2, true) }}
|
34
45
|
{% endif %}
|
35
46
|
{% endfor %}
|
47
|
+
{% endif %}
|
36
48
|
</div>
|
@@ -12,11 +12,12 @@
|
|
12
12
|
// where to break off of.
|
13
13
|
max-width: $govuk-tag-max-width;
|
14
14
|
|
15
|
-
// These negative margins make sure that the tag component doesn’t increase
|
16
|
-
// size of its container. Otherwise, for example, a table row containing
|
17
|
-
// will be taller than one containing plain text.
|
15
|
+
// These negative margins make sure that the tag component doesn’t increase
|
16
|
+
// the size of its container. Otherwise, for example, a table row containing
|
17
|
+
// a tag will be taller than one containing plain text.
|
18
18
|
//
|
19
|
-
// The negative margin added to the top and bottom matches the extra padding
|
19
|
+
// The negative margin added to the top and bottom matches the extra padding
|
20
|
+
// added.
|
20
21
|
margin-top: -2px;
|
21
22
|
margin-bottom: -3px;
|
22
23
|
|
@@ -30,11 +31,13 @@
|
|
30
31
|
overflow-wrap: break-word;
|
31
32
|
|
32
33
|
// When forced colour mode is active, for example to provide high contrast,
|
33
|
-
// the background colour of the tag is the same as the rest of the page. To
|
34
|
-
// that the tag is perceived as separate from any surround text, it
|
34
|
+
// the background colour of the tag is the same as the rest of the page. To
|
35
|
+
// ensure that the tag is perceived as separate from any surround text, it
|
36
|
+
// is made bold.
|
35
37
|
//
|
36
|
-
// Transparent outlines are no longer added, as they make the Tag look
|
37
|
-
// from a button – but the tag is not interactive in the
|
38
|
+
// Transparent outlines are no longer added, as they make the Tag look
|
39
|
+
// indistinguishable from a button – but the tag is not interactive in the
|
40
|
+
// same way.
|
38
41
|
@media screen and (forced-colors: active) {
|
39
42
|
font-weight: bold;
|
40
43
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/tag/_index.scss"],"names":[],"mappings":"AAAA;EACE,qHAAqH;;EAErH;IACE,8BAA8B;;IAE9B,qBAAqB;;IAErB,0EAA0E;IAC1E,uEAAuE;IACvE,0EAA0E;IAC1E,wBAAwB;IACxB,+BAA+B;;IAE/B,
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/tag/_index.scss"],"names":[],"mappings":"AAAA;EACE,qHAAqH;;EAErH;IACE,8BAA8B;;IAE9B,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;IACjB,6CAA6C;IAC7C,uDAAuD;IACvD,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;IACE,kDAAkD;IAClD,4DAA4D;EAC9D;;EAEA;IACE,sDAAsD;IACtD,gEAAgE;EAClE;;EAEA;IACE,kDAAkD;IAClD,4DAA4D;EAC9D;;EAEA;IACE,6CAA6C;IAC7C,uDAAuD;EACzD;;EAEA;IACE,6CAA6C;IAC7C,uDAAuD;EACzD;;EAEA;IACE,+CAA+C;IAC/C,yDAAyD;EAC3D;;EAEA;IACE,+CAA+C;IAC/C,yDAAyD;EAC3D;;EAEA;IACE,4CAA4C;IAC5C,sDAAsD;EACxD;;EAEA;IACE,6CAA6C;IAC7C,uDAAuD;EACzD;;EAEA;IACE,8CAA8C;IAC9C,wDAAwD;EAC1D;AACF","file":"_index.scss","sourcesContent":["@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\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 color: govuk-shade(govuk-colour(\"blue\"), 60%);\n background-color: govuk-tint(govuk-colour(\"blue\"), 70%);\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 .govuk-tag--grey {\n color: govuk-shade(govuk-colour(\"dark-grey\"), 50%);\n background-color: govuk-tint(govuk-colour(\"dark-grey\"), 85%);\n }\n\n .govuk-tag--purple {\n color: govuk-shade(govuk-colour(\"bright-purple\"), 50%);\n background-color: govuk-tint(govuk-colour(\"bright-purple\"), 85%);\n }\n\n .govuk-tag--turquoise {\n color: govuk-shade(govuk-colour(\"turquoise\"), 60%);\n background-color: govuk-tint(govuk-colour(\"turquoise\"), 80%);\n }\n\n .govuk-tag--blue {\n color: govuk-shade(govuk-colour(\"blue\"), 60%);\n background-color: govuk-tint(govuk-colour(\"blue\"), 70%);\n }\n\n .govuk-tag--light-blue {\n color: govuk-shade(govuk-colour(\"blue\"), 60%);\n background-color: govuk-tint(govuk-colour(\"blue\"), 90%);\n }\n\n .govuk-tag--yellow {\n color: govuk-shade(govuk-colour(\"yellow\"), 65%);\n background-color: govuk-tint(govuk-colour(\"yellow\"), 75%);\n }\n\n .govuk-tag--orange {\n color: govuk-shade(govuk-colour(\"orange\"), 55%);\n background-color: govuk-tint(govuk-colour(\"orange\"), 70%);\n }\n\n .govuk-tag--red {\n color: govuk-shade(govuk-colour(\"red\"), 80%);\n background-color: govuk-tint(govuk-colour(\"red\"), 75%);\n }\n\n .govuk-tag--pink {\n color: govuk-shade(govuk-colour(\"pink\"), 50%);\n background-color: govuk-tint(govuk-colour(\"pink\"), 85%);\n }\n\n .govuk-tag--green {\n color: govuk-shade(govuk-colour(\"green\"), 20%);\n background-color: govuk-tint(govuk-colour(\"green\"), 80%);\n }\n}\n"]}
|
@@ -9,6 +9,7 @@
|
|
9
9
|
"hidden": false,
|
10
10
|
"description": "",
|
11
11
|
"previewLayoutModifiers": [],
|
12
|
+
"screenshot": false,
|
12
13
|
"html": "<strong class=\"govuk-tag\">\n Alpha\n</strong>"
|
13
14
|
},
|
14
15
|
{
|
@@ -20,6 +21,7 @@
|
|
20
21
|
"hidden": false,
|
21
22
|
"description": "",
|
22
23
|
"previewLayoutModifiers": [],
|
24
|
+
"screenshot": false,
|
23
25
|
"html": "<strong class=\"govuk-tag govuk-tag--grey\">\n Grey\n</strong>"
|
24
26
|
},
|
25
27
|
{
|
@@ -31,6 +33,7 @@
|
|
31
33
|
"hidden": false,
|
32
34
|
"description": "",
|
33
35
|
"previewLayoutModifiers": [],
|
36
|
+
"screenshot": false,
|
34
37
|
"html": "<strong class=\"govuk-tag govuk-tag--blue\">\n Blue\n</strong>"
|
35
38
|
},
|
36
39
|
{
|
@@ -42,6 +45,7 @@
|
|
42
45
|
"hidden": false,
|
43
46
|
"description": "",
|
44
47
|
"previewLayoutModifiers": [],
|
48
|
+
"screenshot": false,
|
45
49
|
"html": "<strong class=\"govuk-tag govuk-tag--light-blue\">\n Light blue\n</strong>"
|
46
50
|
},
|
47
51
|
{
|
@@ -53,6 +57,7 @@
|
|
53
57
|
"hidden": false,
|
54
58
|
"description": "",
|
55
59
|
"previewLayoutModifiers": [],
|
60
|
+
"screenshot": false,
|
56
61
|
"html": "<strong class=\"govuk-tag govuk-tag--turquoise\">\n Turquoise\n</strong>"
|
57
62
|
},
|
58
63
|
{
|
@@ -64,6 +69,7 @@
|
|
64
69
|
"hidden": false,
|
65
70
|
"description": "",
|
66
71
|
"previewLayoutModifiers": [],
|
72
|
+
"screenshot": false,
|
67
73
|
"html": "<strong class=\"govuk-tag govuk-tag--green\">\n Green\n</strong>"
|
68
74
|
},
|
69
75
|
{
|
@@ -75,6 +81,7 @@
|
|
75
81
|
"hidden": false,
|
76
82
|
"description": "",
|
77
83
|
"previewLayoutModifiers": [],
|
84
|
+
"screenshot": false,
|
78
85
|
"html": "<strong class=\"govuk-tag govuk-tag--purple\">\n Purple\n</strong>"
|
79
86
|
},
|
80
87
|
{
|
@@ -86,6 +93,7 @@
|
|
86
93
|
"hidden": false,
|
87
94
|
"description": "",
|
88
95
|
"previewLayoutModifiers": [],
|
96
|
+
"screenshot": false,
|
89
97
|
"html": "<strong class=\"govuk-tag govuk-tag--pink\">\n Pink\n</strong>"
|
90
98
|
},
|
91
99
|
{
|
@@ -97,6 +105,7 @@
|
|
97
105
|
"hidden": false,
|
98
106
|
"description": "",
|
99
107
|
"previewLayoutModifiers": [],
|
108
|
+
"screenshot": false,
|
100
109
|
"html": "<strong class=\"govuk-tag govuk-tag--red\">\n Red\n</strong>"
|
101
110
|
},
|
102
111
|
{
|
@@ -108,6 +117,7 @@
|
|
108
117
|
"hidden": false,
|
109
118
|
"description": "",
|
110
119
|
"previewLayoutModifiers": [],
|
120
|
+
"screenshot": false,
|
111
121
|
"html": "<strong class=\"govuk-tag govuk-tag--orange\">\n Orange\n</strong>"
|
112
122
|
},
|
113
123
|
{
|
@@ -119,6 +129,7 @@
|
|
119
129
|
"hidden": false,
|
120
130
|
"description": "",
|
121
131
|
"previewLayoutModifiers": [],
|
132
|
+
"screenshot": false,
|
122
133
|
"html": "<strong class=\"govuk-tag govuk-tag--yellow\">\n Yellow\n</strong>"
|
123
134
|
},
|
124
135
|
{
|
@@ -133,6 +144,7 @@
|
|
133
144
|
"hidden": true,
|
134
145
|
"description": "",
|
135
146
|
"previewLayoutModifiers": [],
|
147
|
+
"screenshot": false,
|
136
148
|
"html": "<strong class=\"govuk-tag\" data-test=\"attribute\" id=\"my-tag\">\n Tag with attributes\n</strong>"
|
137
149
|
},
|
138
150
|
{
|
@@ -143,6 +155,7 @@
|
|
143
155
|
"hidden": true,
|
144
156
|
"description": "",
|
145
157
|
"previewLayoutModifiers": [],
|
158
|
+
"screenshot": false,
|
146
159
|
"html": "<strong class=\"govuk-tag\">\n <span>Alpha</span>\n</strong>"
|
147
160
|
},
|
148
161
|
{
|
@@ -153,6 +166,7 @@
|
|
153
166
|
"hidden": true,
|
154
167
|
"description": "",
|
155
168
|
"previewLayoutModifiers": [],
|
169
|
+
"screenshot": false,
|
156
170
|
"html": "<strong class=\"govuk-tag\">\n <span>Alpha</span>\n</strong>"
|
157
171
|
}
|
158
172
|
]
|
@@ -1,3 +1,6 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
{% from "../../macros/attributes.njk" import govukAttributes -%}
|
2
|
+
|
3
|
+
<strong class="govuk-tag {%- if params.classes %} {{ params.classes }}{% endif %}"
|
4
|
+
{{- govukAttributes(params.attributes) }}>
|
5
|
+
{{ params.html | safe | trim | indent(2) if params.html else params.text }}
|
3
6
|
</strong>
|
@@ -11,11 +11,13 @@
|
|
11
11
|
list-style-type: none;
|
12
12
|
}
|
13
13
|
|
14
|
-
// This uses table layout so that the task name and status always appear
|
15
|
-
// each 'column' being flexible depending upon
|
14
|
+
// This uses table layout so that the task name and status always appear
|
15
|
+
// side-by-side, with the width of each 'column' being flexible depending upon
|
16
|
+
// the length of the task names and statuses.
|
16
17
|
//
|
17
|
-
// The position is set to 'relative' so than an absolutely-positioned
|
18
|
-
// can be added within the link so that the whole row
|
18
|
+
// The position is set to 'relative' so than an absolutely-positioned
|
19
|
+
// transparent element box can be added within the link so that the whole row
|
20
|
+
// can be clickable.
|
19
21
|
.govuk-task-list__item {
|
20
22
|
display: table;
|
21
23
|
position: relative;
|
@@ -30,9 +32,9 @@
|
|
30
32
|
border-top: 1px solid $govuk-border-colour;
|
31
33
|
}
|
32
34
|
|
33
|
-
// This class is added to the <li> elements where the task name is a link.
|
34
|
-
//
|
35
|
-
// than just the visible link text.
|
35
|
+
// This class is added to the <li> elements where the task name is a link. The
|
36
|
+
// background hover colour is added to help indicate that the whole row is
|
37
|
+
// clickable, rather than just the visible link text.
|
36
38
|
.govuk-task-list__item--with-link:hover {
|
37
39
|
background: $govuk-task-list-hover-colour;
|
38
40
|
}
|
@@ -55,9 +57,9 @@
|
|
55
57
|
color: $govuk-secondary-text-colour;
|
56
58
|
}
|
57
59
|
|
58
|
-
// This adds an empty transparent box covering the whole row, including the
|
59
|
-
// any hint text. Because this is generated within the link
|
60
|
-
// to be clickable.
|
60
|
+
// This adds an empty transparent box covering the whole row, including the
|
61
|
+
// task status and any hint text. Because this is generated within the link
|
62
|
+
// element, this allows the whole area to be clickable.
|
61
63
|
.govuk-task-list__link::after {
|
62
64
|
content: "";
|
63
65
|
display: block;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/task-list/_index.scss"],"names":[],"mappings":"AAAA,sBAAsB;;AAEtB;EACE,yDAAyD;;EAEzD;IACE,8BAA8B;IAC9B,aAAa;IACb,6CAA6C;IAC7C,UAAU;IACV,qBAAqB;EACvB;;EAEA,
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/task-list/_index.scss"],"names":[],"mappings":"AAAA,sBAAsB;;AAEtB;EACE,yDAAyD;;EAEzD;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,6CAA6C;EAC/C;;EAEA;IACE,0CAA0C;EAC5C;;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,mCAAmC;EACrC;;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,mCAAmC;EACrC;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(\"light-grey\");\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 $govuk-border-colour;\n }\n\n .govuk-task-list__item:first-child {\n border-top: 1px solid $govuk-border-colour;\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-secondary-text-colour;\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-secondary-text-colour;\n }\n}\n"]}
|
@@ -43,7 +43,8 @@
|
|
43
43
|
"hidden": false,
|
44
44
|
"description": "",
|
45
45
|
"previewLayoutModifiers": [],
|
46
|
-
"
|
46
|
+
"screenshot": false,
|
47
|
+
"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--blue\">\n Incomplete\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-status\">\n Business plan\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-3-status\">\n <strong class=\"govuk-tag govuk-tag--blue\">\n Incomplete\n </strong>\n </div>\n </li>\n</ul>"
|
47
48
|
},
|
48
49
|
{
|
49
50
|
"name": "example with 3 states",
|
@@ -99,7 +100,8 @@
|
|
99
100
|
"hidden": false,
|
100
101
|
"description": "",
|
101
102
|
"previewLayoutModifiers": [],
|
102
|
-
"
|
103
|
+
"screenshot": false,
|
104
|
+
"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--light-blue\">\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-status\">\n Business plan\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-3-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-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--light-blue\">\n Not started\n </strong>\n </div>\n </li>\n</ul>"
|
103
105
|
},
|
104
106
|
{
|
105
107
|
"name": "example with hint text and additional states",
|
@@ -182,7 +184,8 @@
|
|
182
184
|
"hidden": false,
|
183
185
|
"description": "",
|
184
186
|
"previewLayoutModifiers": [],
|
185
|
-
"
|
187
|
+
"screenshot": false,
|
188
|
+
"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--light-blue\">\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--pink\">\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>"
|
186
189
|
},
|
187
190
|
{
|
188
191
|
"name": "example with all possible colours",
|
@@ -332,7 +335,8 @@
|
|
332
335
|
"hidden": false,
|
333
336
|
"description": "",
|
334
337
|
"previewLayoutModifiers": [],
|
335
|
-
"
|
338
|
+
"screenshot": false,
|
339
|
+
"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--light-blue\">\n Light 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-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--turquoise\">\n Turquoise\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--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-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--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-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--pink\">\n Pink\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--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-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--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-12-status\">\n Task L\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-12-status\">\n <strong class=\"govuk-tag govuk-tag--yellow\">\n Yellow\n </strong>\n </div>\n </li>\n</ul>"
|
336
340
|
},
|
337
341
|
{
|
338
342
|
"name": "example with very long single word tags",
|
@@ -376,7 +380,8 @@
|
|
376
380
|
"hidden": false,
|
377
381
|
"description": "",
|
378
382
|
"previewLayoutModifiers": [],
|
379
|
-
"
|
383
|
+
"screenshot": false,
|
384
|
+
"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--blue\">\n Incomplete\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-status\">\n A very very very long Business plan\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-3-status\">\n <strong class=\"govuk-tag govuk-tag--blue\">\n Thisisaverylongwaytosaythatsomethingisincomplete\n </strong>\n </div>\n </li>\n</ul>"
|
380
385
|
},
|
381
386
|
{
|
382
387
|
"name": "custom classes",
|
@@ -414,7 +419,8 @@
|
|
414
419
|
"hidden": true,
|
415
420
|
"description": "",
|
416
421
|
"previewLayoutModifiers": [],
|
417
|
-
"
|
422
|
+
"screenshot": false,
|
423
|
+
"html": "<ul class=\"govuk-task-list custom-class-on-component\">\n <li class=\"govuk-task-list__item govuk-task-list__item--with-link custom-class-on-task\">\n <div class=\"govuk-task-list__name-and-hint\">\n <a class=\"govuk-link govuk-task-list__link custom-class-on-linked-title\" href=\"#\" aria-describedby=\"task-list-1-status\">\n A Link\n </a>\n </div>\n <div class=\"govuk-task-list__status custom-class-on-status\" id=\"task-list-1-status\">\n <strong class=\"govuk-tag custom-class-on-tag\">\n Status\n </strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item\">\n <div class=\"govuk-task-list__name-and-hint\">\n <div class=\"custom-class-on-unlinked-title\">\n Not a link\n </div>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-2-status\">\n <strong class=\"govuk-tag\">\n Status\n </strong>\n </div>\n </li>\n</ul>"
|
418
424
|
},
|
419
425
|
{
|
420
426
|
"name": "custom attributes",
|
@@ -442,7 +448,8 @@
|
|
442
448
|
"hidden": true,
|
443
449
|
"description": "",
|
444
450
|
"previewLayoutModifiers": [],
|
445
|
-
"
|
451
|
+
"screenshot": false,
|
452
|
+
"html": "<ul class=\"govuk-task-list\" data-custom-attribute=\"custom-value\">\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 A Link\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-1-status\">\n <strong class=\"govuk-tag\" data-tag-attribute=\"tag-value\">\n Status\n </strong>\n </div>\n </li>\n</ul>"
|
446
453
|
},
|
447
454
|
{
|
448
455
|
"name": "custom id prefix",
|
@@ -468,7 +475,8 @@
|
|
468
475
|
"hidden": true,
|
469
476
|
"description": "",
|
470
477
|
"previewLayoutModifiers": [],
|
471
|
-
"
|
478
|
+
"screenshot": false,
|
479
|
+
"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=\"my-custom-id-1-hint my-custom-id-1-status\">\n A Link\n </a>\n <div id=\"my-custom-id-1-hint\" class=\"govuk-task-list__hint\">\n Hint text\n </div>\n </div>\n <div class=\"govuk-task-list__status\" id=\"my-custom-id-1-status\">\n <strong class=\"govuk-tag\">\n Status\n </strong>\n </div>\n </li>\n</ul>"
|
472
480
|
},
|
473
481
|
{
|
474
482
|
"name": "html passed as text",
|
@@ -502,7 +510,8 @@
|
|
502
510
|
"hidden": true,
|
503
511
|
"description": "",
|
504
512
|
"previewLayoutModifiers": [],
|
505
|
-
"
|
513
|
+
"screenshot": false,
|
514
|
+
"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=\"my-custom-id-1-hint my-custom-id-1-status\">\n <strong>Linked Title</strong>\n </a>\n <div id=\"my-custom-id-1-hint\" class=\"govuk-task-list__hint\">\n <strong>Hint</strong>\n </div>\n </div>\n <div class=\"govuk-task-list__status\" id=\"my-custom-id-1-status\">\n <strong>Status</strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item\">\n <div class=\"govuk-task-list__name-and-hint\">\n <div>\n <strong>Unlinked Title</strong>\n </div>\n </div>\n <div class=\"govuk-task-list__status\" id=\"my-custom-id-2-status\">\n <strong class=\"govuk-tag\">\n <strong>Tag</strong>\n </strong>\n </div>\n </li>\n</ul>"
|
506
515
|
},
|
507
516
|
{
|
508
517
|
"name": "html",
|
@@ -536,7 +545,42 @@
|
|
536
545
|
"hidden": true,
|
537
546
|
"description": "",
|
538
547
|
"previewLayoutModifiers": [],
|
539
|
-
"
|
548
|
+
"screenshot": false,
|
549
|
+
"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=\"my-custom-id-1-hint my-custom-id-1-status\">\n <strong>Linked Title</strong>\n </a>\n <div id=\"my-custom-id-1-hint\" class=\"govuk-task-list__hint\">\n <strong>Hint</strong>\n </div>\n </div>\n <div class=\"govuk-task-list__status\" id=\"my-custom-id-1-status\">\n <strong>Status</strong>\n </div>\n </li>\n <li class=\"govuk-task-list__item\">\n <div class=\"govuk-task-list__name-and-hint\">\n <div>\n <strong>Unlinked Title</strong>\n </div>\n </div>\n <div class=\"govuk-task-list__status\" id=\"my-custom-id-2-status\">\n <strong class=\"govuk-tag\">\n <strong>Tag</strong>\n </strong>\n </div>\n </li>\n</ul>"
|
550
|
+
},
|
551
|
+
{
|
552
|
+
"name": "with empty values",
|
553
|
+
"options": {
|
554
|
+
"items": [
|
555
|
+
null,
|
556
|
+
null,
|
557
|
+
{
|
558
|
+
"title": {
|
559
|
+
"text": "Task A"
|
560
|
+
},
|
561
|
+
"href": "#",
|
562
|
+
"status": {
|
563
|
+
"text": "Completed"
|
564
|
+
}
|
565
|
+
},
|
566
|
+
false,
|
567
|
+
"",
|
568
|
+
{
|
569
|
+
"title": {
|
570
|
+
"text": "Task B"
|
571
|
+
},
|
572
|
+
"href": "#",
|
573
|
+
"status": {
|
574
|
+
"text": "Completed"
|
575
|
+
}
|
576
|
+
}
|
577
|
+
]
|
578
|
+
},
|
579
|
+
"hidden": false,
|
580
|
+
"description": "",
|
581
|
+
"previewLayoutModifiers": [],
|
582
|
+
"screenshot": false,
|
583
|
+
"html": "<ul class=\"govuk-task-list\">\n\n\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 A\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-3-status\">\n Completed\n </div>\n </li>\n\n\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 B\n </a>\n </div>\n <div class=\"govuk-task-list__status\" id=\"task-list-6-status\">\n Completed\n </div>\n </li>\n</ul>"
|
540
584
|
}
|
541
585
|
]
|
542
586
|
}
|