Skip to content

Commit

Permalink
Merge pull request #2398 from alphagov/plugin-search-input
Browse files Browse the repository at this point in the history
Associate the plugin search input with its label
  • Loading branch information
36degrees authored Mar 4, 2024
2 parents bfb9c8e + 653d635 commit 74941c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [#2327: Use GOV.UK Frontend v5 on management pages and tests](https://github.com/alphagov/govuk-prototype-kit/pull/2327)
- [#2394: Update Browsersync to resolve `axios` vulnerability](https://github.com/alphagov/govuk-prototype-kit/pull/2394)
- [#2395: Update to GOV.UK Frontend v5.2.0 on management pages](https://github.com/alphagov/govuk-prototype-kit/pull/2395)
- [#2398: Associate the plugin search input with its label](https://github.com/alphagov/govuk-prototype-kit/pull/2398)
- [#2399: Stop accidentally cleaning up non-expired sessions](https://github.com/alphagov/govuk-prototype-kit/pull/2399)

## 13.16.0
Expand Down
10 changes: 4 additions & 6 deletions lib/nunjucks/views/manage-prototype/plugins.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "views/manage-prototype/layout.njk" %}
{% from "govuk/components/button/macro.njk" import govukButton %}
{% from "govuk/components/label/macro.njk" import govukLabel %}
{% from "govuk/components/input/macro.njk" import govukInput %}
{% from "govuk/components/tag/macro.njk" import govukTag %}

Expand Down Expand Up @@ -48,13 +47,12 @@
{% if isSearchPage %}
<div class="govuk-!-margin-bottom-5">
<div id="search-container">
{{ govukLabel({
text:"Search",
classes:"govuk-!-font-weight-bold"
}) }}

{{ govukInput({
id: "search",
label: {
text: "Search",
classes: "govuk-label--s"
},
classes: "govuk-!-width-one-half",
formGroup: {
classes: "govuk-!-margin-bottom-3"
Expand Down

0 comments on commit 74941c2

Please sign in to comment.