Skip to content

[Accessibility]: Enable contrast compliant syntax highlighting site-wide

Created by: umpox

Description

We have made changes to ensure our syntax highlighting is color contrast compliant as per the WCAG 2.1 guidelines: https://github.com/sourcegraph/sourcegraph/pull/37385

Although this is a small change, it can a significant impact on the readability on our code for both positive and negative reasons. We want to ensure that our new colors are the right ones going forward, so the change is current behind a feature flag and will be tested internally before releasing out to cloud and our customers.

Implementation

Our plan is to spend two weeks assessing this change internally and iterating on any feedback. Once that is done, we should:

  • Remove the feature flag code, ensure the old values are updated to be the new ones.
  • Remove the feature flag from Sourcegraph.com

Related issues

We have had a lot of related issues to this. In the interest of simplifying this process, and ensuring we don't duplicate questions/work through other issues, I have closed those other issues in favor of this one.

If, for whatever reason, we can't complete this issue, we should reopen those issues.

https://github.com/sourcegraph/sourcegraph/issues/36251 https://github.com/sourcegraph/sourcegraph/issues/35536 https://github.com/sourcegraph/sourcegraph/issues/34739 https://github.com/sourcegraph/sourcegraph/issues/14546