Skip to content

Commit efe38b5

Browse files
committed
fix: wrapped link and link icon color
1 parent df7380f commit efe38b5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/editor/link.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ body {
6868
border-radius: var(--radius-s);
6969
text-underline-offset: var(--size-2-1);
7070
text-decoration-color: $underline;
71+
-webkit-box-decoration-break: clone;
7172

7273
&:hover {
7374
background-color: rgba($color, 0.15);
@@ -184,7 +185,7 @@ body.link-hover-expand {
184185
margin-inline: var(--size-2-1);
185186
@include use-icon(
186187
'file-text',
187-
var(--link-color),
188+
inherit,
188189
calc(var(--link-text-size) * 0.9)
189190
);
190191
}
@@ -206,11 +207,7 @@ body.link-hover-expand {
206207
display: inline-block;
207208
transform: translateY(var(--size-2-1));
208209
margin-inline: var(--size-2-1);
209-
@include use-icon(
210-
'link',
211-
var(--link-external-color),
212-
calc(var(--link-text-size) * 0.85)
213-
);
210+
@include use-icon('link', inherit, calc(var(--link-text-size) * 0.85));
214211
}
215212
}
216213

0 commit comments

Comments
 (0)