Skip to content
Permalink
Browse files

Twenty Ten: Custom colors should override `:visited` link styles on b…

…locks.

Make sure the block editor custom colors in the theme also override the theme's `:visited` link styles. This prevents contrast issues, like in the button block -- when the background is dark, the purple `:visited` link can be difficult to read.

Fixes #45434.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44188 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
laurelfulford committed Dec 14, 2018
1 parent 49d906c commit 4de6cd3790e0c4e237bb4857f291775d323acfe2
Showing with 20 additions and 10 deletions.
  1. +20 −10 src/wp-content/themes/twentyten/blocks.css
@@ -204,42 +204,52 @@ p.has-drop-cap:not(:focus)::first-letter {
6.0 Blocks - Colors
--------------------------------------------------------------*/

.has-blue-color {
.has-blue-color,
.has-blue-color:visited {
color: #0066cc;
}

.has-blue-background-color {
.has-blue-background-color,
.has-blue-background-color:visited {
background-color: #0066cc;
}

.has-black-color {
.has-black-color,
.has-black-color:visited {
color: #000;
}

.has-black-background-color {
.has-black-background-color,
.has-black-background-color:visited {
background-color: #000;
}

.has-medium-gray-color {
.has-medium-gray-color,
.has-medium-gray-color:visited {
color: #666;
}

.has-medium-gray-background-color {
.has-medium-gray-background-color,
.has-medium-gray-background-color:visited {
background-color: #666;
}

.has-light-gray-color {
.has-light-gray-color,
.has-light-gray-color:visited {
color: #f1f1f1;
}

.has-light-gray-background-color {
.has-light-gray-background-color,
.has-light-gray-background-color:visited {
background-color: #f1f1f1;
}

.has-white-color {
.has-white-color,
.has-white-color:visited {
color: #fff;
}

.has-white-background-color {
.has-white-background-color,
.has-white-background-color:visited {
background-color: #fff;
}

0 comments on commit 4de6cd3

Please sign in to comment.
You can’t perform that action at this time.