Browse Source

fix(ui): 注册流程主按钮底色改用 primaryBtn,满足 WCAG AA

PrimaryButton 原用 colors.primary(#2C83FD) 作白字底,对比度仅 3.64:1,不满足
WCAG AA 的 4.5:1 要求。改用 colors.primaryBtn(#1F6FDB),对比度 4.82:1 达标,
同时符合 AGENTS.md 配色规范「primary 不作白字按钮底」。

副作用:整条注册流程按钮视觉变深,如已对外出图需重新确认。
master
doublex001 1 month ago
parent
commit
666ac4f6ac
  1. 4
      components/onboarding/ui/PrimaryButton.tsx

4
components/onboarding/ui/PrimaryButton.tsx

@ -23,7 +23,9 @@ export function PrimaryButton({ label, active = true, onPress, loading = false }
const styles = StyleSheet.create({ const styles = StyleSheet.create({
btn: { height: 50, borderRadius: 12, alignItems: 'center', justifyContent: 'center' }, 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 }, btnDisabled: { backgroundColor: colors.textDisabled },
btnText: { fontSize: 17, fontWeight: '700', color: colors.textInverse }, btnText: { fontSize: 17, fontWeight: '700', color: colors.textInverse },
}); });

Loading…
Cancel
Save