From 666ac4f6ac8247f9849dca131825c59f8dc4ce83 Mon Sep 17 00:00:00 2001 From: doublex001 <16157008+doublex001@user.noreply.gitee.com> Date: Tue, 15 Sep 2026 13:09:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E6=B3=A8=E5=86=8C=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E4=B8=BB=E6=8C=89=E9=92=AE=E5=BA=95=E8=89=B2=E6=94=B9=E7=94=A8?= =?UTF-8?q?=20primaryBtn=EF=BC=8C=E6=BB=A1=E8=B6=B3=20WCAG=20AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PrimaryButton 原用 colors.primary(#2C83FD) 作白字底,对比度仅 3.64:1,不满足 WCAG AA 的 4.5:1 要求。改用 colors.primaryBtn(#1F6FDB),对比度 4.82:1 达标, 同时符合 AGENTS.md 配色规范「primary 不作白字按钮底」。 副作用:整条注册流程按钮视觉变深,如已对外出图需重新确认。 --- components/onboarding/ui/PrimaryButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/onboarding/ui/PrimaryButton.tsx b/components/onboarding/ui/PrimaryButton.tsx index 50fc3f1..d055c70 100644 --- a/components/onboarding/ui/PrimaryButton.tsx +++ b/components/onboarding/ui/PrimaryButton.tsx @@ -23,7 +23,9 @@ export function PrimaryButton({ label, active = true, onPress, loading = false } const styles = StyleSheet.create({ btn: { height: 50, borderRadius: 12, alignItems: 'center', justifyContent: 'center' }, - btnActive: { backgroundColor: colors.primary }, + // 按钮底色用 primaryBtn 而非 primary:白字对比 4.8:1 过 WCAG AA, + // primary 作白字底只有 3.64:1,不满足 AA(见 AGENTS.md 配色规范) + btnActive: { backgroundColor: colors.primaryBtn }, btnDisabled: { backgroundColor: colors.textDisabled }, btnText: { fontSize: 17, fontWeight: '700', color: colors.textInverse }, });