From 65e1afd5fa3ea60673cd61de7fb62ea9bdc54531 Mon Sep 17 00:00:00 2001 From: Scott Vandehey Date: Wed, 13 Jul 2022 10:18:52 -0700 Subject: [PATCH 1/2] Remove Block Alignment Override Styles for Deck This PR removes the custom block alignment styles for the Deck object. These weren't working quite as intended, and we're removing them in favor of editors adding the `o-container__pad` class as needed. --- src/objects/deck/deck.scss | 19 ------------------- src/objects/deck/deck.stories.mdx | 18 ------------------ 2 files changed, 37 deletions(-) diff --git a/src/objects/deck/deck.scss b/src/objects/deck/deck.scss index f8916e25e..55939b7a5 100644 --- a/src/objects/deck/deck.scss +++ b/src/objects/deck/deck.scss @@ -53,22 +53,3 @@ .o-deck--align-start { align-items: start; } - -/** - * Block alignment adjustments - * - * 1. Set inline padding since we don't want the deck to touch the viewport - * edges even when it's full bleed. - * 2. Remove padding once `alignwide` is no longer full-bleed. - */ - -.o-deck.alignfull, -.o-deck.alignwide { - @include spacing.fluid-padding-inline; // 1 -} - -.o-deck.alignwide { - @media (width >= breakpoint.$l) { - padding-inline: 0; // 2 - } -} diff --git a/src/objects/deck/deck.stories.mdx b/src/objects/deck/deck.stories.mdx index 30db298da..f64034f1b 100644 --- a/src/objects/deck/deck.stories.mdx +++ b/src/objects/deck/deck.stories.mdx @@ -122,24 +122,6 @@ The `o-deck--align-start` modifier can be used to top-align deck items. This mod -## Block Alignment - -When used in WordPress, the `alignwide` and `alignfull` block alignment styles have been updated for use with the Deck. - - - - {articlesStory.bind({})} - - - ## Specifying Columns While automatic columns are convenient, there are times when a specific column count is desired. For example, you may want to limit a design to three columns at larger breakpoints to align with adjacent elements. From 72e05120347f51f2ac7a537dfd18fa126fd11136 Mon Sep 17 00:00:00 2001 From: Scott Vandehey Date: Wed, 13 Jul 2022 10:21:37 -0700 Subject: [PATCH 2/2] Create famous-mirrors-ring.md --- .changeset/famous-mirrors-ring.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/famous-mirrors-ring.md diff --git a/.changeset/famous-mirrors-ring.md b/.changeset/famous-mirrors-ring.md new file mode 100644 index 000000000..fd0559c67 --- /dev/null +++ b/.changeset/famous-mirrors-ring.md @@ -0,0 +1,5 @@ +--- +"@cloudfour/patterns": patch +--- + +Remove block alignment override styles for Deck