Skip to content

Commit

Permalink
Filter panel: Fix hover underline
Browse files Browse the repository at this point in the history
There was a stray space at the beginning of the button element which was
causing the underline to cover more than just the text. This removes it
and increases the chevron margin instead.
  • Loading branch information
csutter committed Sep 20, 2024
1 parent c921d75 commit 2a7f0ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/components/_filter-panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}

&::before {
margin: 0 govuk-spacing(2) govuk-spacing(1) 0;
margin: 0 govuk-spacing(3) govuk-spacing(1) 0;
}
}

Expand Down
4 changes: 1 addition & 3 deletions app/views/components/_filter_panel.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
id: button_id,
class: "app-c-filter-panel__button govuk-link",
aria: { expanded: "false", controls: panel_content_id }
) do %>
<%= button_text %>
<% end %>
) { button_text } %>

<% if result_text.present? %>
<%= content_tag("h2", class: "app-c-filter-panel__count") do %>
Expand Down

0 comments on commit 2a7f0ab

Please sign in to comment.