Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-mirrors-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudfour/patterns": patch
---

Remove block alignment override styles for Deck
19 changes: 0 additions & 19 deletions src/objects/deck/deck.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
18 changes: 0 additions & 18 deletions src/objects/deck/deck.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,24 +122,6 @@ The `o-deck--align-start` modifier can be used to top-align deck items. This mod
</Story>
</Canvas>

## Block Alignment

When used in WordPress, the `alignwide` and `alignfull` block alignment styles have been updated for use with the Deck.

<Canvas>
<Story
name="Block Alignment"
height="400px"
args={{
columns: 3,
columnsBreakpoint: '@m',
alignment: 'alignfull',
}}
>
{articlesStory.bind({})}
</Story>
</Canvas>

## 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.
Expand Down