Problem/Motivation
Accessibility Insights report:
Element has insufficient color contrast of 2.55 (foreground color: #111111, background color: #545560, font size: 11.3pt (15.04px), font weight: normal). Expected contrast ratio of 4.5:1
Use background color: #7e7f90 and the original foreground color: #111111 to meet a contrast ratio of 4.79:1.
Snippet:
<a href="#main-content" class="visually-hidden focusable skip-link"> Skip to main content </a>
I didn't check against Gin.
WCAG: SC 1.4.3 Contrast (Minimum) (Level AA)
Steps to reproduce
- Log in as admin.
- Go to
/admin/appearance. - Set Default Admin as the admin theme.
- If it's not already appearing in dark mode, go to
/admin/appearance/settings/default_admin, change "Appearance" to "Dark", and submit the form. - Press the
TABkey until the skip link becomes focused and visible.
Expected
The text / background has sufficient contrast.
Actual
It has low contrast.

Proposed resolution
Not sure.
The light mode skip link has a dark background with light text.
Maybe this one should have the opposite: light background with dark text.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3621109-skip-link-dark-mode-contrast.patch | 1.65 KB | rupeshghar |
| #4 | after-full-page.png | 114.93 KB | rupeshghar |
| #4 | before-full-page.png | 114.73 KB | rupeshghar |
| dark-mode-skip-link-low-contrast.png | 19.94 KB | kentr |
Issue fork drupal-3621109
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kentr commentedComment #3
kentr commentedComment #4
rupeshghar commentedCorrected css rule which was affecting skip link color override. Please review patch and test.
AI-Generated: Yes (Used Claude to help generate the patch and reviewed/tested the output before submitting).
I had not read the policy and had reviewed the output but missed out on disclosure - will ensure to share this info from next time.
Comment #5
kentr commented@rupeshghar thank you for your contribution.
Was the patch generated with an LLM? Please note that disclosure is required: Policy on the use of AI when contributing to Drupal.
Comment #6
kentr commentedAlso, we don't use patches anymore. It needs to be in a merge request.
Comment #8
rupeshghar commented@kentr I have updated the previous comment and mention the usage of the AI but also have done the human review. the disclosure was missing which I will take care from next time.
I've also created an MR for this. Thanks
Comment #9
smustgrave commentedMR has a pipeline issue that needs to be resolved first. And solution is adding back gin
Comment #10
mgiffordWhy does the MR (or patch) still refer to Gin?
Comment #11
mherchelYeah, the MR doesn't look right. We should be using one of the semantic variables in https://www.drupal.org/docs/core-modules-and-themes/core-themes/default-... instead of using a .dark-mode class (which will eventually be phased out). We should also probably add in a border (using a semantic color variable).