From 80f742416d24ab15be7c97239836cb59bcafc9d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Mon, 16 Oct 2023 16:46:36 +0200 Subject: [PATCH 1/2] Fix pattern spacing Removes the top/bottom paddings, adds margins to the bottom of each pattern --- patterns/featured-category-triple.php | 4 ++-- patterns/hero-product-3-split.php | 4 ++-- patterns/just-arrived-full-hero.php | 10 ++++++---- patterns/product-collection-3-columns.php | 4 ++-- patterns/product-collection-5-columns.php | 4 ++-- patterns/social-follow-us-in-social-media.php | 4 ++-- patterns/testimonials-3-columns.php | 5 +++-- 7 files changed, 19 insertions(+), 16 deletions(-) diff --git a/patterns/featured-category-triple.php b/patterns/featured-category-triple.php index bc9782c0c10..a40fe5d0740 100644 --- a/patterns/featured-category-triple.php +++ b/patterns/featured-category-triple.php @@ -18,8 +18,8 @@ $third_title = $content['titles'][2]['default'] ?? ''; ?> - -
+ +
diff --git a/patterns/hero-product-3-split.php b/patterns/hero-product-3-split.php index aac835ff468..6b07c3445d6 100644 --- a/patterns/hero-product-3-split.php +++ b/patterns/hero-product-3-split.php @@ -22,8 +22,8 @@ $fifth_description = $content['descriptions'][4]['default'] ?? ''; ?> - -
+ +
diff --git a/patterns/just-arrived-full-hero.php b/patterns/just-arrived-full-hero.php index 882f1692336..b87fd71d777 100644 --- a/patterns/just-arrived-full-hero.php +++ b/patterns/just-arrived-full-hero.php @@ -6,6 +6,7 @@ */ use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper; + $content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/just-arrived-full-hero' ); $images = PatternsHelper::get_pattern_images( 'woocommerce-blocks/just-arrived-full-hero' ); @@ -15,10 +16,10 @@ $pattern_image = PatternsHelper::get_image_url( $images, 0, 'images/pattern-placeholders/plant-in-vase.jpg' ); ?> - -
+ +
- +
@@ -41,5 +42,6 @@
-
+
+
diff --git a/patterns/product-collection-3-columns.php b/patterns/product-collection-3-columns.php index c2c4c5b579b..007f1988c3f 100644 --- a/patterns/product-collection-3-columns.php +++ b/patterns/product-collection-3-columns.php @@ -11,8 +11,8 @@ $products_title = $content['titles'][0]['default'] ?? ''; ?> - -
+ +

diff --git a/patterns/product-collection-5-columns.php b/patterns/product-collection-5-columns.php index e97ea55a905..e8fdb8bb2b0 100644 --- a/patterns/product-collection-5-columns.php +++ b/patterns/product-collection-5-columns.php @@ -11,8 +11,8 @@ $products_title = $content['titles'][0]['default'] ?? ''; ?> - -
+ +

diff --git a/patterns/social-follow-us-in-social-media.php b/patterns/social-follow-us-in-social-media.php index b3bd672dd12..b9f0a733af3 100644 --- a/patterns/social-follow-us-in-social-media.php +++ b/patterns/social-follow-us-in-social-media.php @@ -17,8 +17,8 @@ $social_title = $content['titles'][0]['default'] ?? ''; ?> - -
+ +
diff --git a/patterns/testimonials-3-columns.php b/patterns/testimonials-3-columns.php index 998ad7e3f42..8e6999f18bd 100644 --- a/patterns/testimonials-3-columns.php +++ b/patterns/testimonials-3-columns.php @@ -17,8 +17,9 @@ $second_description = $content['descriptions'][1]['default'] ?? ''; $third_description = $content['descriptions'][2]['default'] ?? ''; ?> - -
+ + +

From 488ecc7f6264213a9d7ee7ad45cbda74a6e61fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Tue, 17 Oct 2023 10:13:07 +0200 Subject: [PATCH 2/2] Add margin between patterns to ensure consistency between themes --- patterns/featured-category-cover-image.php | 5 +++-- patterns/hero-product-chessboard.php | 4 ++-- patterns/product-collection-4-columns.php | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/patterns/featured-category-cover-image.php b/patterns/featured-category-cover-image.php index 957fe159cad..8cbb5d64e70 100644 --- a/patterns/featured-category-cover-image.php +++ b/patterns/featured-category-cover-image.php @@ -15,8 +15,9 @@ $description = $content['descriptions'][0]['default'] ?? ''; $button = $content['buttons'][0]['default'] ?? ''; ?> - -
+ + +
diff --git a/patterns/hero-product-chessboard.php b/patterns/hero-product-chessboard.php index 4f2c1508149..cad13e8169e 100644 --- a/patterns/hero-product-chessboard.php +++ b/patterns/hero-product-chessboard.php @@ -25,8 +25,8 @@ $fifth_description = $content['descriptions'][4]['default'] ?? ''; ?> - -
+ +
diff --git a/patterns/product-collection-4-columns.php b/patterns/product-collection-4-columns.php index de6bced4514..03a6e20e8d8 100644 --- a/patterns/product-collection-4-columns.php +++ b/patterns/product-collection-4-columns.php @@ -11,8 +11,8 @@ $products_title = $content['titles'][0]['default'] ?? ''; ?> - -
+ +