Skip to content

Commit f7f6e5e

Browse files
committed
fixes #738 - Use button element for clear-filter on navbar
1 parent 07519b9 commit f7f6e5e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/templates/navbar-template.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function navbarTemplate() {
5050
${(this.allowSearch === 'false' && this.allowAdvancedSearch === 'false')
5151
? ''
5252
: html`
53-
<div style="display:flex; flex-direction:row; justify-content:center; align-items:center; padding:8px 24px 12px 24px; ${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}">
53+
<div style="display:flex; flex-direction:row; justify-content:center; align-items:stretch; padding:8px 24px 12px 24px; ${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}">
5454
${this.allowSearch === 'false'
5555
? ''
5656
: html`
@@ -67,16 +67,18 @@ export default function navbarTemplate() {
6767
</div>
6868
${this.matchPaths
6969
? html`
70-
<div @click = '${this.onClearSearch}' style='margin-left:5px; cursor:pointer; align-self:center; color:var(--nav-text-color)' class='small-font-size primary-text bold-text'> CLEAR </div>`
70+
<button @click = '${this.onClearSearch}' class="m-btn thin-border" style="margin-left:5px; color:var(--nav-text-color); width:75px; padding:6px 8px;" part="btn btn-outline btn-clear-filter">
71+
CLEAR
72+
</button>`
7173
: ''
7274
}
7375
`
7476
}
7577
${this.allowAdvancedSearch === 'false' || this.matchPaths
7678
? ''
7779
: html`
78-
<button class="m-btn primary" part="btn btn-fill btn-search" style="margin-left:5px;" @click="${this.onShowSearchModalClicked}">
79-
Search
80+
<button class="m-btn primary" part="btn btn-fill btn-search" style="margin-left:5px; padding:6px 8px; width:75px" @click="${this.onShowSearchModalClicked}">
81+
SEARCH
8082
</button>
8183
`
8284
}

0 commit comments

Comments
 (0)