Forráskód Böngészése

Accessibility fixes for links,

Jeffrey Pearce 5 éve
szülő
commit
d82f6efeb9

+ 19 - 0
stratford/sass/_extra-child-theme.scss

@@ -55,8 +55,27 @@ h5,
 h6 {
 	color: $color_primary;
 }
+
 a {
 	text-decoration: none;
+
+	.wp-block-cover &,
+	.wp-block-cover-image &,
+	.wp-block-media-text &,
+	p:not(.site-title) & {
+		text-decoration: underline;
+
+		&.wp-block-button__link,
+		&:hover {
+			text-decoration: none;
+		}
+	}
+}
+
+.has-background {
+	a {
+		color: currentColor;
+	}
 }
 
 /**

+ 19 - 1
stratford/sass/style-child-theme-editor.scss

@@ -66,8 +66,26 @@ $font_size_widget_title: #{map-deep-get($config-heading, "font", "size", "h3")};
 /**
  * 1. General Styles
  */
-a {
+ a {
 	text-decoration: none;
+
+	.wp-block-cover &,
+	.wp-block-cover-image &,
+	.wp-block-media-text &,
+	p:not(.site-title) & {
+		text-decoration: underline;
+
+		&.wp-block-button__link,
+		&:hover {
+			text-decoration: none;
+		}
+	}
+}
+
+.has-background {
+	a {
+		color: currentColor;
+	}
 }
 
 .editor-post-title__block .editor-post-title__input {

+ 21 - 0
stratford/style-editor.css

@@ -872,6 +872,27 @@ a {
 	text-decoration: none;
 }
 
+.wp-block-cover a,
+.wp-block-cover-image a,
+.wp-block-media-text a,
+p:not(.site-title) a {
+	text-decoration: underline;
+}
+
+.wp-block-cover a.wp-block-button__link, .wp-block-cover a:hover,
+.wp-block-cover-image a.wp-block-button__link,
+.wp-block-cover-image a:hover,
+.wp-block-media-text a.wp-block-button__link,
+.wp-block-media-text a:hover,
+p:not(.site-title) a.wp-block-button__link,
+p:not(.site-title) a:hover {
+	text-decoration: none;
+}
+
+.has-background a {
+	color: currentColor;
+}
+
 .editor-post-title__block .editor-post-title__input {
 	text-align: center;
 	color: #2c313f;

+ 22 - 2
stratford/style-rtl.css

@@ -2535,8 +2535,7 @@ table th,
 .site-info {
 	color: #767676;
 	font-family: "Lato", sans-serif;
-	font-size: 1rem;
-	line-height: 1;
+	font-size: 0.83333rem;
 }
 
 @media only screen and (min-width: 640px) {
@@ -3416,6 +3415,27 @@ a {
 	text-decoration: none;
 }
 
+.wp-block-cover a,
+.wp-block-cover-image a,
+.wp-block-media-text a,
+p:not(.site-title) a {
+	text-decoration: underline;
+}
+
+.wp-block-cover a.wp-block-button__link, .wp-block-cover a:hover,
+.wp-block-cover-image a.wp-block-button__link,
+.wp-block-cover-image a:hover,
+.wp-block-media-text a.wp-block-button__link,
+.wp-block-media-text a:hover,
+p:not(.site-title) a.wp-block-button__link,
+p:not(.site-title) a:hover {
+	text-decoration: none;
+}
+
+.has-background a {
+	color: currentColor;
+}
+
 /**
  * 2. Header
  */

+ 21 - 0
stratford/style.css

@@ -3420,6 +3420,27 @@ a {
 	text-decoration: none;
 }
 
+.wp-block-cover a,
+.wp-block-cover-image a,
+.wp-block-media-text a,
+p:not(.site-title) a {
+	text-decoration: underline;
+}
+
+.wp-block-cover a.wp-block-button__link, .wp-block-cover a:hover,
+.wp-block-cover-image a.wp-block-button__link,
+.wp-block-cover-image a:hover,
+.wp-block-media-text a.wp-block-button__link,
+.wp-block-media-text a:hover,
+p:not(.site-title) a.wp-block-button__link,
+p:not(.site-title) a:hover {
+	text-decoration: none;
+}
+
+.has-background a {
+	color: currentColor;
+}
+
 /**
  * 2. Header
  */