From 91efda93bc5110a95ec40021bce563dc8086eb8b Mon Sep 17 00:00:00 2001 From: Abner <22141172+Silentely@users.noreply.github.com> Date: Sat, 1 Nov 2025 14:16:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(styles):=20=E6=9B=B4=E6=96=B0=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E7=B3=BB=E7=BB=9F=E6=A0=B7=E5=BC=8F=E4=BB=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=AF=AD=E8=A8=80=E5=88=87=E6=8D=A2=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/design-system.css | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/styles/design-system.css b/src/styles/design-system.css index 410c807..cb63257 100644 --- a/src/styles/design-system.css +++ b/src/styles/design-system.css @@ -61,11 +61,6 @@ textarea:focus-visible { /* prevent layout shift from status text changes */ min-height: 1.25em; } -[role="status"], [role="alert"] { - /* ensure SR picks up updates consistently */ - aria-atomic: true; -} - .visually-hidden { position: absolute !important; clip: rect(1px,1px,1px,1px); @@ -90,6 +85,11 @@ html[data-locale="en"] .lang-en { display: inline !important; } margin-bottom: var(--space-4); } +.header-buttons .language-switcher { + width: auto; + margin-bottom: 0; +} + .lang-switch { display: inline-flex; align-items: center; @@ -104,6 +104,12 @@ html[data-locale="en"] .lang-en { display: inline !important; } transition: transform var(--transition-fast), box-shadow var(--transition-fast); } +.header-buttons .lang-switch { + padding: 10px 20px; + border-radius: 30px; + flex-shrink: 0; +} + .lang-switch:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm);