From 8ce7a1da8f264c05fee6ed0d144816d5c4d76963 Mon Sep 17 00:00:00 2001 From: Utkarsh Patel Date: Thu, 9 Jun 2022 14:44:26 +0530 Subject: [PATCH] Revert "Add spacing; Move font size as first" --- .../components/google-fonts-control/item.js | 42 +++++++++---------- .../components/google-fonts-control/style.css | 4 -- .../__snapshots__/item.test.js.snap | 30 ++++++------- 3 files changed, 36 insertions(+), 40 deletions(-) diff --git a/plugin/assets/src/customizer/components/google-fonts-control/item.js b/plugin/assets/src/customizer/components/google-fonts-control/item.js index 0efa74feb..cb25cd5c6 100644 --- a/plugin/assets/src/customizer/components/google-fonts-control/item.js +++ b/plugin/assets/src/customizer/components/google-fonts-control/item.js @@ -59,27 +59,28 @@ const Item = props => {
{ - const sizeValue = event.target.value; + const lineHeightValue = event.target.value; onChange( { id, - sizeValue, + lineHeightValue, trackingValue: tracking.value, + sizeValue: size.value, weightValue: weight.value, - lineHeightValue: lineHeight.value, } ); } } /> @@ -89,28 +90,27 @@ const Item = props => {
{ - const lineHeightValue = event.target.value; + const sizeValue = event.target.value; onChange( { id, - lineHeightValue, + sizeValue, trackingValue: tracking.value, - sizeValue: size.value, weightValue: weight.value, + lineHeightValue: lineHeight.value, } ); } } /> diff --git a/plugin/assets/src/customizer/components/google-fonts-control/style.css b/plugin/assets/src/customizer/components/google-fonts-control/style.css index 2cb266261..a80e2b4f8 100644 --- a/plugin/assets/src/customizer/components/google-fonts-control/style.css +++ b/plugin/assets/src/customizer/components/google-fonts-control/style.css @@ -59,10 +59,6 @@ padding: 8px 0 8px 8px; } - .google-fonts-control-child + .google-fonts-control-child { - margin-top: 20px; - } - .components-google-fonts-control__select { flex-direction: row; align-items: center; diff --git a/plugin/tests/js/customizer/components/google-fonts-control/__snapshots__/item.test.js.snap b/plugin/tests/js/customizer/components/google-fonts-control/__snapshots__/item.test.js.snap index 9cb9c2ad0..1ffeb8f49 100644 --- a/plugin/tests/js/customizer/components/google-fonts-control/__snapshots__/item.test.js.snap +++ b/plugin/tests/js/customizer/components/google-fonts-control/__snapshots__/item.test.js.snap @@ -20,19 +20,20 @@ exports[`GoogleFontsControl/Item matches snapshot 1`] = ` >
@@ -44,20 +45,19 @@ exports[`GoogleFontsControl/Item matches snapshot 1`] = ` >