Sha256: 9718c5b1e1aa1ca95ca7c3bc854be3870d205837249b6d52dc86769d1c1259b3

Contents?: true

Size: 835 Bytes

Versions: 7

Compression:

Stored size: 835 Bytes

Contents

<%
  search_form_id = "search-#{SecureRandom.hex(4)}"
%>

<button
  class="search-toggle govuk-js-header-toggle"
  data-search-toggle-for="search"
  data-button-name="search"
  data-show-text="<%= t("components.layout_header.show_button") %>"
  data-hide-text="<%= t("components.layout_header.hide_button") %>"
  aria-controls="<%= search_form_id %>"
>
  <%= t("components.layout_header.show_button") %>
</button>
<form
  action="/search"
  class="gem-c-layout-header__search-form govuk-clearfix govuk-!-display-none-print"
  id="<%= search_form_id %>"
  method="get"
  role="search"
>
  <%= render "govuk_publishing_components/components/search", {
    button_text: t("components.layout_header.search_button"),
    label_id: "site-search-text",
    margin_bottom: 0,
    no_border: true,
    disable_corrections: true,
  } %>
</form>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/layout_header/_search.html.erb
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/layout_header/_search.html.erb
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/layout_header/_search.html.erb
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/layout_header/_search.html.erb
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/layout_header/_search.html.erb
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/layout_header/_search.html.erb
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/layout_header/_search.html.erb