@primer/brand-css 0.67.0-rc.c9e85b47 → 0.67.0-rc.eb80fcc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,7 @@
22
22
  grid-template-rows: var(--Card-grid-template-rows);
23
23
  position: relative;
24
24
  height: 100%;
25
+ border-radius: var(--brand-borderRadius-medium);
25
26
  }
26
27
 
27
28
  .Card--align-center .Card {
@@ -49,6 +50,18 @@
49
50
  justify-items: center;
50
51
  }
51
52
 
53
+ .Card--backgroundColor-default {
54
+ background-color: var(--brand-Card-background-default);
55
+ }
56
+
57
+ .Card--backgroundColor-subtle {
58
+ background-color: var(--brand-color-canvas-subtle);
59
+ }
60
+
61
+ .Card--backgroundColor-none {
62
+ background-color: transparent;
63
+ }
64
+
52
65
  .Card--tokensPosition-block-end {
53
66
  /* Moves the dynamic height row from tokens back to description because the block-end layout places tokens below the body copy. */
54
67
  --Card-grid-template-rows: auto auto auto auto auto 1fr auto auto;
@@ -156,14 +169,6 @@
156
169
  padding: 0;
157
170
  }
158
171
 
159
- .Card--variant-default {
160
- background-color: var(--brand-Card-background-default);
161
- }
162
-
163
- .Card--variant-default.Card--ctaVariant-arrow {
164
- background-color: transparent;
165
- }
166
-
167
172
  .Card--ctaVariant-arrow {
168
173
  --Card-arrowAction-endInset: var(--base-size-40);
169
174
  }
@@ -230,6 +235,7 @@
230
235
 
231
236
  .Card__outer:focus-within {
232
237
  outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
238
+ border-radius: var(--brand-borderRadius-medium);
233
239
  }
234
240
 
235
241
  .Card__outer:has(.Card--variant-minimal):focus-within {
@@ -334,6 +340,26 @@
334
340
  white-space: nowrap;
335
341
  }
336
342
 
343
+ .Card:not(.Card--ctaVariant-arrow) .Card__action {
344
+ inline-size: 100%;
345
+ min-inline-size: 0;
346
+ }
347
+
348
+ .Card:not(.Card--ctaVariant-arrow) .Card__action > span:first-child {
349
+ min-inline-size: 0;
350
+ }
351
+
352
+ .Card:not(.Card--ctaVariant-arrow) .Card__actionLabel {
353
+ overflow: visible;
354
+ text-overflow: clip;
355
+ white-space: normal;
356
+ overflow-wrap: anywhere;
357
+ }
358
+
359
+ .Card--align-center:not(.Card--ctaVariant-arrow) .Card__actionLabel {
360
+ text-align: center;
361
+ }
362
+
337
363
  .Card__actionLabelClip {
338
364
  --actionLabelClip-duration: 400ms;
339
365
  display: inline-flex;
@@ -413,7 +439,7 @@
413
439
  }
414
440
 
415
441
  .Card__skew-bounding {
416
- border-radius: var(--brand-borderRadius-xlarge);
442
+ border-radius: var(--brand-borderRadius-medium);
417
443
  position: relative;
418
444
  overflow: hidden;
419
445
  z-index: 1;
@@ -91,6 +91,7 @@
91
91
  inset-inline-end: calc(var(--brand-pricing-options-item-gap, 0px) / 2 * -1);
92
92
  height: var(--brand-borderWidth-thin);
93
93
  background-color: var(--brand-color-text-emphasized);
94
+ z-index: 1;
94
95
  }
95
96
 
96
97
  /* First cell: don't overflow past container start (cards override below) */
@@ -103,13 +104,9 @@
103
104
  inset-inline-end: 0;
104
105
  }
105
106
 
