Update buttons that are inline with search box

There were 3 pages where we had a search button inline with a text box.
This replaces the search button with a button from govuk-frontend and
updates the way we style this button to use BEM, which is the style we
now want to use.
This commit is contained in:
Katie Smith
2020-01-30 11:44:20 +00:00
parent f3bb93f460
commit 7ff8b73088
4 changed files with 28 additions and 18 deletions

View File

@@ -4,6 +4,7 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/textbox.html" import textbox %}
{% from "components/form.html" import form_wrapper %}
{% from "components/button/macro.njk" import govukButton %}
{% set title_status = (
'Failed '
@@ -50,9 +51,12 @@
)
) }}
</div>
<div class="column-one-quarter align-button-with-textbox">
<div class="column-one-quarter">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button type="submit" class="button">Search</button>
{{ govukButton({
"text": "Search",
"classes": "search-form__button"
}) }}
</div>
{% endcall %}