Skip to content

Commit fa2f38a

Browse files
committed
fix(theme/regression): custom font not applying in Chinese docs because of specificity
closes #3864
1 parent 0cbb469 commit fa2f38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/theme-default/styles/vars.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
font-optical-sizing: auto;
269269
}
270270

271-
:root:lang(zh) {
271+
:root:where(:lang(zh)) {
272272
--vp-font-family-base: 'Punctuation SC', 'Inter', ui-sans-serif, system-ui,
273273
'PingFang SC', 'Noto Sans CJK SC', 'Noto Sans SC', 'Heiti SC', 'DengXian',
274274
'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',

0 commit comments

Comments
 (0)