mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-13 09:50:08 -04:00
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:
@@ -76,20 +76,18 @@
|
||||
|
||||
}
|
||||
|
||||
.align-button-with-textbox {
|
||||
.search-form__button {
|
||||
@include media(desktop) {
|
||||
position: relative;
|
||||
top: 32px;
|
||||
left: -30px;
|
||||
width: 100%;
|
||||
margin-right: -30px;
|
||||
padding-top: 7px;
|
||||
box-sizing: content-box;
|
||||
|
||||
.button {
|
||||
|
||||
@include media(desktop) {
|
||||
position: relative;
|
||||
&:active {
|
||||
top: 32px;
|
||||
left: -30px;
|
||||
width: 100%;
|
||||
margin-right: -30px;
|
||||
padding-top: 8px;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% extends "views/platform-admin/_base_template.html" %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
{% from "components/button/macro.njk" import govukButton %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Find services by name
|
||||
@@ -24,9 +25,12 @@
|
||||
label='Find services by name, or by partial name'
|
||||
) }}
|
||||
</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 %}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% extends "views/platform-admin/_base_template.html" %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
{% from "components/button/macro.njk" import govukButton %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Find users by email
|
||||
@@ -24,9 +25,12 @@
|
||||
label='Find users by email, or by partial email'
|
||||
) }}
|
||||
</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 %}
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user