Browse Source

Curator: fix issue with link focus state (#6151)

* fix issue with link focus state

* move post-excerpt styles to theme.json
Madhu Dollu 3 years ago
parent
commit
a2624845bd
2 changed files with 18 additions and 13 deletions
  1. 1 13
      curator/style.css
  2. 17 0
      curator/theme.json

+ 1 - 13
curator/style.css

@@ -135,6 +135,7 @@ a:not(
 	.wp-block-search__button,
 	.wp-block-search__button,
 	.wp-block-button__link
 	.wp-block-button__link
 ):focus {
 ):focus {
+	text-decoration: underline;
 	text-decoration-style: dotted;
 	text-decoration-style: dotted;
 }
 }
 
 
@@ -211,19 +212,6 @@ a:not(
 	font-size: clamp(1.5rem, 4vw, 2rem);
 	font-size: clamp(1.5rem, 4vw, 2rem);
 }
 }
 
 
-/*
- * Post Excerpt
- */
-.wp-block-post-excerpt .wp-block-post-excerpt__more-text a {
-	font-family: var(--wp--preset--font-family--heading-font);
-	font-size: 1.375rem;
-	font-weight: 900;
-	letter-spacing: -0.44px;
-	color: var(--wp--preset--color--foreground);
-	text-decoration: none;
-	text-transform: uppercase;
-}
-
 
 
 /*
 /*
  * Alignment styles, borrowed from Twenty Twenty-Two.
  * Alignment styles, borrowed from Twenty Twenty-Two.

+ 17 - 0
curator/theme.json

@@ -318,6 +318,23 @@
 					}
 					}
 				}
 				}
 			},
 			},
+			"core/post-excerpt": {
+				"elements": {
+					"link": {
+						"typography": {
+							"fontFamily": "var(--wp--preset--font-family--heading-font)",
+							"fontSize": "1.375rem",
+							"fontWeight": "900",
+							"letterSpacing": "-0.44px",
+							"textDecoration": "none",
+							"textTransform": "uppercase"
+						},
+						"color": {
+							"text": "var(--wp--preset--color--foreground)"
+						}
+					}
+				}
+			},
 			"core/query-pagination": {
 			"core/query-pagination": {
 				"typography": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--heading-font)",
 					"fontFamily": "var(--wp--preset--font-family--heading-font)",