Problem/Motivation
Within #2851270: Links in the tour tip body are visually the same as the rest of the text, it was identified that links in the tooltip are indistinguishable from the rest of the text. This issue was created stating this is true for all themes including Claro.
However, this is not the case. Within Claro, there is an underline text decoration.

Talking with @ckrina, she still wants to color the hyperlinks.
Original summary
This ticket should address updating the link color in the Claro theme.
Steps to reproduce
- Use the Claro theme
- Enable Language module
- Visit /admin/config/regional/language/add
- Click Tour in the upper right hand corner
- Navigate to the third Tour item. This item has a link.
Proposed resolution
Make the links in the tip body yellow, paying attention to make sure there are appropriate hover and focus states.
Remaining tasks
Design an accessible solution for thisAdd a patch
User interface changes
All the links in the Tour module will change from white to yellow so they're more visible.
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | with_patch_png.png | 66.61 KB | mherchel |
| #17 | current.png | 54.7 KB | mherchel |
| #15 | contrast-ratio.png | 55.54 KB | ckrina |
| #15 | claro-blue-link.png | 142.07 KB | ckrina |
| #11 | messages-link.png | 13.51 KB | ckrina |
Comments
Comment #2
thejimbirch commentedComment #3
thejimbirch commentedAttached is a patch that alters the appearance of Tours in the Claro theme. I tried taking a similar approach to the same issue in Seven, but the Claro link color is too dark on the black background, and did not pass wcag standards.
Instead, I used influence from Claro's Dialog styles to make the Tour tip have a white background. Similar to what you'd find if you edited a Views UI view.
To Validate:
Here is a screen capture I used to test.
Here is a quick screen capture I used to test myself.
Comment #4
abhijith s commentedApplied patch #3 and the links in the tip body are identifiable after applying this patch.Also tip background is changed to white color.
Before patch:

After patch:

RTBC +1
Comment #5
cindytwilliams commentedApplied patch #3 and installed the Claro theme. Confirmed that the Tour tip has a white background and that links in the tip body are blue and underlined. Marking RTBC.
Comment #6
ckrinaWhy is this changing the Tour background color to white? This is huge design change in an important component that would need a Claro maintainer's approval. The proposed solution says nothing about it:
By doing so (using the default's Claro blue link color), there is clearly not enough contrast to pass WCAG AA. So this means the link color for dark regions needs to be changed. I've created an issue to define the Tour styles and define which steps should be taken here: #3251280: Tour style update.
Comment #7
thejimbirch commentedI tried taking a similar approach to the same issue in Seven, but the Claro link color is too dark on the black background, and did not pass wcag standards.
Instead, I used influence from Claro's Dialog styles to make the Tour tip have a white background. Similar to what you'd find if you edited a Views UI view.
Comment #9
ckrinaOK, then thanks for the proposal @thejimbirch ! We'd like to keep the initial designs with the dark background, but the link lack of contrast is clearly an a11y failure and needs to be fixed. We've made this a Claro stable blocker, and I'm updating the priority to Major.
The main problem this has is we lack the definition of #3251278: [META] Designs for dark background layers and its color palette, and it's also related to #3251709: Define Blue scale for Claro. I'll try to solve the Blue color scale ASAP so we can choose an appropriate blue from there and we don't have to define all the dark palette now.
Marking this as blocked by #3251709: Define Blue scale for Claro. I'll post back the correct blue here when the other one is finished.
Comment #10
ckrinaSetting this as Major.
Comment #11
ckrinaSince this is a Major bug and a Claro stable blocker, I'm uploading a patch with a quick solution instead of relying on a big design task as designing the Dark Mode palette.
We already had a solution for dark region links on Messages where we chose a yellow with good enough contrast against dark backgrounds:
So I've basically changed the current approach from using the white color (underlined):
To use the same yellow we're using for Messages:
I'm not changing the underline behavior so the default Claro link styles take care of it (links underlined by default, underlined on hover).
Comment #12
andregp commentedThe patch for Drupal 10 is working for me, but it failed on the CS tests (I don't know why). I even thought it was a random failure, and queued a retest, but it failed again with the exact same message:
Comment #13
mherchelThe d10 patch was tested against 9.4.x. Just re-queued for 10.0.x
Comment #14
mherchelFull disclosure, I haven't tested this, but did peek at the code.
The color change itself is not enough to distinguish a hyperlink (I'm assuming the links are not underlined). The relevant SC is https://www.w3.org/TR/WCAG20-TECHS/F73.html
The current color change has a ratio of 1.44:1 (https://contrastgrid.com/?xAxisColors=%23fff%7C%23ffd23f)
Channeling my inner @andrewmacpherson here: Just add a
text-decoration: underline;Comment #15
ckrinaAgreed! That's why we rely on the browser default styles for links that set an underline for all hyperlinks. See Claro default's behavior for links on
/admin/helpfor example:That's why I don't think it makes sense to re-define it again just for the Tour module.
And the contrast ratio is way above 4.5:1 using the yellow
#ffd23fon top of the Tour background (background-color: rgba(0, 0, 0, 0.8)). See:Comment #16
mherchelOK! I'm pulling down the patch 😆 for a more thorough review!
Comment #17
mherchelI'm updating the summary as it doesn't match the current reality. Currently Claro does have underlines within the hyperlinks within the tour module.
I'm leaving the current 'stable blocker' tag and 'major' status for others to remove. I personally don't think this issue is either a stable blocker or major.
Comment #18
mherchelThis patch applies cleanly and colors the text yellow (screenshot below). The original behavior of having the hyperlink underlined remains.
Comment #22
lauriiiCommitted 71b2c04 and pushed to 10.0.x. Committed Drupal 9 patch to 9.4.x and cherry-picked to 9.3.x because this is a major bug fix and Claro is experimental. Thanks!