Ticket #49931: 49931.1.diff
File 49931.1.diff, 2.1 KB (added by , 11 months ago) |
---|
-
src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
979 979 .has-secondary-background-color, 980 980 .has-dark-gray-background-color, 981 981 .has-light-gray-background-color { 982 983 982 // Use white text against these backgrounds by default. 984 983 color: $color__background-body; 985 984 986 > p, 987 > h1, 988 > h2, 989 > h3, 990 > h4, 991 > h5, 992 > h6, 993 > a { 994 color: $color__background-body; 985 :where(p, h1, h2, h3, h4, h5, h6, a:not(.wp-element-button):not(.has-text-color)) { 986 color: inherit; 995 987 } 996 988 } 997 989 998 990 .has-white-background-color { 991 // Use dark gray text against this background by default. 999 992 color: $color__text-main; 1000 993 1001 // Use dark gray text against this background by default. 1002 > p, 1003 > h1, 1004 > h2, 1005 > h3, 1006 > h4, 1007 > h5, 1008 > h6, 1009 > a { 1010 color: $color__text-main; 994 :where(p, h1, h2, h3, h4, h5, h6, a:not(.wp-element-button):not(.has-text-color)) { 995 color: inherit; 1011 996 } 1012 997 } 1013 998 -
src/wp-content/themes/twentynineteen/style-editor.scss
179 179 .has-light-gray-background-color { 180 180 color: $color__background-body; 181 181 182 p, 183 h1, 184 h2, 185 h3, 186 h4, 187 h5, 188 h6, 189 a { 190 color: $color__background-body; 182 // Low specificity for headings and paragraphs, higher for links. 183 :where(p, h1, h2, h3, h4, h5, h6), 184 a:not(.wp-element-button):not(.has-text-color) { 185 color: inherit; 191 186 } 192 187 } 193 188 … … 195 190 .has-white-background-color { 196 191 color: $color__text-main; 197 192 198 p, 199 h1, 200 h2, 201 h3, 202 h4, 203 h5, 204 h6, 205 a { 206 color: $color__text-main; 193 // Low specificity for headings and paragraphs, higher for links. 194 :where(p, h1, h2, h3, h4, h5, h6), 195 a:not(.wp-element-button):not(.has-text-color) { 196 color: inherit; 207 197 } 208 198 } 209 199