You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phpinfo HTML accessibility: Fix the color contrast for "no value" labels
The HTML output of `phpinfo()` function has a little bit of CSS to improve the readability of PHP configuration values. Previously, the background color was `#dddddd`, while the text color for "no value" label was `#999999`. This resulted in a contrast ratio of 2.10, which did not meet he WCAG minimum text contrast guidelines.
This increases the contrast ratio to 7.06 (AAA grade) by changing the text color to `#454545`. On dark theme (`prefers-color-scheme: dark`), the text color is changed from `#999999` to `#c4c4c4`.
The new colors are calculated by adjusting the "lightness" factor of the current colors using LCH (Lightness, Chroma, Hue) sampling. The lightness is decreased (increased, in case for dark theme) until the new color achieves an AAA score in WCAG guidelines.
0 commit comments