Skip to content

Commit 7a34e84

Browse files
committed
Add navigator-title slot to NavigatorCard
1 parent 20e5ea3 commit 7a34e84

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/components/Navigator/NavigatorCard.vue

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,20 @@
3232
@keydown.up.exact.capture.prevent="focusPrev"
3333
@keydown.down.exact.capture.prevent="focusNext"
3434
>
35-
<Reference
36-
v-if="technology"
37-
:id="INDEX_ROOT_KEY"
38-
:url="technologyPath"
39-
:class="['technology-title', { 'router-link-exact-active': isTechnologyRoute }]"
40-
@click.alt.native.prevent="toggleAllNodes"
41-
>
42-
<h2 class="card-link">
43-
{{ technology }}
44-
</h2>
45-
<Badge v-if="isTechnologyBeta" variant="beta" />
46-
</Reference>
35+
<slot name="navigator-title">
36+
<Reference
37+
v-if="technology"
38+
:id="INDEX_ROOT_KEY"
39+
:url="technologyPath"
40+
:class="['technology-title', { 'router-link-exact-active': isTechnologyRoute }]"
41+
@click.alt.native.prevent="toggleAllNodes"
42+
>
43+
<h2 class="card-link">
44+
{{ technology }}
45+
</h2>
46+
<Badge v-if="isTechnologyBeta" variant="beta" />
47+
</Reference>
48+
</slot>
4749
<DynamicScroller
4850
v-show="hasNodes"
4951
:id="scrollLockID"

0 commit comments

Comments
 (0)