Browse Source

Linting

pull/600/head
baarkerlounger 3 years ago
parent
commit
e707c25ae3
  1. 14
      app/frontend/styles/_search.scss
  2. 4
      app/views/users/index.html.erb

14
app/frontend/styles/_search.scss

@ -2,23 +2,23 @@
@include govuk-responsive-margin(6, "bottom");
display: flex;
align-items: end;
}
}
.app-search__form-group {
.app-search__form-group {
flex: 1;
margin-bottom: 0;
}
}
.app-search__input {
.app-search__input {
background-image: url("data:image/svg+xml,%3Csvg class='app-search__icon' width='20' height='20' viewBox='0 0 27 27' fill='none' xmlns='http://www.w3.org/2000/svg' aria-hidden='true' focusable='false'%3E%3Ccircle cx='12.0161' cy='11.0161' r='8.51613' stroke='currentColor' stroke-width='3'%3E%3C/circle%3E%3Cline x1='17.8668' y1='17.3587' x2='26.4475' y2='25.9393' stroke='currentColor' stroke-width='3'%3E%3C/line%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 1em 1em;
background-position: 7px center;
padding-left: govuk-spacing(6);
}
}
.app-search__button {
.app-search__button {
margin-left: govuk-spacing(1);
margin-bottom: 2px;
width: auto;
}
}

4
app/views/users/index.html.erb

@ -16,7 +16,7 @@
Search by name or email address
</label>
<input class="govuk-input app-search__input" id="user-search-field" name="user-search-field" type="search">
<input class="govuk-input app-search__input" id="user-search-field" name="user-search-field" type="search" autocomplete="off">
</div>
<button class="govuk-button app-search__button undefined" data-module="govuk-button">
@ -29,7 +29,7 @@
<%= govuk_table do |table| %>
<%= table.caption(size: "s", classes: %w[govuk-!-text-align-left govuk-!-margin-top-4 govuk-!-margin-bottom-4]) do |caption| %>
<span class="govuk-!-margin-right-4">
<strong><span style="font-weight: normal"> Matches </span><%= @pagy.count %><span style="font-weight: normal"> of </span><%= User.count%> <span style="font-weight: normal"> total users</strong> </span>
<strong><span style="font-weight: normal"> Matches </span><%= @pagy.count %><span style="font-weight: normal"> of </span><%= User.count %> <span style="font-weight: normal"> total users</strong> </span>
</span>
<% if current_user.support? %>
<%= govuk_link_to "Download (CSV)", "/users.csv", type: "text/csv" %>

Loading…
Cancel
Save