Skip to content

Commit

Permalink
Merge pull request #4225 from alphagov/fix-label-styles
Browse files Browse the repository at this point in the history
Fix inconsistent search label appearance
  • Loading branch information
andysellick authored Sep 16, 2024
2 parents 33d2a29 + 274fba5 commit 47ab761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ $large-input-size: 50px;
}
}

.gem-c-search__label--white {
.govuk-label.gem-c-search__label--white {
color: govuk-colour("white");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<%
add_gem_component_stylesheet("search")
add_gem_component_stylesheet("label")

shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
heading_helper = GovukPublishingComponents::Presenters::HeadingHelper.new(local_assigns)
Expand Down Expand Up @@ -51,10 +52,8 @@
end
end
%>

<div class="<%= classes.join(" ") %>" data-module="gem-toggle-input-class-on-focus">
<% if wrap_label_in_a_heading %>
<% add_gem_component_stylesheet("label") %>
<%= content_tag(shared_helper.get_heading_level, class: "govuk-!-margin-0") do %>
<%= tag_label %>
<% end %>
Expand Down

0 comments on commit 47ab761

Please sign in to comment.