Skip to content

Commit c05c12e

Browse files
committed
Remove unused 'size' attribute from hint text
We were providing a 'hint' attribute to the hint text on the name settings page. This isn't supported by the design system or the `govuk_design_system_formbuilder` gem, so all it does is add an unsupported HTML attribute. This commit removes it.
1 parent 20b0bd7 commit c05c12e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/views/pages/name_settings.html.erb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
->(option) { t('helpers.label.page.name_settings_options.names.' + option) },
1818
->(option) { t('helpers.label.page.name_settings_options.hints.' + option) },
1919
legend: { text: t("helpers.label.page.name_settings_options.legends.input_type") },
20-
hint: { text: t("helpers.label.page.name_settings_options.hints.input_type"), size: 'm' },
20+
hint: { text: t("helpers.label.page.name_settings_options.hints.input_type") },
2121
bold_labels: false,
2222
) %>
2323
<%= f.govuk_collection_radio_buttons(
@@ -26,7 +26,7 @@
2626
->(option) { option },
2727
->(option) { t('helpers.label.page.name_settings_options.names.' + option) },
2828
legend: { text: t("helpers.label.page.name_settings_options.legends.title") },
29-
hint: { text: t("helpers.label.page.name_settings_options.hints.title"), size: 'm' },
29+
hint: { text: t("helpers.label.page.name_settings_options.hints.title") },
3030
) %>
3131
<%= f.govuk_submit t('continue') %>
3232
<% end %>
@@ -36,4 +36,3 @@
3636
</p>
3737
</div>
3838
</div>
39-

0 commit comments

Comments
 (0)