Skip to content

Instantly share code, notes, and snippets.

@wesruv
Last active June 3, 2021 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesruv/ef1e18bb0211efc80479e8b6c3c7d013 to your computer and use it in GitHub Desktop.
Save wesruv/ef1e18bb0211efc80479e8b6c3c7d013 to your computer and use it in GitHub Desktop.
<!-- Change pfe-navigation-item to a div tag -->
<div slot="search" pfe-icon="web-search" id="utility-search">
<!-- All of the "trigger" element and the two wrappers pfe-navigation-item and form can be deleted -->
<form class="search-form" autocomplete="off" action="/en/search/node" method="post" id="redhat-www-solr-search-box" accept-charset="UTF-8">
<div>
<div class="container-inline form-wrapper" id="edit-basic">
<div class="form-item form-type-textfield form-item-keys">
<label class="element-invisible" for="edit-keys">Enter your keywords </label>
<input maxlength="128" size="15" placeholder="Enter your search term" type="text" id="edit-keys" name="keys" value="" class="form-text" />
</div>
<div class="form-actions form-wrapper" id="edit-actions">
<input type="submit" id="edit-submit" name="op" value="Search" class="form-submit" />
</div>
</div>
<input type="hidden" name="form_build_id" value="form-GUQB-cYo5rkA9_PeXx5mvpqUZnW7ZQG7jGUDVkdsmz4" />
<input type="hidden" name="form_id" value="redhat_www_solr_search_box" />
</div>
</form>
</div>
<pfe-navigation-item slot="search" pfe-icon="web-search" id="utility-search">
<div slot="trigger">
<a href="/en/search" data-analytics-region="utility" data-analytics="Search" data-analytics-label="Search">Search</a>
</div>
<div slot="tray" hidden>
<div class="pfe-navigation-item__tray--container">
<form class="search-form" autocomplete="off" action="/en/search/node" method="post" id="redhat-www-solr-search-box" accept-charset="UTF-8">
<div>
<div class="container-inline form-wrapper" id="edit-basic">
<div class="form-item form-type-textfield form-item-keys">
<label class="element-invisible" for="edit-keys">Enter your keywords </label>
<input maxlength="128" size="15" placeholder="Enter your search term" type="text" id="edit-keys" name="keys" value="" class="form-text" />
</div>
<div class="form-actions form-wrapper" id="edit-actions">
<input type="submit" id="edit-submit" name="op" value="Search" class="form-submit" />
</div>
</div>
<input type="hidden" name="form_build_id" value="form-GUQB-cYo5rkA9_PeXx5mvpqUZnW7ZQG7jGUDVkdsmz4" />
<input type="hidden" name="form_id" value="redhat_www_solr_search_box" />
</div>
</form>
</div>
</div>
</pfe-navigation-item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment