Kaynağa Gözat

Quadrat: Move the variable to the correct spot

Daniel Dudzic 4 yıl önce
ebeveyn
işleme
f5177a0251

+ 1 - 1
blank-canvas-blocks/assets/ponyfill.css

@@ -257,7 +257,7 @@ input[type=checkbox] + label {
 }
 
 .wp-block-code code {
-	font-family: var(--wp--preset--font-family--code);
+	font-family: var(--wp--custom--code--typography--font-family);
 }
 
 .wp-block-gallery .blocks-gallery-image figcaption,

+ 1 - 6
blank-canvas-blocks/experimental-theme.json

@@ -85,11 +85,6 @@
 						"fontFamily": "var(--font-headings, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif)",
 						"slug": "headings",
 						"name": "Headings"
-					},
-					{
-						"fontFamily": "monospace",
-						"slug": "code",
-						"name": "Code"
 					}
 				]
 			},
@@ -180,7 +175,7 @@
 				},
 				"code": {
 					"typography": {
-						"fontFamily": "var(--wp--preset--font-family--code)"
+						"fontFamily": "monospace"
 					}
 				},
 				"quote": {

+ 4 - 0
blank-canvas-blocks/sass/blocks/_code.scss

@@ -0,0 +1,4 @@
+// TODO: This can be removed when Gutenberg applies fontFamily correcly to .wp-block-code code
+.wp-block-code code {
+	font-family: var(--wp--custom--code--typography--font-family);
+}