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
@@ -1,70 +1,85 @@
|
|
1
|
+
{% from "../../macros/attributes.njk" import govukAttributes -%}
|
2
|
+
|
1
3
|
{% set blockLevel = not params.items and (params.next or params.previous) -%}
|
2
4
|
|
3
|
-
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
5
|
+
{%- set arrowPrevious -%}
|
6
|
+
<svg class="govuk-pagination__icon govuk-pagination__icon--prev" xmlns="http://www.w3.org/2000/svg" height="13" width="15" aria-hidden="true" focusable="false" viewBox="0 0 15 13">
|
7
|
+
<path d="m6.5938-0.0078125-6.7266 6.7266 6.7441 6.4062 1.377-1.449-4.1856-3.9768h12.896v-2h-12.984l4.2931-4.293-1.414-1.414z"></path>
|
8
|
+
</svg>
|
9
|
+
{%- endset -%}
|
10
|
+
|
11
|
+
{%- set arrowNext -%}
|
12
|
+
<svg class="govuk-pagination__icon govuk-pagination__icon--next" xmlns="http://www.w3.org/2000/svg" height="13" width="15" aria-hidden="true" focusable="false" viewBox="0 0 15 13">
|
13
|
+
<path d="m8.107-0.0078125-1.4136 1.414 4.2926 4.293h-12.986v2h12.896l-4.1855 3.9766 1.377 1.4492 6.7441-6.4062-6.7246-6.7266z"></path>
|
14
|
+
</svg>
|
15
|
+
{%- endset -%}
|
16
|
+
|
17
|
+
{%- macro _arrowLink(link, type = "next") %}
|
18
|
+
{% set arrowType = arrowPrevious if type == "prev" else arrowNext %}
|
19
|
+
<div class="govuk-pagination__{{ type }}">
|
20
|
+
<a class="govuk-link govuk-pagination__link" href="{{ link.href }}" rel="{{ type }}"
|
21
|
+
{{- govukAttributes(link.attributes) }}>
|
22
|
+
{% if blockLevel or type == "prev" %}
|
23
|
+
{{- arrowType | safe | indent(4, true) }}
|
24
|
+
{% endif %}
|
25
|
+
<span class="govuk-pagination__link-title {%- if blockLevel and not link.labelText %} govuk-pagination__link-title--decorated{% endif %}">
|
26
|
+
{{ caller() | safe | trim }}
|
27
|
+
</span>
|
28
|
+
{% if link.labelText and blockLevel %}
|
29
|
+
<span class="govuk-visually-hidden">:</span>
|
30
|
+
<span class="govuk-pagination__link-label">{{ link.labelText }}</span>
|
31
|
+
{% endif %}
|
32
|
+
{% if not blockLevel and type == "next" %}
|
33
|
+
{{- arrowType | safe | indent(4, true) }}
|
34
|
+
{% endif %}
|
35
|
+
</a>
|
36
|
+
</div>
|
37
|
+
{% endmacro -%}
|
38
|
+
|
39
|
+
{%- macro _pageItem(item) -%}
|
40
|
+
<li class="govuk-pagination__item {%- if item.current %} govuk-pagination__item--current{% endif %} {%- if item.ellipsis %} govuk-pagination__item--ellipses{% endif %}">
|
41
|
+
{% if item.ellipsis %}
|
42
|
+
⋯
|
43
|
+
{% else %}
|
44
|
+
<a class="govuk-link govuk-pagination__link" href="{{ item.href }}" aria-label="{{ item.visuallyHiddenText | default("Page " + item.number) }}"
|
45
|
+
{%- if item.current %} aria-current="page"{% endif %}
|
46
|
+
{{- govukAttributes(item.attributes) }}>
|
47
|
+
{{ item.number }}
|
48
|
+
</a>
|
23
49
|
{% endif %}
|
50
|
+
</li>
|
51
|
+
{%- endmacro -%}
|
24
52
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
<li class="govuk-pagination__item govuk-pagination__item--ellipses">⋯</li>
|
30
|
-
{%- elseif item.number -%}
|
31
|
-
<li class="govuk-pagination__item {%- if item.current %} govuk-pagination__item--current{% endif %}">
|
32
|
-
<a class="govuk-link govuk-pagination__link" href="{{ item.href }}" aria-label="{{ item.visuallyHiddenText | default("Page " + item.number) }}" {%- if item.current %} aria-current="page" {%- endif -%} {%- for attribute, value in item.attributes %} {{ attribute }}="{{ value }}" {%- endfor %}>
|
33
|
-
{{ item.number }}
|
34
|
-
</a>
|
35
|
-
</li>
|
36
|
-
{%- endif -%}
|
37
|
-
{%- endfor -%}
|
38
|
-
</ul>
|
39
|
-
{%- endif -%}
|
53
|
+
<nav class="govuk-pagination {%- if blockLevel %} govuk-pagination--block{% endif %} {%- if params.classes %} {{ params.classes }}{% endif %}" aria-label="{{ params.landmarkLabel | default("Pagination", true) }}"
|
54
|
+
{{- govukAttributes(params.attributes) }}>
|
55
|
+
{% set previous = params.previous %}
|
56
|
+
{% set next = params.next %}
|
40
57
|
|
41
|
-
{%- if
|
42
|
-
{
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
58
|
+
{%- if previous and previous.href %}
|
59
|
+
{% call _arrowLink(previous, "prev") %}
|
60
|
+
{% if previous.html or previous.text %}
|
61
|
+
{{ previous.html | safe | trim | indent(8) if previous.html else previous.text }}
|
62
|
+
{% else %}
|
63
|
+
Previous<span class="govuk-visually-hidden"> page</span>
|
64
|
+
{% endif %}
|
65
|
+
{% endcall %}
|
66
|
+
{%- endif %}
|
47
67
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
{{- nextArrow | safe -}}
|
66
|
-
{%- endif -%}
|
67
|
-
</a>
|
68
|
-
</div>
|
69
|
-
{%- endif -%}
|
68
|
+
{%- if params.items %}
|
69
|
+
<ul class="govuk-pagination__list">
|
70
|
+
{% for item in params.items %}
|
71
|
+
{{ _pageItem(item) | indent(2) }}
|
72
|
+
{% endfor %}
|
73
|
+
</ul>
|
74
|
+
{% endif %}
|
75
|
+
|
76
|
+
{%- if next and next.href %}
|
77
|
+
{% call _arrowLink(next, "next") %}
|
78
|
+
{% if next.html or next.text %}
|
79
|
+
{{ next.html | safe | trim | indent(8) if next.html else next.text }}
|
80
|
+
{% else %}
|
81
|
+
Next<span class="govuk-visually-hidden"> page</span>
|
82
|
+
{% endif %}
|
83
|
+
{% endcall %}
|
84
|
+
{% endif %}
|
70
85
|
</nav>
|
@@ -12,19 +12,23 @@
|
|
12
12
|
text-align: center;
|
13
13
|
|
14
14
|
@include govuk-media-query($until: tablet) {
|
15
|
-
padding: govuk-spacing(3) - $govuk-border-width;
|
15
|
+
padding: govuk-spacing(if($govuk-new-typography-scale, 4, 3)) - $govuk-border-width;
|
16
16
|
|
17
|
-
// This is an if-all-else-fails attempt to stop long words from
|
18
|
-
// on very narrow viewports by forcing them to
|
19
|
-
// overflowing is more likely to happen when
|
20
|
-
// iOS Safari text resize
|
17
|
+
// This is an if-all-else-fails attempt to stop long words from
|
18
|
+
// overflowing the container on very narrow viewports by forcing them to
|
19
|
+
// break and wrap instead. This overflowing is more likely to happen when
|
20
|
+
// user increases text size on a mobile eg. using iOS Safari text resize
|
21
|
+
// controls.
|
21
22
|
//
|
22
|
-
// The overflowing is a particular problem with the panel component since
|
23
|
-
// text: when the text overflows the container, it is
|
24
|
-
// background. When the text in our other
|
25
|
-
//
|
23
|
+
// The overflowing is a particular problem with the panel component since
|
24
|
+
// it uses white text: when the text overflows the container, it is
|
25
|
+
// invisible on the white (page) background. When the text in our other
|
26
|
+
// components overflow, the user might have to scroll horizontally to view
|
27
|
+
// it but the the text remains legible.
|
26
28
|
overflow-wrap: break-word;
|
27
|
-
|
29
|
+
|
30
|
+
// Support IE (autoprefixer doesn't add this as it's not a prefix)
|
31
|
+
word-wrap: break-word;
|
28
32
|
}
|
29
33
|
}
|
30
34
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/panel/_index.scss"],"names":[],"mappings":"AAAA;EACE;IACE,8BAA8B;;IAE9B,sBAAsB;;IAEtB,+BAA+B;IAC/B,+CAA+C;;IAE/C,6CAA6C;;IAE7C,kBAAkB;;IAElB;MACE
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/panel/_index.scss"],"names":[],"mappings":"AAAA;EACE;IACE,8BAA8B;;IAE9B,sBAAsB;;IAEtB,+BAA+B;IAC/B,+CAA+C;;IAE/C,6CAA6C;;IAE7C,kBAAkB;;IAElB;MACE,mFAAmF;;MAEnF,8DAA8D;MAC9D,uEAAuE;MACvE,wEAAwE;MACxE,uEAAuE;MACvE,WAAW;MACX,CAAC;MACD,wEAAwE;MACxE,kEAAkE;MAClE,sEAAsE;MACtE,yEAAyE;MACzE,sCAAsC;MACtC,yBAAyB;;MAEzB,iEAAiE;MACjE,qBAAqB;IACvB;EACF;;EAEA;IACE,4BAA4B;IAC5B,iCAAiC;;IAEjC;MACE,0BAA0B;MAC1B,+BAA+B;MAC/B,gBAAgB;IAClB;EACF;;EAEA;IACE,mCAAmC;IACnC,qCAAqC;IACrC,aAAa;IACb,+BAA+B;EACjC;;EAEA;IACE,gBAAgB;EAClB;AACF","file":"_index.scss","sourcesContent":["@include govuk-exports(\"govuk/component/panel\") {\n .govuk-panel {\n @include govuk-font($size: 36);\n\n box-sizing: border-box;\n\n margin-bottom: govuk-spacing(3);\n padding: govuk-spacing(7) - $govuk-border-width;\n\n border: $govuk-border-width solid transparent;\n\n text-align: center;\n\n @include govuk-media-query($until: tablet) {\n padding: govuk-spacing(if($govuk-new-typography-scale, 4, 3)) - $govuk-border-width;\n\n // This is an if-all-else-fails attempt to stop long words from\n // overflowing the container on very narrow viewports by forcing them to\n // break and wrap instead. This overflowing is more likely to happen when\n // user increases text size on a mobile eg. using iOS Safari text resize\n // controls.\n //\n // The overflowing is a particular problem with the panel component since\n // it uses white text: when the text overflows the container, it is\n // invisible on the white (page) background. When the text in our other\n // components overflow, the user might have to scroll horizontally to view\n // it but the the text remains legible.\n overflow-wrap: break-word;\n\n // Support IE (autoprefixer doesn't add this as it's not a prefix)\n word-wrap: break-word;\n }\n }\n\n .govuk-panel--confirmation {\n color: govuk-colour(\"white\");\n background: govuk-colour(\"green\");\n\n @include govuk-media-query($media-type: print) {\n border-color: currentcolor;\n color: $govuk-print-text-colour;\n background: none;\n }\n }\n\n .govuk-panel__title {\n @include govuk-font-size($size: 48);\n @include govuk-typography-weight-bold;\n margin-top: 0;\n margin-bottom: govuk-spacing(6);\n }\n\n .govuk-panel__title:last-child {\n margin-bottom: 0;\n }\n}\n"]}
|
@@ -10,6 +10,7 @@
|
|
10
10
|
"hidden": false,
|
11
11
|
"description": "",
|
12
12
|
"previewLayoutModifiers": [],
|
13
|
+
"screenshot": false,
|
13
14
|
"html": "<div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Application complete\n </h1>\n <div class=\"govuk-panel__body\">\n Your reference number: HDJ2123F\n </div>\n</div>"
|
14
15
|
},
|
15
16
|
{
|
@@ -22,6 +23,7 @@
|
|
22
23
|
"hidden": false,
|
23
24
|
"description": "",
|
24
25
|
"previewLayoutModifiers": [],
|
26
|
+
"screenshot": false,
|
25
27
|
"html": "<div class=\"govuk-panel govuk-panel--confirmation\">\n <h2 class=\"govuk-panel__title\">\n Application complete\n </h2>\n <div class=\"govuk-panel__body\">\n Your reference number: HDJ2123F\n </div>\n</div>"
|
26
28
|
},
|
27
29
|
{
|
@@ -33,6 +35,7 @@
|
|
33
35
|
"hidden": true,
|
34
36
|
"description": "",
|
35
37
|
"previewLayoutModifiers": [],
|
38
|
+
"screenshot": false,
|
36
39
|
"html": "<div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Application <strong>not</strong> complete\n </h1>\n <div class=\"govuk-panel__body\">\n Please complete form 1\n </div>\n</div>"
|
37
40
|
},
|
38
41
|
{
|
@@ -44,6 +47,7 @@
|
|
44
47
|
"hidden": true,
|
45
48
|
"description": "",
|
46
49
|
"previewLayoutModifiers": [],
|
50
|
+
"screenshot": false,
|
47
51
|
"html": "<div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Application <strong>not</strong> complete\n </h1>\n <div class=\"govuk-panel__body\">\n Please complete <strong>form 1</strong>\n </div>\n</div>"
|
48
52
|
},
|
49
53
|
{
|
@@ -55,6 +59,7 @@
|
|
55
59
|
"hidden": true,
|
56
60
|
"description": "",
|
57
61
|
"previewLayoutModifiers": [],
|
62
|
+
"screenshot": false,
|
58
63
|
"html": "<div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Application complete\n </h1>\n <div class=\"govuk-panel__body\">\n Your reference number<br><strong>HDJ2123F</strong>\n </div>\n</div>"
|
59
64
|
},
|
60
65
|
{
|
@@ -66,6 +71,7 @@
|
|
66
71
|
"hidden": true,
|
67
72
|
"description": "",
|
68
73
|
"previewLayoutModifiers": [],
|
74
|
+
"screenshot": false,
|
69
75
|
"html": "<div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Application complete\n </h1>\n <div class=\"govuk-panel__body\">\n Your reference number<br><strong>HDJ2123F</strong>\n </div>\n</div>"
|
70
76
|
},
|
71
77
|
{
|
@@ -78,6 +84,7 @@
|
|
78
84
|
"hidden": true,
|
79
85
|
"description": "",
|
80
86
|
"previewLayoutModifiers": [],
|
87
|
+
"screenshot": false,
|
81
88
|
"html": "<div class=\"govuk-panel govuk-panel--confirmation extra-class one-more-class\">\n <h1 class=\"govuk-panel__title\">\n Application complete\n </h1>\n <div class=\"govuk-panel__body\">\n Your reference number is HDJ2123F\n </div>\n</div>"
|
82
89
|
},
|
83
90
|
{
|
@@ -93,6 +100,7 @@
|
|
93
100
|
"hidden": true,
|
94
101
|
"description": "",
|
95
102
|
"previewLayoutModifiers": [],
|
103
|
+
"screenshot": false,
|
96
104
|
"html": "<div class=\"govuk-panel govuk-panel--confirmation\" first-attribute=\"foo\" second-attribute=\"bar\">\n <h1 class=\"govuk-panel__title\">\n Application complete\n </h1>\n <div class=\"govuk-panel__body\">\n Your reference number is HDJ2123F\n </div>\n</div>"
|
97
105
|
},
|
98
106
|
{
|
@@ -103,6 +111,7 @@
|
|
103
111
|
"hidden": true,
|
104
112
|
"description": "",
|
105
113
|
"previewLayoutModifiers": [],
|
114
|
+
"screenshot": false,
|
106
115
|
"html": "<div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Application complete\n </h1>\n</div>"
|
107
116
|
}
|
108
117
|
]
|
@@ -1,13 +1,16 @@
|
|
1
|
-
{%
|
1
|
+
{% from "../../macros/attributes.njk" import govukAttributes -%}
|
2
|
+
|
3
|
+
{% set headingLevel = params.headingLevel if params.headingLevel else 1 -%}
|
4
|
+
|
2
5
|
<div class="govuk-panel govuk-panel--confirmation
|
3
6
|
{%- if params.classes %} {{ params.classes }}{% endif %}"
|
4
|
-
{
|
7
|
+
{{- govukAttributes(params.attributes) }}>
|
5
8
|
<h{{ headingLevel }} class="govuk-panel__title">
|
6
9
|
{{ params.titleHtml | safe if params.titleHtml else params.titleText }}
|
7
10
|
</h{{ headingLevel }}>
|
8
11
|
{% if caller or params.html or params.text %}
|
9
12
|
<div class="govuk-panel__body">
|
10
|
-
{{ caller() if caller else (params.html | safe if params.html else params.text) }}
|
13
|
+
{{ caller() if caller else (params.html | safe | trim | indent(4) if params.html else params.text) }}
|
11
14
|
</div>
|
12
15
|
{% endif %}
|
13
16
|
</div>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
@import "../button/index";
|
2
|
+
@import "../input/index";
|
3
|
+
|
4
|
+
@include govuk-exports("govuk/component/password-input") {
|
5
|
+
.govuk-password-input__wrapper {
|
6
|
+
// This element inherits styles from .govuk-input__wrapper, including:
|
7
|
+
// - being display: block with contents in a stacked column below the mobile
|
8
|
+
// breakpoint
|
9
|
+
// - being display: flex above the mobile breakpoint
|
10
|
+
|
11
|
+
@include govuk-media-query($from: mobile) {
|
12
|
+
flex-direction: row;
|
13
|
+
|
14
|
+
// The default of `stretch` makes the toggle button appear taller than the
|
15
|
+
// input, due to using box-shadow, which we don't particularly want in
|
16
|
+
// this situation
|
17
|
+
align-items: flex-start;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.govuk-password-input__input {
|
22
|
+
// IE 11 and Microsoft Edge comes with its own password reveal function. We
|
23
|
+
// want to hide it, so that there aren't two controls presented to the user
|
24
|
+
// that do the same thing but aren't in sync with one another. This doesn't
|
25
|
+
// affect the function that allows Edge users to toggle password visibility
|
26
|
+
// by pressing Alt+F8, which cannot be programmatically disabled.
|
27
|
+
&::-ms-reveal {
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.govuk-password-input__toggle {
|
33
|
+
// Add top margin so the button doesn't obscure the input's focus style
|
34
|
+
margin-top: govuk-spacing(1);
|
35
|
+
|
36
|
+
// Remove default margin-bottom from button
|
37
|
+
margin-bottom: 0;
|
38
|
+
|
39
|
+
// Hide the button by default, JS removes this attribute
|
40
|
+
&[hidden] {
|
41
|
+
display: none;
|
42
|
+
}
|
43
|
+
|
44
|
+
@include govuk-media-query($from: mobile) {
|
45
|
+
// Buttons are normally 100% wide on mobile, but we don't want that here
|
46
|
+
width: auto;
|
47
|
+
flex-shrink: 0;
|
48
|
+
flex-basis: 5em;
|
49
|
+
|
50
|
+
// Move the spacing from top to the left
|
51
|
+
margin-top: 0;
|
52
|
+
margin-left: govuk-spacing(1);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
/*# sourceMappingURL=_index.scss.map */
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/password-input/_index.scss"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,wBAAwB;;AAExB;EACE;IACE,qEAAqE;IACrE,2EAA2E;IAC3E,cAAc;IACd,mDAAmD;;IAEnD;MACE,mBAAmB;;MAEnB,yEAAyE;MACzE,qEAAqE;MACrE,gBAAgB;MAChB,uBAAuB;IACzB;EACF;;EAEA;IACE,0EAA0E;IAC1E,0EAA0E;IAC1E,0EAA0E;IAC1E,0EAA0E;IAC1E,gEAAgE;IAChE;MACE,aAAa;IACf;EACF;;EAEA;IACE,sEAAsE;IACtE,4BAA4B;;IAE5B,0CAA0C;IAC1C,gBAAgB;;IAEhB,uDAAuD;IACvD;MACE,aAAa;IACf;;IAEA;MACE,uEAAuE;MACvE,WAAW;MACX,cAAc;MACd,eAAe;;MAEf,uCAAuC;MACvC,aAAa;MACb,6BAA6B;IAC/B;EACF;AACF","file":"_index.scss","sourcesContent":["@import \"../button/index\";\n@import \"../input/index\";\n\n@include govuk-exports(\"govuk/component/password-input\") {\n .govuk-password-input__wrapper {\n // This element inherits styles from .govuk-input__wrapper, including:\n // - being display: block with contents in a stacked column below the mobile\n // breakpoint\n // - being display: flex above the mobile breakpoint\n\n @include govuk-media-query($from: mobile) {\n flex-direction: row;\n\n // The default of `stretch` makes the toggle button appear taller than the\n // input, due to using box-shadow, which we don't particularly want in\n // this situation\n align-items: flex-start;\n }\n }\n\n .govuk-password-input__input {\n // IE 11 and Microsoft Edge comes with its own password reveal function. We\n // want to hide it, so that there aren't two controls presented to the user\n // that do the same thing but aren't in sync with one another. This doesn't\n // affect the function that allows Edge users to toggle password visibility\n // by pressing Alt+F8, which cannot be programmatically disabled.\n &::-ms-reveal {\n display: none;\n }\n }\n\n .govuk-password-input__toggle {\n // Add top margin so the button doesn't obscure the input's focus style\n margin-top: govuk-spacing(1);\n\n // Remove default margin-bottom from button\n margin-bottom: 0;\n\n // Hide the button by default, JS removes this attribute\n &[hidden] {\n display: none;\n }\n\n @include govuk-media-query($from: mobile) {\n // Buttons are normally 100% wide on mobile, but we don't want that here\n width: auto;\n flex-shrink: 0;\n flex-basis: 5em;\n\n // Move the spacing from top to the left\n margin-top: 0;\n margin-left: govuk-spacing(1);\n }\n }\n}\n"]}
|
data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/password-input/_password-input.scss"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,iBAAiB","file":"_password-input.scss","sourcesContent":["@import \"../../base\";\n@import \"./index\";\n"]}
|
@@ -0,0 +1,196 @@
|
|
1
|
+
{
|
2
|
+
"component": "password-input",
|
3
|
+
"fixtures": [
|
4
|
+
{
|
5
|
+
"name": "default",
|
6
|
+
"options": {
|
7
|
+
"label": {
|
8
|
+
"text": "Password"
|
9
|
+
},
|
10
|
+
"id": "password-input",
|
11
|
+
"name": "password"
|
12
|
+
},
|
13
|
+
"hidden": false,
|
14
|
+
"description": "",
|
15
|
+
"previewLayoutModifiers": [],
|
16
|
+
"screenshot": false,
|
17
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\">\n <label class=\"govuk-label\" for=\"password-input\">\n Password\n </label>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input\" id=\"password-input\" name=\"password\" type=\"password\" spellcheck=\"false\" autocomplete=\"current-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"password-input\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"name": "with hint text",
|
21
|
+
"options": {
|
22
|
+
"label": {
|
23
|
+
"text": "Password"
|
24
|
+
},
|
25
|
+
"hint": {
|
26
|
+
"text": "It probably has some letters, numbers and maybe even some symbols in it."
|
27
|
+
},
|
28
|
+
"id": "password-input-with-hint-text",
|
29
|
+
"name": "test-name-2"
|
30
|
+
},
|
31
|
+
"hidden": false,
|
32
|
+
"description": "",
|
33
|
+
"previewLayoutModifiers": [],
|
34
|
+
"screenshot": false,
|
35
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\">\n <label class=\"govuk-label\" for=\"password-input-with-hint-text\">\n Password\n </label>\n <div id=\"password-input-with-hint-text-hint\" class=\"govuk-hint\">\n It probably has some letters, numbers and maybe even some symbols in it.\n </div>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input\" id=\"password-input-with-hint-text\" name=\"test-name-2\" type=\"password\" spellcheck=\"false\" aria-describedby=\"password-input-with-hint-text-hint\" autocomplete=\"current-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"password-input-with-hint-text\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"name": "with error message",
|
39
|
+
"options": {
|
40
|
+
"label": {
|
41
|
+
"text": "Password"
|
42
|
+
},
|
43
|
+
"hint": {
|
44
|
+
"text": "It probably has some letters, numbers and maybe even some symbols in it."
|
45
|
+
},
|
46
|
+
"id": "password-input-with-error-message",
|
47
|
+
"name": "test-name-3",
|
48
|
+
"errorMessage": {
|
49
|
+
"text": "Error message goes here"
|
50
|
+
}
|
51
|
+
},
|
52
|
+
"hidden": false,
|
53
|
+
"description": "",
|
54
|
+
"previewLayoutModifiers": [],
|
55
|
+
"screenshot": false,
|
56
|
+
"html": "<div class=\"govuk-form-group govuk-form-group--error govuk-password-input\" data-module=\"govuk-password-input\">\n <label class=\"govuk-label\" for=\"password-input-with-error-message\">\n Password\n </label>\n <div id=\"password-input-with-error-message-hint\" class=\"govuk-hint\">\n It probably has some letters, numbers and maybe even some symbols in it.\n </div>\n <p id=\"password-input-with-error-message-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message goes here\n </p>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input govuk-input--error\" id=\"password-input-with-error-message\" name=\"test-name-3\" type=\"password\" spellcheck=\"false\" aria-describedby=\"password-input-with-error-message-hint password-input-with-error-message-error\" autocomplete=\"current-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"password-input-with-error-message\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"name": "with label as page heading",
|
60
|
+
"options": {
|
61
|
+
"label": {
|
62
|
+
"text": "Password",
|
63
|
+
"classes": "govuk-label--l",
|
64
|
+
"isPageHeading": true
|
65
|
+
},
|
66
|
+
"id": "password-input-with-page-heading",
|
67
|
+
"name": "test-name"
|
68
|
+
},
|
69
|
+
"hidden": false,
|
70
|
+
"description": "",
|
71
|
+
"previewLayoutModifiers": [],
|
72
|
+
"screenshot": false,
|
73
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--l\" for=\"password-input-with-page-heading\">\n Password\n </label>\n </h1>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input\" id=\"password-input-with-page-heading\" name=\"test-name\" type=\"password\" spellcheck=\"false\" autocomplete=\"current-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"password-input-with-page-heading\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"name": "with input width class",
|
77
|
+
"options": {
|
78
|
+
"label": {
|
79
|
+
"text": "Password"
|
80
|
+
},
|
81
|
+
"id": "password-input-width",
|
82
|
+
"name": "password",
|
83
|
+
"classes": "govuk-input--width-10"
|
84
|
+
},
|
85
|
+
"hidden": false,
|
86
|
+
"description": "",
|
87
|
+
"previewLayoutModifiers": [],
|
88
|
+
"screenshot": false,
|
89
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\">\n <label class=\"govuk-label\" for=\"password-input-width\">\n Password\n </label>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input govuk-input--width-10\" id=\"password-input-width\" name=\"password\" type=\"password\" spellcheck=\"false\" autocomplete=\"current-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"password-input-width\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"name": "with new-password autocomplete",
|
93
|
+
"options": {
|
94
|
+
"label": {
|
95
|
+
"text": "Password"
|
96
|
+
},
|
97
|
+
"autocomplete": "new-password",
|
98
|
+
"id": "password-input-new-password",
|
99
|
+
"name": "password"
|
100
|
+
},
|
101
|
+
"hidden": false,
|
102
|
+
"description": "Supporting browsers and password managers should prompt to generate a password.",
|
103
|
+
"previewLayoutModifiers": [],
|
104
|
+
"screenshot": false,
|
105
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\">\n <label class=\"govuk-label\" for=\"password-input-new-password\">\n Password\n </label>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input\" id=\"password-input-new-password\" name=\"password\" type=\"password\" spellcheck=\"false\" autocomplete=\"new-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"password-input-new-password\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"name": "with translations",
|
109
|
+
"options": {
|
110
|
+
"label": {
|
111
|
+
"text": "Cyfrinair"
|
112
|
+
},
|
113
|
+
"id": "password-translated",
|
114
|
+
"name": "password-translated",
|
115
|
+
"showPasswordText": "Datguddia",
|
116
|
+
"hidePasswordText": "Cuddio",
|
117
|
+
"showPasswordAriaLabelText": "Datgelu cyfrinair",
|
118
|
+
"hidePasswordAriaLabelText": "Cuddio cyfrinair",
|
119
|
+
"passwordShownAnnouncementText": "Mae eich cyfrinair yn weladwy.",
|
120
|
+
"passwordHiddenAnnouncementText": "Mae eich cyfrinair wedi'i guddio."
|
121
|
+
},
|
122
|
+
"hidden": false,
|
123
|
+
"description": "",
|
124
|
+
"previewLayoutModifiers": [],
|
125
|
+
"screenshot": false,
|
126
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\" data-i18n.show-password=\"Datguddia\" data-i18n.hide-password=\"Cuddio\" data-i18n.show-password-aria-label=\"Datgelu cyfrinair\" data-i18n.hide-password-aria-label=\"Cuddio cyfrinair\" data-i18n.password-shown-announcement=\"Mae eich cyfrinair yn weladwy.\" data-i18n.password-hidden-announcement=\"Mae eich cyfrinair wedi'i guddio.\">\n <label class=\"govuk-label\" for=\"password-translated\">\n Cyfrinair\n </label>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input\" id=\"password-translated\" name=\"password-translated\" type=\"password\" spellcheck=\"false\" autocomplete=\"current-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"password-translated\" aria-label=\"Datgelu cyfrinair\" hidden>\n Datguddia\n </button>\n </div>\n</div>"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"name": "classes",
|
130
|
+
"options": {
|
131
|
+
"id": "with-classes",
|
132
|
+
"name": "with-classes",
|
133
|
+
"label": {
|
134
|
+
"text": "With classes"
|
135
|
+
},
|
136
|
+
"classes": "app-input--custom-modifier"
|
137
|
+
},
|
138
|
+
"hidden": true,
|
139
|
+
"description": "",
|
140
|
+
"previewLayoutModifiers": [],
|
141
|
+
"screenshot": false,
|
142
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\">\n <label class=\"govuk-label\" for=\"with-classes\">\n With classes\n </label>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input app-input--custom-modifier\" id=\"with-classes\" name=\"with-classes\" type=\"password\" spellcheck=\"false\" autocomplete=\"current-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"with-classes\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"name": "value",
|
146
|
+
"options": {
|
147
|
+
"id": "with-value",
|
148
|
+
"name": "with-value",
|
149
|
+
"label": {
|
150
|
+
"text": "With value"
|
151
|
+
},
|
152
|
+
"value": "Hunter2"
|
153
|
+
},
|
154
|
+
"hidden": true,
|
155
|
+
"description": "",
|
156
|
+
"previewLayoutModifiers": [],
|
157
|
+
"screenshot": false,
|
158
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\">\n <label class=\"govuk-label\" for=\"with-value\">\n With value\n </label>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input\" id=\"with-value\" name=\"with-value\" type=\"password\" spellcheck=\"false\" value=\"Hunter2\" autocomplete=\"current-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"with-value\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"name": "attributes",
|
162
|
+
"options": {
|
163
|
+
"id": "with-attributes",
|
164
|
+
"name": "with-attributes",
|
165
|
+
"label": {
|
166
|
+
"text": "With attributes"
|
167
|
+
},
|
168
|
+
"attributes": {
|
169
|
+
"data-attribute": "value",
|
170
|
+
"data-another": "ok"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"hidden": true,
|
174
|
+
"description": "",
|
175
|
+
"previewLayoutModifiers": [],
|
176
|
+
"screenshot": false,
|
177
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\">\n <label class=\"govuk-label\" for=\"with-attributes\">\n With attributes\n </label>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input\" id=\"with-attributes\" name=\"with-attributes\" type=\"password\" spellcheck=\"false\" autocomplete=\"current-password\" autocapitalize=\"none\" data-attribute=\"value\" data-another=\"ok\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"with-attributes\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"name": "with describedBy",
|
181
|
+
"options": {
|
182
|
+
"id": "with-describedby",
|
183
|
+
"name": "with-describedby",
|
184
|
+
"label": {
|
185
|
+
"text": "With describedBy"
|
186
|
+
},
|
187
|
+
"describedBy": "test-target-element"
|
188
|
+
},
|
189
|
+
"hidden": true,
|
190
|
+
"description": "",
|
191
|
+
"previewLayoutModifiers": [],
|
192
|
+
"screenshot": false,
|
193
|
+
"html": "<div class=\"govuk-form-group govuk-password-input\" data-module=\"govuk-password-input\">\n <label class=\"govuk-label\" for=\"with-describedby\">\n With describedBy\n </label>\n <div class=\"govuk-input__wrapper govuk-password-input__wrapper\">\n <input class=\"govuk-input govuk-password-input__input govuk-js-password-input-input\" id=\"with-describedby\" name=\"with-describedby\" type=\"password\" spellcheck=\"false\" aria-describedby=\"test-target-element\" autocomplete=\"current-password\" autocapitalize=\"none\">\n <button type=\"button\" class=\"govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle\" data-module=\"govuk-button\" aria-controls=\"with-describedby\" aria-label=\"Show password\" hidden>\n Show\n </button>\n </div>\n</div>"
|
194
|
+
}
|
195
|
+
]
|
196
|
+
}
|