@primer/brand-css 0.56.3-rc.ea64afd9 → 0.56.4-rc.2f9a9d26

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.
@@ -278,6 +278,13 @@
278
278
  fill: var(--base-color-scale-gray-3);
279
279
  }
280
280
 
281
+ @media (forced-colors: active) {
282
+ .ActionMenu__item:focus-visible {
283
+ outline: var(--brand-borderWidth-thick) solid Highlight;
284
+ outline-offset: var(--base-size-2);
285
+ }
286
+ }
287
+
281
288
  /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
282
289
  @media (prefers-reduced-motion: reduce) {
283
290
  .ActionMenu,
@@ -50,3 +50,11 @@
50
50
  font-size: var(--brand-text-size-200);
51
51
  line-height: var(--brand-text-lineHeight-200);
52
52
  }
53
+
54
+ @media (forced-colors: active) {
55
+ .FAQGroup__tablist-button[aria-selected='true'] {
56
+ border-color: Highlight;
57
+ border-width: var(--brand-borderWidth-thicker);
58
+ color: HighlightText;
59
+ }
60
+ }
@@ -117,6 +117,14 @@
117
117
  }
118
118
  }
119
119
 
120
+ @media (forced-colors: active) {
121
+ .Pagination__item[aria-current],
122
+ .Pagination__item[aria-current]:hover {
123
+ border-color: Highlight;
124
+ border-width: var(--brand-borderWidth-thicker);
125
+ }
126
+ }
127
+
120
128
  /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
121
129
  @media (prefers-reduced-motion: reduce) {
122
130
  .Pagination,
@@ -320,7 +320,8 @@
320
320
 
321
321
  .Prose video,
322
322
  .Prose iframe[src*='youtube.com'],
323
- .Prose iframe[src*='youtu.be'] {
323
+ .Prose iframe[src*='youtu.be'],
324
+ .Prose iframe[src*='youtube-nocookie.com'] {
324
325
  --spacing: var(--brand-Prose-img-spacing);
325
326
 
326
327
  border-radius: var(--brand-borderRadius-medium);
@@ -336,7 +337,8 @@
336
337
  }
337
338
 
338
339
  .Prose iframe[src*='youtube.com'],
339
- .Prose iframe[src*='youtu.be'] {
340
+ .Prose iframe[src*='youtu.be'],
341
+ .Prose iframe[src*='youtube-nocookie.com'] {
340
342
  width: 100%;
341
343
  aspect-ratio: 16 / 9;
342
344
  }
@@ -104,6 +104,7 @@
104
104
  background-color var(--brand-animation-duration-default) var(--brand-animation-easing-default);
105
105
  }
106
106
 
107
+ .SubNav__anchor-menu-outer-container:focus-within .SubNav__anchor-menu-container,
107
108
  .SubNav__anchor-menu-outer-container--stuck .SubNav__anchor-menu-container {
108
109
  transform: translateY(0);
109
110
  opacity: 1;
@@ -115,19 +116,20 @@
115
116
  transition: height var(--brand-animation-duration-default) var(--brand-animation-easing-default);
116
117
  }
117
118
 
119
+ .SubNav__anchor-menu-outer-container:focus-within,
118
120
  .SubNav__anchor-menu-outer-container--stuck {
119
121
  height: auto;
120
122
  }
121
123
 
122
124
  .SubNav__sub-menu--anchor {
123
125
  opacity: 0;
124
- visibility: hidden;
125
126
  transform: translateY(var(--brand-animation-variant-slideInDown-distance));
126
127
  transition: opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default),
127
128
  height var(--brand-animation-duration-default) var(--brand-animation-easing-default),
128
129
  transform var(--brand-animation-duration-default) var(--brand-animation-easing-default);
129
130
  }
130
131
 
132
+ .SubNav__anchor-menu-outer-container:focus-within .SubNav__sub-menu--anchor,
131
133
  .SubNav__anchor-menu-outer-container--stuck .SubNav__sub-menu--anchor {
132
134
  visibility: visible;
133
135
  opacity: 1;
@@ -31,6 +31,12 @@
31
31
  height: 100%;
32
32
  }
33
33
 
34
+ @media (forced-colors: active) {
35
+ .VideoPlayer__container {
36
+ border: var(--brand-borderWidth-thin) solid ButtonBorder;
37
+ }
38
+ }
39
+
34
40
  /* ---------------------------------------------------------- */
35
41
  /* 2. Player */
36
42
  /* ---------------------------------------------------------- */
@@ -87,6 +93,13 @@
87
93
  color: var(--brand-videoPlayer-playButton-fgColor-rest);
88
94
  }
