Skip to content

Commit adb1c69

Browse files
committed
fixes #742 - Use title instead of the text 'Overview' in navbar
1 parent c547f85 commit adb1c69

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/templates/navbar-template.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@ export default function navbarTemplate() {
8989
: html`
9090
${(this.infoDescriptionHeadingsInNavBar === 'true')
9191
? html`
92-
${this.resolvedSpec.infoDescriptionHeaders.length > 0 ? html`<div class='nav-bar-info' id='link-overview' data-content-id='overview' @click = '${(e) => this.scrollToEventTarget(e, false)}' > Overview </div>` : ''}
92+
${this.resolvedSpec.infoDescriptionHeaders.length > 0
93+
? html`<div class='nav-bar-info' id='link-overview' data-content-id='overview' @click = '${(e) => this.scrollToEventTarget(e, false)}'>
94+
${this.resolvedSpec.info?.title?.trim() || 'Overview'}
95+
</div>`
96+
: ''
97+
}
9398
<div class="overview-headers">
9499
${this.resolvedSpec.infoDescriptionHeaders.map((header) => html`
95100
<div
@@ -104,7 +109,9 @@ export default function navbarTemplate() {
104109
</div>
105110
${this.resolvedSpec.infoDescriptionHeaders.length > 0 ? html`<hr style='border-top: 1px solid var(--nav-hover-bg-color); border-width:1px 0 0 0; margin: 15px 0 0 0'/>` : ''}
106111
`
107-
: html`<div class='nav-bar-info' id='link-overview' data-content-id='overview' @click = '${(e) => this.scrollToEventTarget(e, false)}'> Overview </div>`
112+
: html`<div class='nav-bar-info' id='link-overview' data-content-id='overview' @click = '${(e) => this.scrollToEventTarget(e, false)}'>
113+
${this.resolvedSpec.info?.title?.trim() || 'Overview'}
114+
</div>`
108115
}
109116
`
110117
}

0 commit comments

Comments
 (0)