106
- /* Default layout: extend accent border into container padding to reach the container edge */
107
- .PricingOptions--layout-default .PricingOptions__label-cell--has-label:first-child::after {
108
- inset-inline-start: calc(var(--brand-pricing-options-container-padding-inline, 0px) * -1);
109
- }
110
-
111
- .PricingOptions--layout-default .PricingOptions__label-cell--has-label:last-child::after {
112
- inset-inline-end: calc(var(--brand-pricing-options-container-padding-inline, 0px) * -1);
107
+ .PricingOptions--layout-default .PricingOptions__label-cell--has-label::after {
108
+ inset-inline-start: 0;
109
+ inset-inline-end: 0;
113
110
  }
114
111
 
115
112
  /* ---- Default layout labels ---- */
@@ -130,7 +127,18 @@
130
127
  }
131
128
 
132
129
  .PricingOptions--layout-default .PricingOptions__label-cell {
133
- padding-inline: 0;
130
+ margin-inline: calc(var(--brand-pricing-options-item-gap) / 2 * -1);
131
+ padding-inline: calc(var(--brand-pricing-options-item-gap) / 2);
132
+ }
133
+
134
+ .PricingOptions--layout-default .PricingOptions__label-cell:first-child {
135
+ margin-inline-start: calc(var(--brand-pricing-options-container-padding-inline) * -1);
136
+ padding-inline-start: var(--brand-pricing-options-container-padding-inline);
137
+ }
138
+
139
+ .PricingOptions--layout-default .PricingOptions__label-cell:last-child {
140
+ margin-inline-end: calc(var(--brand-pricing-options-container-padding-inline) * -1);
141
+ padding-inline-end: var(--brand-pricing-options-container-padding-inline);
134
142
  }
135
143
 
136
144
  /* Empty cells: transparent bg/borders but structurally visible so dividers show */
@@ -145,7 +153,7 @@
145
153
  position: absolute;
146
154
  inset-block: 0;
147
155
  width: var(--brand-borderWidth-thin);
148
- inset-inline-start: calc(var(--brand-pricing-options-item-gap) / 2 * -1);
156
+ inset-inline-start: 0;
149
157
  background-color: var(--brand-color-border-subtle);
150
158
  }
151
159
 
@@ -151,10 +151,7 @@
151
151
 
152
152
  .Testimonial-from {
153
153
  font-weight: var(--base-text-weight-normal);
154
- }
155
-
156
- .Testimonial-position {
157
- font-family: var(--brand-fontStack-monospace);
154
+ text-transform: uppercase;
158
155
  }
159
156
 
160
157
  /* Expressive variant */
@@ -168,7 +165,7 @@
168
165
  .Testimonial--variant-expressive {
169
166
  flex-direction: row;
170
167
  align-items: flex-end;
171
- gap: var(--base-size-64);
168
+ gap: var(--base-size-96);
172
169
  }
173
170
  }
174
171
 
@@ -193,6 +190,7 @@
193
190
  border-block-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
194
191
  padding-block-start: var(--base-size-24);
195
192
  width: 100%;
193
+ gap: var(--base-size-8);
196
194
  }
197
195
 
198
196
  @media screen and (min-width: 48rem) {
@@ -236,6 +234,8 @@
236
234
 
237
235
  .Testimonial--variant-expressive .Testimonial-quote {
238
236
  font-family: var(--brand-fontStack-monospace);
237
+ line-height: var(--brand-text-lineHeight-400);
238
+ font-weight: var(--base-text-weight-normal);
239
239
  }
240
240
 
241
241
  .Testimonial-link {
@@ -36,15 +36,6 @@
36
36
  background-color: var(--brand-Token-bgColor-hover-default);
37
37
  }
38
38
 
39
- .Token--variant-dark-gray {
40
- background-color: var(--brand-Token-bgColor-dark-gray);
41
- color: var(--brand-Token-fgColor-dark-gray);
42
- }
43
-
44
- .Token--interactive.Token--variant-dark-gray:hover {
45
- background-color: var(--brand-Token-bgColor-hover-dark-gray);
46
- }
47
-
48
39
  .Token--variant-accent {
49
40
  background-color: var(--brand-Token-bgColor-accent);
50
41
  color: var(--brand-Token-fgColor-accent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-css",
3
- "version": "0.67.0-rc.c9e85b47",
3
+ "version": "0.67.0-rc.eb80fcc4",
4
4
  "description": "CSS stylesheets for Primer Brand components",
5
5
  "keywords": [
6
6
  "primer",