Skip to content

Commit f7436cb

Browse files
committed
Anchor titles for IconLink and LinkPanel components
1 parent 15619d9 commit f7436cb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/.vuepress/theme/global-components/IconLink.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
v-if="isInternal"
66
:to="link"
77
:class="{ 'large': iconSize == 'large' }"
8+
:title="title"
89
>
910
<div class="icon absolute left-0">
1011
<img :src="icon" class="no-zoom" alt />
@@ -25,6 +26,7 @@
2526
:target="target"
2627
:rel="rel"
2728
:class="{ 'large': iconSize == 'large' }"
29+
:title="title"
2830
>
2931
<div class="icon absolute left-0">
3032
<img :src="icon" class="no-zoom" alt />

docs/.vuepress/theme/global-components/LinkPanel.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<RouterLink v-if="isInternal" class="link-panel" :to="link" :class="{ 'has-icon': icon }">
2+
<RouterLink v-if="isInternal" class="link-panel" :to="link" :class="{ 'has-icon': icon }" :title="title">
33
<div v-if="icon" class="link-panel-icon">
44
<img :src="icon" class="no-zoom" alt />
55
</div>
@@ -24,6 +24,7 @@
2424
:target="target"
2525
:rel="rel"
2626
:class="{ 'has-icon': icon }"
27+
:title="title"
2728
>
2829
<div v-if="icon" class="link-panel-icon">
2930
<img :src="icon" class="no-zoom" alt />
@@ -33,6 +34,7 @@
3334
{{ title }}
3435
</div>
3536
<div class="subtitle">{{ subtitle }}</div>
37+
<div v-if="repo" class="repo-name">{{ repo }}</div>
3638

3739
<div class="flags">
3840
<div v-if="repo" class="repo-icon">
@@ -57,6 +59,10 @@
5759
@apply text-sm text-slate leading-tight;
5860
}
5961
62+
.repo-name {
63+
@apply text-xs text-light-slate font-mono mt-1;
64+
}
65+
6066
.flags {
6167
@apply absolute flex flex-row-reverse;
6268

0 commit comments

Comments
 (0)