Skip to content

Commit 16b0cc7

Browse files
Set Card content max-width (#943)
1 parent 4024e27 commit 16b0cc7

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

.changeset/spicy-hairs-attend.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react-brand': patch
3+
---
4+
5+
Sets the maximum widths for the heading and description of the `Card` component.

packages/react/src/Card/Card.module.css

+8
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,19 @@
125125
grid-area: heading;
126126
}
127127

128+
.Card--fullWidth .Card__heading {
129+
max-width: 320px;
130+
}
131+
128132
.Card__description {
129133
margin-bottom: var(--base-size-32);
130134
grid-area: description;
131135
}
132136

137+
.Card--fullWidth .Card__description {
138+
max-width: 400px;
139+
}
140+
133141
.Card__action {
134142
grid-area: action;
135143
margin-top: auto;

0 commit comments

Comments
 (0)