@primer/brand-css 0.67.0-rc.197d7044 → 0.67.0-rc.1f79483e

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;
@@ -127,7 +127,7 @@
127
127
  align-items: center;
128
128
  gap: var(--base-size-24);
129
129
  margin: auto;
130
- max-width: 100dvw;
130
+ max-width: 100vw;
131
131
  }
132
132
 
133
133
  .LogoSuite__logobar-marqueeGroup {
@@ -103,13 +103,9 @@
103
103
  inset-inline-end: 0;
104
104
  }
105
105
 
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);
106
+ .PricingOptions--layout-default .PricingOptions__label-cell--has-label::after {
107
+ inset-inline-start: 0;
108
+ inset-inline-end: 0;
113
109
  }
114
110
 
115
111
  /* ---- Default layout labels ---- */
@@ -130,7 +126,18 @@
130
126
  }
131
127
 
132
128
  .PricingOptions--layout-default .PricingOptions__label-cell {
133
- padding-inline: 0;
129
+ margin-inline: calc(var(--brand-pricing-options-item-gap) / 2 * -1);
130
+ padding-inline: calc(var(--brand-pricing-options-item-gap) / 2);
131
+ }
132
+
133
+ .PricingOptions--layout-default .PricingOptions__label-cell:first-child {
134
+ margin-inline-start: calc(var(--brand-pricing-options-container-padding-inline) * -1);
135
+ padding-inline-start: var(--brand-pricing-options-container-padding-inline);
136
+ }
137
+
138
+ .PricingOptions--layout-default .PricingOptions__label-cell:last-child {
139
+ margin-inline-end: calc(var(--brand-pricing-options-container-padding-inline) * -1);
140
+ padding-inline-end: var(--brand-pricing-options-container-padding-inline);
134
141
  }
135
142
 
136
143
  /* Empty cells: transparent bg/borders but structurally visible so dividers show */
@@ -145,7 +152,7 @@
145
152
  position: absolute;
146
153
  inset-block: 0;
147
154
  width: var(--brand-borderWidth-thin);
148
- inset-inline-start: calc(var(--brand-pricing-options-item-gap) / 2 * -1);
155
+ inset-inline-start: 0;
149
156
  background-color: var(--brand-color-border-subtle);
150
157
  }
151
158
 
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-css",
3
- "version": "0.67.0-rc.197d7044",
3
+ "version": "0.67.0-rc.1f79483e",
4
4
  "description": "CSS stylesheets for Primer Brand components",
5
5
  "keywords": [
6
6
  "primer",