From b49e3a9b4227b1a0d016b0be6663859c3ce353c4 Mon Sep 17 00:00:00 2001 From: maoyingjie Date: Wed, 28 Oct 2026 00:11:22 +0800 Subject: [PATCH] fix(docs): keep section tab typography stable on hover --- apps/docs/.vitepress/theme/shell.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/docs/.vitepress/theme/shell.css b/apps/docs/.vitepress/theme/shell.css index 822627e..330f0e6 100644 --- a/apps/docs/.vitepress/theme/shell.css +++ b/apps/docs/.vitepress/theme/shell.css @@ -127,7 +127,9 @@ html { gap: 12px; height: 100%; } -.docs-nav-sections nav .hv-link { +/* Section tabs keep their text treatment on hover; selection controls color. */ +.docs-nav-sections nav .hv-link, +.docs-nav-sections nav .hv-link:is(:hover, [data-hovered="true"]) { text-decoration: none; display: inline-flex; align-items: center; @@ -718,7 +720,8 @@ html { .docs-nav-sections nav { gap: 20px; } - .docs-nav-sections nav .hv-link { + .docs-nav-sections nav .hv-link, + .docs-nav-sections nav .hv-link:is(:hover, [data-hovered="true"]) { font-size: 13px; padding-bottom: 6px; }