alphagov / govuk-prototype-kit

Rapidly create HTML prototypes of GOV.UK services
https://prototype-kit.service.gov.uk
MIT License
303 stars 236 forks source link

Associate the plugin search input with its label #2398

Closed 36degrees closed 6 months ago

36degrees commented 6 months ago

I was having a quick look to see if any issues were listed in developer tools for #2393 and noticed this was being flagged.

The search input on the plugin list page does not have a programatically label because the label is not currently associated with the input.

Rather than using the separate govukLabel macro, pass the label options to the govukInput macro and let it take care of associating the label for us.

We can also use the govuk-label--s modifier rather than a font weight override.