Skip to content

Commit e641f2b

Browse files
committed
Make the components clickable in the nav bar
1 parent e6e5a6a commit e641f2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/templates/navbar-template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ export default function navbarTemplate() {
8282
? ''
8383
: html`<div id='link-components' class='nav-bar-section' >Components</div>
8484
${this.resolvedSpec.components.map((component) => html`
85-
<div class='nav-bar-tag' id="link-cmp-${component.name.toLowerCase()}" @click='${(e) => this.scrollToEl(e)}'>
85+
<div class='nav-bar-tag' data-content-id='cmp-${component.name.toLowerCase()}' id='link-cmp-${component.name.toLowerCase()}' @click='${(e) => this.scrollToEl(e)}'>
8686
${component.name}
8787
</div>
8888
${component.subComponents.map((p) => html`
89-
<div class='nav-bar-path' id='link-cmp-${p.id}' @click='${(e) => this.scrollToEl(e)}'>
89+
<div class='nav-bar-path' data-content-id='cmp-${p.id}' id='link-cmp-${p.id}' @click='${(e) => this.scrollToEl(e)}'>
9090
<span> ${p.name} </span>
9191
</div>`)}
9292
`)}

0 commit comments

Comments
 (0)