Skip to content

Increase contrast for .disabled-content CSS

What does this MR do and why?

Increase contrast for disabled content. Instead of using opacity, this change uses $gray-500 to obtain a 4.5:1 minimum contrast ratio on a white surface. The text itself isn't disabled, and at the same time can communicate meaningful information, so it should meet the minimum contrast ratio.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
CleanShot_2023-06-12_at_15.50.16_2x CleanShot_2023-06-12_at_17.05.25_2x

How to set up and validate locally

View an example by going to Settings / Badges, the text that's present when there are no badges uses the .disabled-content class.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #22348 (closed)

Edited by Jeremy Elder

Merge request reports