Skip to content

Commit

Permalink
Update list component usage to reflect breaking change
Browse files Browse the repository at this point in the history
govuk_publishing_components version 48.0.0 added the component wrapper
to the list component [^1] requiring usage to reflect the component wrapper [^2]
which replaces the `aria_label` option with `aria` as a hash containing multiple
properties.

[^1]: Changelog https://github.com/alphagov/govuk_publishing_components/blob/main/CHANGELOG.md#4800
[^2]: Component wrapper helper docs https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component-wrapper-helper.md
  • Loading branch information
gtvj committed Jan 14, 2025
1 parent 215b91b commit 9e5f387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/admin/governments/prepare_to_close.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
} %>

<%= render "govuk_publishing_components/components/list", {
aria_label: "A list of active ministerial appointments.",
aria: {
label: "A list of active ministerial appointments.",
},
visible_counters: true,
extra_spacing: true,
margin_bottom: 8,
Expand Down

0 comments on commit 9e5f387

Please sign in to comment.