codimd icon indicating copy to clipboard operation
codimd copied to clipboard

Contrast ratio is low when use alert area with link in dark mode

Open WillGoGithub opened this issue 5 years ago • 2 comments
trafficstars

Low contrast ratio of link text is difficult to read in the Dark Mode 😵 :

image

WillGoGithub avatar Feb 13 '20 03:02 WillGoGithub

I try to reach WCAG AA level for each alert (ratio over 4.5)

.night .alert a {
  color: #0065BD;
}

image

Contrast Checker

alert-success ratio: 4.89 alert-info ratio: 4.84 alert-warning ratio: 5.47 alert-danger ratio: 4.52

WillGoGithub avatar Mar 10 '20 02:03 WillGoGithub

Hi @WillGoGithub,

Thanks for bringing this up. Feel free to open PR, we are happy to review it.

jackycute avatar May 12 '21 15:05 jackycute