From 86039a89fc86a48624b27bbecae1128e694e1c01 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sun, 30 Mar 2025 14:51:37 +0000 Subject: [PATCH] fix(a11y): unreadable image captcha with dark themes (#7390) - When the user has a dark theme selected, image captchas are sometimes unreadable. - Make sure the image captcha always has a white background color. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7390 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Reviewed-by: Beowulf Reviewed-by: Gusted Co-authored-by: Andreas Shimokawa Co-committed-by: Andreas Shimokawa --- templates/user/auth/captcha.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user/auth/captcha.tmpl b/templates/user/auth/captcha.tmpl index 9d0d6cfb6f..29f8ab07a2 100644 --- a/templates/user/auth/captcha.tmpl +++ b/templates/user/auth/captcha.tmpl @@ -1,7 +1,7 @@ {{if .EnableCaptcha}}{{if eq .CaptchaType "image"}}
- {{ctx.Locale.Tr + {{ctx.Locale.Tr