Skip to content

Commit 41fc5b5

Browse files
authored
indicate interactivity with subtle hover effect (#173)
1 parent 5f14aa8 commit 41fc5b5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

apps/svelte.dev/src/routes/docs/[...path]/OnThisPage.svelte

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,17 @@
102102
text-transform: uppercase;
103103
color: var(--sk-text-4);
104104
105+
&:hover {
106+
color: var(--sk-text-3);
107+
}
108+
105109
&::before {
106110
content: '';
107111
position: absolute;
108112
right: 0;
109113
top: calc(50% - 0.5em);
110-
width: 1em;
111-
height: 1em;
114+
width: 2rem;
115+
height: 2rem;
112116
background: url($lib/icons/chevron.svg);
113117
background-size: contain;
114118
rotate: -90deg;

packages/site-kit/src/lib/styles/text.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ details.legacy {
374374
font-size: var(--sk-text-xs);
375375
user-select: none;
376376

377+
&:hover {
378+
color: var(--sk-text-3);
379+
}
380+
377381
&::after {
378382
position: absolute;
379383
display: flex;

0 commit comments

Comments
 (0)