Browse Source

Use dedicated styles for each navigation component

pull/619/head
Paul Robert Lloyd 3 years ago committed by baarkerlounger
parent
commit
464218ba89
  1. 1
      app/frontend/styles/application.scss
  2. 6
      app/views/users/index.html.erb

1
app/frontend/styles/application.scss

@ -41,6 +41,7 @@ $govuk-breakpoints: (
@import "primary-navigation"; @import "primary-navigation";
@import "search"; @import "search";
@import "sub-navigation"; @import "sub-navigation";
@import "table"
// App utilities // App utilities
.app-\!-colour-muted { .app-\!-colour-muted {

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

@ -11,12 +11,12 @@
<%= render SearchComponent.new(current_user:, label: "Search by name or email address") %> <%= render SearchComponent.new(current_user:, label: "Search by name or email address") %>
<%= govuk_table do |table| %> <%= govuk_table do |table| %>
<%= table.caption(size: "s", classes: %w[govuk-!-text-align-left govuk-!-margin-top-4 govuk-!-margin-bottom-4]) do |caption| %> <%= table.caption(classes: %w[app-table__caption]) do |caption| %>
<span class="govuk-!-margin-right-4"> <span class="govuk-!-margin-right-4">
<% if @searched %> <% if @searched %>
<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>Matches <%= @pagy.count %> of <%= User.count %> total users</strong>
<% else %> <% else %>
<strong><%= @pagy.count %></strong><span style="font-weight: normal"> total users</span> <strong><%= @pagy.count %></strong> total users
<% end %> <% end %>
</span> </span>
<% if current_user.support? %> <% if current_user.support? %>

Loading…
Cancel
Save