Skip to content

Commit 3a5d256

Browse files
authored
fix: remove icon in anchor links in text (#1765)
1 parent 1904f13 commit 3a5d256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/Readme.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ function handleClick(event: MouseEvent) {
150150
@apply inline i-lucide:external-link rtl-flip ms-1 opacity-50;
151151
}
152152
153-
.readme :deep(a[href^='#']::after) {
153+
.readme :deep(:is(h1, h2, h3, h4, h5, h6) a[href^='#']::after) {
154154
/* I don't know what kind of sorcery this is, but it ensures this icon can't wrap to a new line on its own. */
155155
content: '__';
156156
@apply inline i-lucide:link rtl-flip ms-1 opacity-0;
157157
font-size: 0.75em;
158158
}
159159
160-
.readme :deep(a[href^='#']:hover::after) {
160+
.readme :deep(:is(h1, h2, h3, h4, h5, h6) a[href^='#']:hover::after) {
161161
@apply opacity-100;
162162
}
163163

0 commit comments

Comments
 (0)