From e861e17c3c136bb28f76db1a61e7231d691a1d45 Mon Sep 17 00:00:00 2001 From: Zebulan Stanphill Date: Mon, 15 Jun 2020 10:59:23 -0500 Subject: [PATCH] Buttons block: change valid alignment options. --- lib/patterns/two-buttons.php | 2 +- packages/block-library/src/buttons/block.json | 3 +-- .../editor/various/__snapshots__/adding-patterns.test.js.snap | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/patterns/two-buttons.php b/lib/patterns/two-buttons.php index ff434b858782d1..1bdbbc30a736ec 100644 --- a/lib/patterns/two-buttons.php +++ b/lib/patterns/two-buttons.php @@ -7,7 +7,7 @@ return array( 'title' => __( 'Two Buttons', 'gutenberg' ), - 'content' => "\n
\n\n\n\n\n\n
\n", + 'content' => "\n
\n\n\n\n\n\n
\n", 'viewportWidth' => 500, 'categories' => array( 'buttons' ), ); diff --git a/packages/block-library/src/buttons/block.json b/packages/block-library/src/buttons/block.json index 4004a9591a99e6..3b02d9d0193eac 100644 --- a/packages/block-library/src/buttons/block.json +++ b/packages/block-library/src/buttons/block.json @@ -2,8 +2,7 @@ "name": "core/buttons", "category": "design", "supports": { - "align": true, - "alignWide": false, + "align": [ "wide", "full" ], "lightBlockWrapper": true } } diff --git a/packages/e2e-tests/specs/editor/various/__snapshots__/adding-patterns.test.js.snap b/packages/e2e-tests/specs/editor/various/__snapshots__/adding-patterns.test.js.snap index 6edf4efa96041a..c8d752f4caa306 100644 --- a/packages/e2e-tests/specs/editor/various/__snapshots__/adding-patterns.test.js.snap +++ b/packages/e2e-tests/specs/editor/various/__snapshots__/adding-patterns.test.js.snap @@ -1,8 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`adding blocks should insert a block pattern 1`] = ` -" -
+" +