89
95
 
96
+ @media (forced-colors: active) {
97
+ .VideoPlayer__playButton {
98
+ color: Highlight;
99
+ opacity: 1;
100
+ }
101
+ }
102
+
90
103
  /* ---------------------------------------------------------- */
91
104
  /* 4. Title */
92
105
  /* ---------------------------------------------------------- */
@@ -114,6 +127,13 @@
114
127
  visibility: hidden;
115
128
  }
116
129
 
130
+ @media (forced-colors: active) {
131
+ .VideoPlayer__title {
132
+ background: Canvas;
133
+ color: CanvasText;
134
+ }
135
+ }
136
+
117
137
  /* ---------------------------------------------------------- */
118
138
  /* 5. Controls */
119
139
  /* ---------------------------------------------------------- */
@@ -173,12 +193,15 @@
173
193
  }
174
194
 
175
195
  .VideoPlayer__iconControl:focus-visible {
176
- border-color: var(--brand-color-focus);
177
- outline: none;
178
- box-shadow: 0 0 0 0.125rem var(--brand-color-focus);
196
+ outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
197
+ outline-offset: var(--base-size-6);
179
198
  opacity: 1;
180
199
  }
181
200
 
201
+ .VideoPlayer__iconControl:not(.VideoPlayer__closedCaption):focus-visible {
202
+ border-radius: var(--brand-borderRadius-small);
203
+ }
204
+
182
205
  .VideoPlayer__iconControl svg {
183
206
  color: var(--brand-videoPlayer-controls-fgColor);
184
207
  }
@@ -224,6 +247,30 @@
224
247
  color: var(--brand-videoPlayer-closedCaption-fgColor-disabled);
225
248
  }
226
249
 
250
+ @media (forced-colors: active) {
251
+ .VideoPlayer__iconControl svg {
252
+ color: ButtonText;
253
+ }
254
+
255
+ .VideoPlayer__iconControl:focus-visible {
256
+ outline-color: Highlight;
257
+ }
258
+
259
+ .VideoPlayer__closedCaption:focus-visible {
260
+ outline: none;
261
+ }
262
+
263
+ .VideoPlayer__closedCaption:not(.VideoPlayer__ccOff) {
264
+ background: Highlight;
265
+ border-color: Highlight;
266
+ }
267
+
268
+ .VideoPlayer__closedCaption:not(.VideoPlayer__ccOff) .VideoPlayer__ccText {
269
+ background-color: Highlight;
270
+ color: HighlightText;
271
+ }
272
+ }
273
+
227
274
  /* ---------------------------------------------------------- */
228
275
  /* 6. Range Element */
229
276
  /* ---------------------------------------------------------- */
@@ -254,7 +301,8 @@
254
301
 
255
302
  .VideoPlayer__rangeInput:focus-visible {
256
303
  outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
257
- outline-offset: var(--base-size-4);
304
+ outline-offset: var(--base-size-8);
305
+ border-radius: var(--brand-borderRadius-small);
258
306
  opacity: 1;
259
307
  }
260
308
 
@@ -303,6 +351,28 @@
303
351
  border: none;
304
352
  }
305
353
 
