Skip to content

Commit

Permalink
🚧 Change position of the search button
Browse files Browse the repository at this point in the history
  • Loading branch information
ENT8R committed May 23, 2021
1 parent 823a5e8 commit 2a2f855
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
13 changes: 10 additions & 3 deletions app/templates/includes/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,24 @@
</a>
</section>

<section class="navbar-section">
<svg class="p-centered p-1 hide-md" height="44">
<section class="navbar-section hide-md">
<svg class="p-centered p-1" height="44">
<use xlink:href="#assets-notesreview-horizontal"></use>
</svg>
</section>

<section class="navbar-section">
<button class="btn btn-primary modal-trigger flex-grow" data-modal="filter" aria-label="Apply a filter to the selection" data-i18n>
<button id="search" class="btn btn-primary tooltip tooltip-bottom flex-grow m-1" data-i18n data-i18n-data-tooltip="description.worldwideQuery">
<svg class="icon"><use xlink:href="#icon-search"></use></svg>
<span class="hide-xs" data-i18n="action.search">Search</span>
<svg id="fast-search" class="icon d-hide"><use xlink:href="#icon-flash"></use></svg>
</button>
<!-- TODO: Add translation -->
<button class="btn btn-primary modal-trigger flex-grow m-1" data-modal="filter" aria-label="Apply a filter to the selection" data-i18n>
<svg class="icon"><use xlink:href="#icon-filter"></use></svg>
<span class="hide-xs" data-i18n>Filter</span>
</button>

<button class="btn btn-action modal-trigger m-1" data-modal="help" aria-label="Open frequently asked questions" data-i18n data-i18n-aria-label="accessibility.openFaq">
<svg class="icon"><use xlink:href="#icon-help"></use></svg>
</button>
Expand Down
8 changes: 0 additions & 8 deletions app/templates/modals/filter.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
</div>

<div class="modal-footer">
<a id="search" class="btn btn-primary btn-lg modal-close float-left tooltip"
data-i18n data-i18n-data-tooltip="description.worldwideQuery">
<svg class="icon"><use xlink:href="#icon-search"></use></svg>
<!-- TODO: Maybe change wording to filter or apply? -->
<span data-i18n="action.search">Search</span>
<svg id="fast-search" class="icon d-hide"><use xlink:href="#icon-flash"></use></svg>
</a>

<a class="btn btn-link modal-close" data-i18n="action.close">Close</a>
</div>
</div>
Expand Down

0 comments on commit 2a2f855

Please sign in to comment.