Skip to content

Commit 288d6fe

Browse files
marissahuysentruytcastastrophe
authored andcommitted
fix(card): reimplement correct block size (#4137)
* fix(card): move block-size to quiet and gallery
1 parent ad01758 commit 288d6fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/eighty-ghosts-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spectrum-css/card": patch
3+
---
4+
5+
The property `block-size: 100%` had been removed accidentally from `.spectrum-Card–gallery` and `.spectrum-Card–quiet`, and put on the `.spectrum-Card` parent card. This patch correctly reapplies `block-size: 100%` to the gallery and quiet variants.

components/card/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
text-decoration: none;
8181

8282
min-inline-size: var(--mod-card-minimum-width, var(--spectrum-card-minimum-width));
83-
block-size: 100%;
8483

8584
border: var(--spectrum-card-border-width) solid transparent;
8685
border-radius: var(--spectrum-card-corner-radius);
@@ -307,6 +306,7 @@
307306
overflow: visible;
308307
border-color: transparent;
309308
background-color: transparent;
309+
block-size: 100%;
310310

311311
&::before {
312312
display: none;

0 commit comments

Comments
 (0)