Staff Search

Flexible search bar element

The search bar is a flexible component that should be used to search topical content. Each search bar element must have a search field and a submit button, and has the option to have a dropdown menu and a related links stratum.

The background colours that are available for the search bar and their related purpose:

  • cornflower: about, search for contacts (.bg-cornflower)
  • mint: navigation, search for topical content (.bg-mint-10-dark)
  • violet: events, search for an event (.bg-violet-25-dark)

Staff search element

This variation is for the staff search which uses:

  • .bg-cornflower
  • search field
  • submit button
  • related links stratum
<!-- COMPONENT: Search form -->
<div class="half-padding bg-cornflower">
    <div class="row column">
        <form class="staff-search search-form" method="get" action="https://www.bath.ac.uk/contact/">
            <label class="screen-reader" for="staff-search-query">Search for a member of staff</label>
            <input id="staff-search-query" class="search-field" name="query" type="text" placeholder="Search for a member of staff" title="Type staff name here">
            <input class="search-button" type="submit" value="search">
        </form>
    </div>
</div>
<div class="search-links bg-steel-85-light">
    <div class="row column">
        <ul class="no-bullet-list inline-list">
            <li><a href="http://www.bath.ac.uk/contact/?search=advanced">Advanced Search</a></li>
        </ul>
    </div>
</div>
<!-- End component: Search form -->
  • Handle: @staff-search
  • Preview:
  • Filesystem Path: components/common-components/search-bar/staff-search/staff-search.hbs