Skip to content

Commit db39798

Browse files
committed
fixed colors on the nav-bar
1 parent fdd1a89 commit db39798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rapidoc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,12 @@ export default class RapiDoc extends LitElement {
432432
<div style="position:sticky; top:0; display:flex; flex-direction:row; align-items: stretch; padding:16px 30px 16px 16px; background: var(--nav-bg-color);">
433433
<slot name="nav-logo" class="logo"></slot>
434434
<div style="display:flex; flex:1">
435-
<input id="nav-bar-search" style="width:100%; padding-right:20px; color:var(--nav-accent-color); border-color:var(--nav-accent-color); background-color:var(--nav-hover-bg-color)" type="text" placeholder="search" @change="${this.onSearchChange}" spellcheck="false" >
435+
<input id="nav-bar-search" style="width:100%; padding-right:20px; color:var(--nav-hover-text-color); border-color:var(--nav-accent-color); background-color:var(--nav-hover-bg-color)" type="text" placeholder="search" @change="${this.onSearchChange}" spellcheck="false" >
436436
<div style="margin: 6px 5px 0 -24px; font-size:var(--title-font-size); cursor:pointer;">&#x23ce;</div>
437437
</div>
438438
${this.matchPaths
439439
? html`
440-
<div style='margin-left:5px; cursor:pointer; align-self:center;' class='small-font-size primary-text bold-text' @click = '${this.onClearSearch}'> CLEAR </div>`
440+
<div style='margin-left:5px; cursor:pointer; align-self:center; color:var(--nav-text-color)' class='small-font-size primary-text bold-text' @click = '${this.onClearSearch}'> CLEAR </div>`
441441
: ''
442442
}
443443
</div>
@@ -780,7 +780,7 @@ export default class RapiDoc extends LitElement {
780780
return;
781781
}
782782
entries.forEach((entry) => {
783-
if (entry.isIntersecting) {
783+
if (entry.isIntersecting && entry.intersectionRatio > 0) {
784784
const oldNavEl = this.shadowRoot.querySelector('.nav-bar-path.active, .nav-bar-info.active');
785785
let newNavEl;
786786
if (entry.target.id.startsWith('content-')) {

0 commit comments

Comments
 (0)