loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <beowulf@beocode.eu>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Andreas Shimokawa <shimokawa@fsfe.org>
Co-committed-by: Andreas Shimokawa <shimokawa@fsfe.org>

authored by

Andreas Shimokawa
Andreas Shimokawa
and committed by
Gusted
86039a89 2348955a

+1 -1
+1 -1
templates/user/auth/captcha.tmpl
··· 1 1 {{if .EnableCaptcha}}{{if eq .CaptchaType "image"}} 2 2 <div class="inline field tw-text-center"> 3 3 <input type="hidden" name="img-captcha-id" value="{{.Captcha}}"> 4 - <img style="transform: scaleX(-1)" onclick="this.src=`{{AppSubUrl}}/captcha/{{.Captcha}}.png?reload=${Date.now()}`" class="captcha-img" src="{{AppSubUrl}}/captcha/{{.Captcha}}.png" alt="{{ctx.Locale.Tr "captcha"}}"> 4 + <img style="transform: scaleX(-1);background-color: white" onclick="this.src=`{{AppSubUrl}}/captcha/{{.Captcha}}.png?reload=${Date.now()}`" class="captcha-img" src="{{AppSubUrl}}/captcha/{{.Captcha}}.png" alt="{{ctx.Locale.Tr "captcha"}}"> 5 5 </div> 6 6 <div class="required field {{if .Err_Captcha}}error{{end}}"> 7 7 <label for="captcha">{{ctx.Locale.Tr "captcha"}}</label>