Skip to content

Commit 89013d7

Browse files
committed
fix(navigation): tablet 활성 링크 weight 유지
1 parent 8d82b8e commit 89013d7

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

styles/globals.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ describe('globals styles', () => {
146146
expect(tabletViewportContent).toContain(
147147
' .ark-site-primary-link {\n font-size: var(--text-sm);'
148148
);
149+
expect(tabletViewportContent).toContain(
150+
".ark-site-primary-link[aria-current='page'] {\n font-weight: var(--font-semibold);"
151+
);
149152
});
150153

151154
it('uses semantic surface tokens for article content', () => {

styles/viewport/tablet.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
font-size: var(--text-sm);
88
font-weight: var(--font-medium);
99
}
10+
11+
.ark-site-primary-link[aria-current='page'] {
12+
font-weight: var(--font-semibold);
13+
}
1014
}
1115

1216
@media (min-width: 640px) {

0 commit comments

Comments
 (0)