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
TAB key 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
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).
Comment #12
mherchelJumping in here since we're evidently under a tight deadline to get to beta
Comment #13
mherchelThis should be good to go.
Comment #14
smustgrave commentedBackground looks much better but the text is also white so can't see the words.
Comment #15
mherchelFixed!
Comment #16
smustgrave commentedWorked like a charm.
Comment #17
catchThis could use an 'after' screenshot.
Comment #18
smustgrave commented@catch
Comment #22
catchCommitted/pushed to main, 11.x and 11.4.x, thanks!