354
+ @media (forced-colors: active) {
355
+ .VideoPlayer__rangeProgress::-webkit-progress-bar {
356
+ background-color: FieldText;
357
+ }
358
+
359
+ .VideoPlayer__rangeProgress::-webkit-progress-value {
360
+ background-color: Highlight;
361
+ }
362
+
363
+ .VideoPlayer__rangeProgress::-moz-progress-bar {
364
+ background: Highlight;
365
+ }
366
+
367
+ .VideoPlayer__rangeProgress::-ms-fill-lower {
368
+ background-color: Highlight;
369
+ }
370
+
371
+ .VideoPlayer__rangeProgress::-ms-fill-upper {
372
+ background-color: FieldText;
373
+ }
374
+ }
375
+
306
376
  /* ---------------------------------------------------------- */
307
377
  /* 7. Tooltip */
308
378
  /* ---------------------------------------------------------- */
@@ -87,6 +87,21 @@
87
87
  opacity: 1;
88
88
  }
89
89
 
90
+ @media (forced-colors: active) {
91
+ .Checkbox-input:focus + .Checkbox {
92
+ outline: var(--brand-borderWidth-thick) solid Highlight;
93
+ outline-offset: var(--base-size-2);
94
+ }
95
+
96
+ .Checkbox-input:checked + .Checkbox .Checkbox-checkmark-path {
97
+ stroke: Highlight;
98
+ }
99
+
100
+ .Checkbox {
101
+ transition: none;
102
+ }
103
+ }
104
+
90
105
  /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
91
106
  @media (prefers-reduced-motion: reduce) {
92
107
  .Checkbox,
@@ -110,6 +110,17 @@ Fixes safari bug where outline doesn't respect border-radius
110
110
  opacity: 1;
111
111
  }
112
112
 
113
+ @media (forced-colors: active) {
114
+ .Radio-input:focus + .Radio {
115
+ outline: var(--brand-borderWidth-thick) solid Highlight;
116
+ outline-offset: var(--base-size-4);
117
+ }
118
+
119
+ .Radio-input:checked + .Radio .Radio-dot {
120
+ background-color: Highlight;
121
+ }
122
+ }
123
+
113
124
  /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
114
125
  @media (prefers-reduced-motion: reduce) {
115
126
  .Radio,
@@ -41,6 +41,13 @@
41
41
  box-shadow: 0 0 0 2px var(--brand-color-focus);
42
42
  }
43
43
 
44
+ @media (forced-colors: active) {
45
+ .Select:focus-visible {
46
+ outline: var(--brand-borderWidth-thick) solid Highlight;
47
+ outline-offset: var(--base-size-2);
48
+ }
49
+ }
50
+
44
51
  .Select[disabled] {
45
52
  -webkit-text-fill-color: var(--brand-control-color-fg-disabled);
46
53
  color: var(--brand-control-color-fg-disabled);
@@ -107,6 +107,13 @@
107
107
  outline: none;
108
108
  }
109
109
 
110
+ @media (forced-colors: active) {
111
+ .TextInput-wrapper:focus-within {
112
+ outline: var(--brand-borderWidth-thick) solid Highlight;
113
+ outline-offset: var(--base-size-2);
114
+ }
115
+ }
116
+
110
117
  /*
111
118
  * Validation
112
119
  */
@@ -114,6 +114,13 @@
114
114
  outline: none;
115
115
  }
116
116
 
117
+ @media (forced-colors: active) {
118
+ .Textarea-wrapper:focus-within {
119
+ outline: var(--brand-borderWidth-thick) solid Highlight;
120
+ outline-offset: var(--base-size-2);
121
+ }
122
+ }
123
+
117
124
  /*
118
125
  * Validation
119
126
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-css",
3
- "version": "0.56.3-rc.ea64afd9",
3
+ "version": "0.56.4-rc.2f9a9d26",
4
4
  "description": "CSS stylesheets for Primer Brand components",
5
5
  "keywords": [
6
6
  "primer",