White text on the blue buttons drops below 4.5:1 contrast on hover
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- tailwindcss, typescript
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
Read the 17 hover:brightness-110 usages in src, including src/components/signup/header-buttons.ts; note that the PRIMARY stack is not on main yet. Compare the existing hover colours in the consent form and sign-in link, then apply the chosen treatment across the affected buttons and check that white text stays above 4.5:1 contrast. Done means no affected white-text bg-brand button uses hover:brightness-110 and the listed lint, typecheck, knip, and test commands pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Needs your OK: choosing the hover colour is a small design call. Swap pipeline:proposed for pipeline:ready to have it built.
What happens
- The hover style lightens the button. Most blue (
bg-brand) buttons usehover:brightness-110. That includes the signup header'sPRIMARYstyle (src/components/signup/header-buttons.tson the "Publish and share" stack): Publish and share, Share, and Reopen signup (#608). In all, 17 places insrcusehover:brightness-110. - The contrast drops below what normal-size text needs. At rest, white text on
#1f6febis 4.63:1, which passes WCAG 1.4.3's 4.5:1. Brightened by 10% to about#227aff, it's 3.97:1. These labels are 13–15px, so they need 4.5:1. - Axe doesn't catch it. It checks the colours at rest, not on hover.
- Found while reviewing #608.
Fix, in outline
- Darken on hover instead of lightening. Use
hover:bg-[#1658c4], the hover colour the OAuth consent button (src/app/oauth/consent/[uid]/consent-form.tsx) and the sign-in link (src/app/login/confirm/sign-in-link.tsx) already use. Better still, add it as abrand-hovercolour intailwind.config.tsand use that everywhere. - Leave the disabled style alone.
disabled:brightness-90onPRIMARYdarkens, so it's fine as it is. - Or drop the hover change on these buttons altogether. That's simpler, but gives no hover feedback.
Watch for
PRIMARYonly exists on the "Publish and share" stack (#571 → #581), not onmainyet. Build this after that stack lands, or changePRIMARYthere as well as the other 16 places.- The text never gets bigger on hover. These buttons stay "normal text" for WCAG, so 4.5:1 is the bar on hover too, not 3:1.
Choices this makes
Darkening on hover, with the colour the consent and sign-in buttons already use, rather than a new one.
Done when
- No
bg-brandbutton with white text useshover:brightness-110. - White on the hover colour is at least 4.5:1 (
#1658c4gives 6.51:1). pnpm lint && pnpm typecheck && pnpm knip && pnpm testpass.
- Ngôn ngữ chính
- TypeScript
- Star
- 19
- Fork
- 4
- Merge trung bình
- 20 giờ 9 phút
- Pull request đã merge (30 ngày)
- 156
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của richshaw/OpenSignup
-
enhancement pipeline:proposed pipeline:ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
richshaw/OpenSignup#654 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The help pages never say "pause", so organizers looking for it miss Close or reopen a signupĐang mởenhancement pipeline:proposed pipeline:ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
richshaw/OpenSignup#653 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement pipeline:proposed pipeline:ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
richshaw/OpenSignup#652 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
SMTP timeout notes in smtp.ts and the changelog describe nodemailer 10.0, not 10.1Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởenhancement good first issue pipeline:ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
richshaw/OpenSignup#645 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A signup page's first Tab skips the header and lands on the next tabCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug good first issue pipeline:ready pipeline:ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
richshaw/OpenSignup#644 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của richshaw/OpenSignup
Issue tương tự
-
DRY stats column groupingsĐang mởready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
wheresrhys/totf#1214 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CodeChefVIT/ffcs#281 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
endora-commerce/endora-commerce#451 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
vetro-protocol/vetro-monorepo#1007 ·
Maintainer thường phản hồi trong vòng 1 ngày