@planningcenter/topbar 12.5.0-rc.4 → 12.6.0-qa-1010.0

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.
package/dist/topbar.css CHANGED
@@ -1,10 +1,10 @@
1
- @charset "UTF-8";
2
1
  :root {
3
2
  --topbar-height: 56px;
4
3
  --topbar-slight-transition: 120ms ease-in;
5
4
  --topbar-slight-transition-background: background-color var(--topbar-slight-transition);
6
5
  --topbar-scrollbar-color: var(--t-fill-color-transparency-dark-030) transparent;
7
6
  --topbar-scrollbar-width: thin;
7
+
8
8
  --topbar-nav-link-font-size: var(--t-font-size-sm);
9
9
  --topbar-nav-link-font-color: var(--t-text-color-headline);
10
10
  --topbar-nav-link-height: var(--t-container-size-md);
@@ -13,19 +13,25 @@
13
13
  --topbar-nav-link-border-color: transparent;
14
14
  --topbar-nav-link-border-radius: 999px;
15
15
  --topbar-nav-link-transition: var(--topbar-slight-transition-background);
16
+
16
17
  --topbar-nav-link-background-color-hover: var(--t-fill-color-transparency-light-040);
18
+
17
19
  --topbar-nav-link-background-color-active: var(--t-fill-color-transparency-light-060);
18
20
  --topbar-nav-link-border-color-active: var(--t-fill-color-transparency-light-030);
21
+
19
22
  --topbar-app-menu-margin-left: var(--t-spacing-2);
20
23
  --topbar-app-menu-padding-x: var(--t-spacing-half);
21
24
  --topbar-app-menu-offset: calc(
22
25
  var(--topbar-app-menu-padding-x) - var(--t-spacing-1) * 2 - var(--t-border-width)
23
26
  );
27
+
24
28
  --topbar-action-size: 48px;
29
+
25
30
  --toolbar-width: 64px;
26
31
  --toolbar-inner-width: 48px;
27
32
  --toolbar-drawer-width: 360px;
28
33
  --toolbar-navbar-height: 56px;
34
+
29
35
  --content-wrap-border-color: hsla(0, 0%, 0%, 0.08);
30
36
  --content-wrap-shadow-dimensions: 0 -1px 0 0;
31
37
  }
@@ -33,25 +39,33 @@
33
39
  @media (min-width: 600px) {
34
40
  :root {
35
41
  --topbar-height: 64px;
42
+
36
43
  --topbar-action-size: var(--topbar-nav-link-height);
44
+
37
45
  --content-wrap-shadow-dimensions: 0 0 0 1px;
38
46
  }
39
47
  }
40
- :root[data-color-mode=dark] {
48
+
49
+ :root[data-color-mode="dark"] {
41
50
  --topbar-nav-link-background-color-hover: var(--t-fill-color-transparency-light-020);
51
+
42
52
  --topbar-nav-link-background-color-active: var(--t-fill-color-transparency-light-030);
43
53
  --topbar-nav-link-border-color-active: var(--t-fill-color-transparency-light-010);
54
+
44
55
  --content-wrap-border-color: hsla(0, 0%, 100%, 0.04);
45
56
  }
46
57
 
47
58
  @media (prefers-color-scheme: dark) {
48
- :root[data-color-mode=system] {
59
+ :root[data-color-mode="system"] {
49
60
  --topbar-nav-link-background-color-hover: var(--t-fill-color-transparency-light-020);
61
+
50
62
  --topbar-nav-link-background-color-active: var(--t-fill-color-transparency-light-030);
51
63
  --topbar-nav-link-border-color-active: var(--t-fill-color-transparency-light-010);
64
+
52
65
  --content-wrap-border-color: hsla(0, 0%, 100%, 0.04);
53
66
  }
54
67
  }
68
+
55
69
  /*
56
70
  Fix for Safari bug:
57
71
  On mobile breakpoints, when the app switcher or user profile menu are open,
@@ -59,7 +73,7 @@ prevent .top-wrap from covering them.
59
73
 
60
74
  Caused by products overriding .topbar-wrap’s z-index.
61
75
  */
62
- .page-wrap:has(div[class^=appmenu-layer][style*="display: block"]) .topbar-wrap {
76
+ .page-wrap:has(div[class^="appmenu-layer"][style*="display: block"]) .topbar-wrap {
63
77
  z-index: initial !important;
64
78
  }
65
79
 
@@ -72,61 +86,65 @@ Caused by products overriding .topbar-wrap’s z-index.
72
86
  display: none; /* Chrome, Safari, and Opera */
73
87
  }
74
88
 
75
- :root[data-app-context=native] {
89
+ /* The document (not .content-wrap) must own vertical scrolling for iOS scroll-to-top and pull-to-refresh to work. */
90
+ :root[data-app-context="native"] {
76
91
  --toolbar-navbar-height: 0;
77
92
  }
78
- :root[data-app-context=native],
79
- :root[data-app-context=native] body {
80
- height: auto;
81
- min-height: 100vh;
82
- }
83
- :root[data-app-context=native] .page-wrap,
84
- :root[data-app-context=native] .product-wrap {
85
- height: auto;
86
- overflow: visible;
87
- }
88
- :root[data-app-context=native] .top-wrap,
89
- :root[data-app-context=native] .page-wrap,
90
- :root[data-app-context=native] .product-wrap,
91
- :root[data-app-context=native] .toolbar-wrap {
92
- min-width: 0;
93
- }
93
+ [data-app-context="native"]:root,[data-app-context="native"]:root body {
94
+ height: auto;
95
+ min-height: 100vh;
96
+ }
97
+ [data-app-context="native"]:root .page-wrap,[data-app-context="native"]:root .product-wrap {
98
+ height: auto;
99
+ overflow: visible;
100
+ }
101
+ /* Without overflow: hidden these grid items lose their automatic minimum
102
+ size of 0, letting wide content (tables) blow the layout past the viewport. */
103
+ [data-app-context="native"]:root .top-wrap,[data-app-context="native"]:root .page-wrap,[data-app-context="native"]:root .product-wrap,[data-app-context="native"]:root .toolbar-wrap {
104
+ min-width: 0;
105
+ }
94
106
 
95
- :root[data-app-context=native] * {
107
+ /* Legacy touch scrolling is a no-op in Safari but still active inside embedded
108
+ WKWebViews, where it swallows vertical pans that should chain to the document. */
109
+ :root[data-app-context="native"] * {
96
110
  -webkit-overflow-scrolling: auto !important;
97
111
  }
98
112
 
99
- :root[data-app-context=native] .topbar-wrap {
113
+ :root[data-app-context="native"] .topbar-wrap {
100
114
  display: none;
101
115
  }
102
116
 
103
- :root[data-app-context=native] .toolbar-wrap {
117
+ :root[data-app-context="native"] .toolbar-wrap {
104
118
  overflow: hidden;
105
119
  }
106
120
 
107
- :root[data-app-context=native] .content-wrap {
121
+ :root[data-app-context="native"] .content-wrap {
108
122
  padding-bottom: var(--app-content-inset-bottom, unset);
109
123
  overflow: visible;
110
124
  }
111
125
 
112
- :root[data-app-context=native] .content-scroll footer[role=contentinfo] {
126
+ :root[data-app-context="native"] .content-scroll footer[role="contentinfo"] {
113
127
  display: none;
114
128
  }
115
129
 
116
130
  @media screen and (min-width: 600px) {
117
- :root[data-app-context=native] {
131
+ :root[data-app-context="native"] {
118
132
  --toolbar-width: 0px;
119
133
  --topbar-height: 0px;
120
134
  --toolbar-drawer-width: 48vw;
121
135
  }
122
- :root[data-app-context=native] .content-wrap {
136
+
137
+ :root[data-app-context="native"] .content-wrap {
123
138
  margin: 0 !important;
124
139
  border-radius: 0;
125
140
  }
126
- :root[data-app-context=native] .toolbar-wrap {
141
+
142
+ :root[data-app-context="native"] .toolbar-wrap {
127
143
  overflow: visible;
128
144
  }
129
145
  }
146
+
147
+
130
148
  .accessibility-toolbar-jgjUG {
131
149
  --topbar-accessibility-toolbar-opacity: 0;
132
150
  --topbar-accessibility-toolbar-translate-y: 4px;
@@ -299,7 +317,7 @@ Caused by products overriding .topbar-wrap’s z-index.
299
317
  font-size: inherit;
300
318
  }
301
319
 
302
- .button-XMbeQ {
320
+ .button-NPHAj {
303
321
  --tds-btn-color: var(--topbar-nav-link-font-color);
304
322
  --tds-btn-bg: transparent;
305
323
  --tds-btn-border-color: transparent;
@@ -315,30 +333,34 @@ Caused by products overriding .topbar-wrap’s z-index.
315
333
  --tds-btn-padding-x: var(--topbar-app-menu-padding-x);
316
334
  --tds-btn-padding-truncated-x: var(--topbar-app-menu-padding-x);
317
335
  --tds-btn-padding-y: var(--t-spacing-half);
336
+
318
337
  gap: 6px;
319
338
  font-family: inherit;
320
339
  margin-left: var(--topbar-app-menu-margin-left);
321
340
  }
322
- .button-XMbeQ:hover, .button-XMbeQ:focus-visible {
323
- --tds-btn-text-decoration: none;
324
- }
325
341
 
326
- .button-XMbeQ svg:first-child {
342
+ .button-NPHAj:hover,.button-NPHAj:focus-visible {
343
+ --tds-btn-text-decoration: none;
344
+ }
345
+
346
+ .button-NPHAj svg:first-child {
327
347
  width: 24px !important;
328
348
  height: 24px !important;
329
349
  flex-shrink: 0;
330
350
  }
331
351
 
332
- .label-884of {
352
+ .label-1EckO {
333
353
  display: none;
334
354
  }
355
+
335
356
  @media (min-width: 720px) {
336
- .label-884of {
357
+
358
+ .label-1EckO {
337
359
  display: inline;
338
- }
339
360
  }
361
+ }
340
362
 
341
- .chevron-RRg9k {
363
+ .chevron-6-PM4 {
342
364
  box-sizing: border-box;
343
365
  width: 16px !important;
344
366
  height: 16px !important;
@@ -347,20 +369,26 @@ Caused by products overriding .topbar-wrap’s z-index.
347
369
  border-radius: 100%;
348
370
  color: var(--t-text-color);
349
371
  flex-shrink: 0;
350
- transition: background-color 0.12s ease-in, transform 0.12s ease-in;
351
- }
352
- .chevron-RRg9k polygon {
353
- transform: translateY(0.5px);
354
- }
355
- .button-XMbeQ[aria-expanded=true] .chevron-RRg9k {
356
- background-color: var(--t-fill-color-transparency-light-050);
357
- transform: rotate(180deg);
372
+ transition:
373
+ background-color 0.12s ease-in,
374
+ transform 0.12s ease-in;
358
375
  }
359
- @media (hover: hover) {
360
- .button-XMbeQ:hover .chevron-RRg9k {
376
+
377
+ .chevron-6-PM4 polygon {
378
+ transform: translateY(0.5px);
379
+ }
380
+
381
+ .button-NPHAj[aria-expanded="true"] .chevron-6-PM4 {
361
382
  background-color: var(--t-fill-color-transparency-light-050);
383
+ transform: rotate(180deg);
362
384
  }
363
- }
385
+
386
+ @media (hover: hover) {
387
+ .button-NPHAj:hover .chevron-6-PM4 {
388
+ background-color: var(--t-fill-color-transparency-light-050);
389
+ }
390
+ }
391
+
364
392
  .nav-y-6ML {
365
393
  display: flex;
366
394
  flex-direction: column;
@@ -395,12 +423,16 @@ Caused by products overriding .topbar-wrap’s z-index.
395
423
  font-size: var(--t-font-size-sm);
396
424
  font-weight: var(--t-font-weight-semibold);
397
425
  text-decoration: none;
426
+ }
427
+
428
+ /* :link/:visited covers every state (incl. hover/focus) and outranks a
429
+ product's global `a:visited`, `a:hover` or `a:focus` color. */
430
+ .link-LMp2h:is(:link, :visited) {
398
431
  color: var(--t-text-color-headline);
399
432
  }
400
433
 
401
434
  .link-LMp2h:hover {
402
435
  background: var(--t-fill-color-button-neutral-ghost-hover);
403
- color: var(--t-text-color-headline);
404
436
  }
405
437
 
406
438
  .link-LMp2h:focus-visible {
@@ -427,11 +459,10 @@ Caused by products overriding .topbar-wrap’s z-index.
427
459
  }
428
460
 
429
461
  .accounts-link-4jwPW {
430
- color: var(--t-text-color-secondary);
431
462
  font-weight: var(--t-font-weight-normal);
432
463
  }
433
464
 
434
- .accounts-link-4jwPW:hover {
465
+ .accounts-link-4jwPW:is(:link, :visited) {
435
466
  color: var(--t-text-color-secondary);
436
467
  }
437
468
 
@@ -450,7 +481,7 @@ Caused by products overriding .topbar-wrap’s z-index.
450
481
  padding: 0;
451
482
  }
452
483
 
453
- .button-wsipc {
484
+ .button-8Zv7k {
454
485
  color: var(--t-text-color);
455
486
  padding-left: var(--t-spacing-1);
456
487
  padding-right: var(--t-spacing-1);
@@ -460,51 +491,55 @@ Caused by products overriding .topbar-wrap’s z-index.
460
491
  align-items: center;
461
492
  gap: var(--t-spacing-1);
462
493
  transition: var(--topbar-slight-transition-background);
494
+
463
495
  --_svg-display: none;
464
496
  }
465
- .button-wsipc svg[data-logo=mono-app-text],
466
- .button-wsipc svg[class^=chevron] {
467
- display: var(--_svg-display);
468
- }
497
+
498
+ .button-8Zv7k svg[data-logo="mono-app-text"],.button-8Zv7k svg[class^="chevron"] {
499
+ display: var(--_svg-display);
500
+ }
501
+
469
502
  @media (min-width: 720px) {
470
- .button-wsipc {
503
+
504
+ .button-8Zv7k {
471
505
  --_svg-display: block;
506
+
472
507
  padding-left: var(--t-spacing-2);
473
508
  padding-right: var(--t-spacing-2);
474
- }
475
- .button-wsipc svg[data-logo=color-app-icon] {
476
- width: 24px;
477
- height: 24px;
478
- }
479
509
  }
480
510
 
481
- .button-accounts-zQmBM {
511
+ .button-8Zv7k svg[data-logo="color-app-icon"] {
512
+ width: 24px;
513
+ height: 24px;
514
+ }
515
+ }
516
+
517
+ .button-accounts-oFhiA {
482
518
  color: var(--t-text-color);
483
519
  font-size: var(--t-font-size-sm);
484
520
  font-weight: var(--t-font-weight-medium);
485
521
  margin-left: var(--t-spacing-fourth);
486
522
  }
487
523
 
488
- .chevron-obyBF {
524
+ .chevron-tK3nU {
489
525
  border-radius: 100%;
490
526
  padding: var(--t-spacing-fourth);
491
527
  display: block;
492
528
  transition: var(--topbar-slight-transition-background);
493
529
  transition-property: background-color, transform;
494
530
  }
495
-
496
- .chevron-obyBF polygon {
531
+ .chevron-tK3nU polygon {
497
532
  transform: translateY(0.5px);
498
533
  }
499
534
 
500
- .button-wsipc:hover .chevron-obyBF,
501
- .button-wsipc.is-expanded-PoCQ9 .chevron-obyBF {
535
+ .button-8Zv7k:hover .chevron-tK3nU,
536
+ .button-8Zv7k.is-expanded-jmmlH .chevron-tK3nU {
502
537
  background-color: var(--t-fill-color-transparency-light-050);
503
538
  }
504
-
505
- .button-wsipc.is-expanded-PoCQ9 .chevron-obyBF {
539
+ .button-8Zv7k.is-expanded-jmmlH .chevron-tK3nU {
506
540
  transform: rotate(180deg);
507
541
  }
542
+
508
543
  .popup-root-SeL5u {
509
544
  display: flex;
510
545
  align-self: flex-end;
@@ -919,50 +954,61 @@ Caused by products overriding .topbar-wrap’s z-index.
919
954
  cursor: default;
920
955
  }
921
956
 
922
- .blank_state-wMOWN {
957
+ .blank_state-kX-H1 {
923
958
  max-width: 300px;
924
959
  margin-inline: auto;
925
960
  padding-block: var(--t-spacing-2);
926
961
  text-align: center;
927
962
  }
963
+
928
964
  @media screen and (min-width: 600px) {
929
- .blank_state-wMOWN {
965
+
966
+ .blank_state-kX-H1 {
930
967
  padding-block: var(--t-spacing-5);
931
- }
932
- }
933
- .blank_state-wMOWN h2 {
934
- color: var(--t-text-color-headline);
935
- font-size: var(--t-font-size-xl);
936
- font-weight: var(--t-font-weight-semibold);
937
- margin: 0;
938
- }
939
- .blank_state-wMOWN p {
940
- color: var(--t-text-color-secondary);
941
- font-size: var(--t-font-size-md);
942
- margin: 0;
943
968
  }
969
+ }
944
970
 
945
- .image-uy0Fd {
971
+ .blank_state-kX-H1 h2 {
972
+ color: var(--t-text-color-headline);
973
+ font-size: var(--t-font-size-xl);
974
+ font-weight: var(--t-font-weight-semibold);
975
+ margin: 0;
976
+ }
977
+
978
+ .blank_state-kX-H1 p {
979
+ color: var(--t-text-color-secondary);
980
+ font-size: var(--t-font-size-md);
981
+ margin: 0;
982
+ }
983
+
984
+ .image-R3D6r {
946
985
  color: var(--t-fill-color-status-info-ghost);
947
986
  }
948
- .image-uy0Fd svg {
949
- width: 30vw;
950
- max-width: 240px;
951
- height: auto;
952
- }
987
+
988
+ .image-R3D6r svg {
989
+ width: 30vw;
990
+ max-width: 240px;
991
+ height: auto;
992
+ }
993
+
953
994
  @media screen and (min-width: 600px) {
954
- .image-uy0Fd svg {
955
- width: 18vw;
995
+
996
+ .image-R3D6r svg {
997
+ width: 18vw;
956
998
  }
957
- }
958
- :root[data-color-mode="dark"] .image-uy0Fd {
959
- color: var(--t-fill-color-status-neutral-ghost);
960
- }
961
- @media (prefers-color-scheme: dark) {
962
- :root[data-color-mode="system"] .image-uy0Fd {
999
+ }
1000
+
1001
+ :root[data-color-mode="dark"] .image-R3D6r {
963
1002
  color: var(--t-fill-color-status-neutral-ghost);
964
1003
  }
965
- }
1004
+
1005
+ @media (prefers-color-scheme: dark) {
1006
+ :root[data-color-mode="system"] .image-R3D6r {
1007
+ color: var(--t-fill-color-status-neutral-ghost);
1008
+ }
1009
+ }
1010
+
1011
+
966
1012
  .result-Thq2C {
967
1013
  display: flex;
968
1014
  align-items: center;
@@ -1041,6 +1087,14 @@ Caused by products overriding .topbar-wrap’s z-index.
1041
1087
  filter: drop-shadow(0 1px 1px var(--t-fill-color-transparency-dark-static-010));
1042
1088
  }
1043
1089
 
1090
+ /* Inactive, archived, or past records, dimmed like the Planning Center app's
1091
+ search. The row itself stays solid so its highlight doesn't fade. */
1092
+ .subdued-YzRpa .image-KVDor,
1093
+ .subdued-YzRpa .title-KYUEn,
1094
+ .subdued-YzRpa .subtitle-R2haq {
1095
+ opacity: 0.5;
1096
+ }
1097
+
1044
1098
  /*
1045
1099
  * Too narrow for the title and meta to share a line, as on a phone, so they
1046
1100
  * stack beside a smaller image.
@@ -1325,9 +1379,14 @@ Caused by products overriding .topbar-wrap’s z-index.
1325
1379
  }
1326
1380
 
1327
1381
  .trigger-orgname-TDHCc {
1382
+ /* Shrinks with the trigger when the nav runs out of room; clip, unlike
1383
+ hidden, doesn't let it shrink on its own. */
1384
+ min-width: 0;
1328
1385
  max-width: 240px;
1329
1386
  margin-right: var(--t-spacing-fourth);
1330
- overflow: hidden;
1387
+ /* Clips sideways for the ellipsis, leaving room below for descenders,
1388
+ which Segoe UI on Windows draws past the line. */
1389
+ overflow-x: clip;
1331
1390
  text-overflow: ellipsis;
1332
1391
  white-space: nowrap;
1333
1392
  }
@@ -1372,6 +1431,7 @@ Caused by products overriding .topbar-wrap’s z-index.
1372
1431
  left: 0;
1373
1432
  right: 0;
1374
1433
  z-index: 100;
1434
+ -webkit-user-select: none;
1375
1435
  user-select: none;
1376
1436
  -webkit-tap-highlight-color: transparent;
1377
1437
  visibility: hidden;
@@ -1450,6 +1510,11 @@ Caused by products overriding .topbar-wrap’s z-index.
1450
1510
  font-size: var(--t-font-size-md);
1451
1511
  font-weight: var(--t-font-weight-semibold);
1452
1512
  text-decoration: none;
1513
+ }
1514
+
1515
+ /* :link/:visited covers every state (incl. hover/focus) and outranks a
1516
+ product's global `a:visited`, `a:hover` or `a:focus` color. */
1517
+ .link-Kf3qj:is(:link, :visited) {
1453
1518
  color: var(--t-text-color-headline);
1454
1519
  }
1455
1520
 
@@ -1473,10 +1538,13 @@ Caused by products overriding .topbar-wrap’s z-index.
1473
1538
  }
1474
1539
 
1475
1540
  .accounts-link-SeIbD {
1476
- color: var(--t-text-color-secondary);
1477
1541
  font-weight: var(--t-font-weight-normal);
1478
1542
  }
1479
1543
 
1544
+ .accounts-link-SeIbD:is(:link, :visited) {
1545
+ color: var(--t-text-color-secondary);
1546
+ }
1547
+
1480
1548
  .accounts-link-SeIbD svg {
1481
1549
  opacity: 0.5;
1482
1550
  }
@@ -1504,6 +1572,7 @@ Caused by products overriding .topbar-wrap’s z-index.
1504
1572
  left: 0;
1505
1573
  right: 0;
1506
1574
  z-index: 100;
1575
+ -webkit-user-select: none;
1507
1576
  user-select: none;
1508
1577
  -webkit-tap-highlight-color: transparent;
1509
1578
  }
@@ -1815,19 +1884,19 @@ Caused by products overriding .topbar-wrap’s z-index.
1815
1884
  transform: translateX(-1.5px) translateY(1.5px);
1816
1885
  }
1817
1886
 
1818
- .color-mode-switcher-JpczO {
1887
+ .color-mode-switcher-MlfLB {
1819
1888
  color: var(--t-text-color); /* Needed to override .tapestry-react-reset. This is the dumbest thing to have to do */
1820
1889
  border: 0;
1821
1890
  padding: 0;
1822
1891
  }
1823
1892
 
1824
- .color-mode-switcher-label-3jPM2 {
1893
+ .color-mode-switcher-label-FXK48 {
1825
1894
  font-weight: var(--t-font-weight-semibold);
1826
1895
  display: inline-block;
1827
1896
  margin-bottom: var(--t-spacing-1);
1828
1897
  }
1829
1898
 
1830
- .color-mode-switcher-label-beta-pwv5t {
1899
+ .color-mode-switcher-label-beta-JzaAB {
1831
1900
  font-size: var(--t-font-size-xs);
1832
1901
  font-weight: var(--t-font-weight-semibold);
1833
1902
  color: var(--t-text-color-status-neutral);
@@ -1839,7 +1908,7 @@ Caused by products overriding .topbar-wrap’s z-index.
1839
1908
  text-transform: uppercase;
1840
1909
  }
1841
1910
 
1842
- .color-mode-switcher-modes-u-bic {
1911
+ .color-mode-switcher-modes-Qwqpf {
1843
1912
  padding: var(--t-spacing-half);
1844
1913
  border: var(--t-border-width) solid var(--t-border-color);
1845
1914
  border-radius: var(--t-border-radius-md);
@@ -1847,53 +1916,62 @@ Caused by products overriding .topbar-wrap’s z-index.
1847
1916
  gap: var(--t-spacing-half);
1848
1917
  container-type: inline-size;
1849
1918
  }
1850
- .color-mode-switcher-modes-u-bic input[type=radio] {
1851
- opacity: 0;
1852
- position: absolute;
1853
- pointer-events: none;
1854
- }
1855
- .color-mode-switcher-modes-u-bic label {
1856
- border-radius: var(--t-border-radius-sm);
1857
- min-height: var(--t-element-size-xl);
1858
- display: inline-flex;
1859
- align-items: center;
1860
- justify-content: center;
1861
- flex-grow: 1;
1862
- user-select: none;
1863
- margin: 0;
1864
- position: relative;
1865
- }
1866
- .color-mode-switcher-modes-u-bic label:hover {
1867
- background: var(--t-fill-color-button-neutral-ghost-hover);
1868
- }
1869
- .color-mode-switcher-modes-u-bic label:has(input:focus-visible) {
1870
- outline: auto;
1871
- }
1872
- .color-mode-switcher-modes-u-bic svg {
1873
- display: none;
1874
- margin-right: var(--t-spacing-half);
1875
- }
1919
+
1920
+ .color-mode-switcher-modes-Qwqpf input[type="radio"] {
1921
+ opacity: 0;
1922
+ position: absolute;
1923
+ pointer-events: none;
1924
+ }
1925
+
1926
+ .color-mode-switcher-modes-Qwqpf label {
1927
+ border-radius: var(--t-border-radius-sm);
1928
+ min-height: var(--t-element-size-xl);
1929
+ display: inline-flex;
1930
+ align-items: center;
1931
+ justify-content: center;
1932
+ flex-grow: 1;
1933
+ -webkit-user-select: none;
1934
+ user-select: none;
1935
+ margin: 0;
1936
+ position: relative;
1937
+ }
1938
+
1939
+ .color-mode-switcher-modes-Qwqpf label:hover {
1940
+ background: var(--t-fill-color-button-neutral-ghost-hover);
1941
+ }
1942
+
1943
+ .color-mode-switcher-modes-Qwqpf label:has(input:focus-visible) {
1944
+ outline: auto;
1945
+ }
1946
+
1947
+ .color-mode-switcher-modes-Qwqpf svg {
1948
+ display: none;
1949
+ margin-right: var(--t-spacing-half);
1950
+ color: var(--t-icon-color-dim);
1951
+ }
1952
+
1876
1953
  @container (width >= 256px) {
1877
- .color-mode-switcher-modes-u-bic svg {
1878
- display: block;
1954
+
1955
+ .color-mode-switcher-modes-Qwqpf svg {
1956
+ display: block;
1879
1957
  }
1880
- }
1881
- .color-mode-switcher-modes-u-bic svg {
1882
- color: var(--t-icon-color-dim);
1883
- }
1884
- .color-mode-switcher-modes-u-bic label,
1885
- .color-mode-switcher-modes-u-bic svg {
1886
- transition-property: color, background-color;
1887
- transition-duration: 0.1s;
1888
- transition-timing-function: linear;
1889
- }
1890
- .color-mode-switcher-modes-u-bic label:has(input:checked) {
1891
- color: var(--t-text-color-status-info);
1892
- background-color: var(--t-fill-color-status-info-ghost);
1893
- }
1894
- .color-mode-switcher-modes-u-bic label:has(input:checked) svg {
1895
- color: var(--t-icon-color-status-info);
1896
- }
1958
+ }
1959
+
1960
+ .color-mode-switcher-modes-Qwqpf label,.color-mode-switcher-modes-Qwqpf svg {
1961
+ transition-property: color, background-color;
1962
+ transition-duration: 0.1s;
1963
+ transition-timing-function: linear;
1964
+ }
1965
+
1966
+ .color-mode-switcher-modes-Qwqpf label:has(input:checked) {
1967
+ color: var(--t-text-color-status-info);
1968
+ background-color: var(--t-fill-color-status-info-ghost);
1969
+ }
1970
+
1971
+ :is(.color-mode-switcher-modes-Qwqpf label:has(input:checked)) svg {
1972
+ color: var(--t-icon-color-status-info);
1973
+ }
1974
+
1897
1975
  .toolbar-KHJR5 {
1898
1976
  display: flex;
1899
1977
  width: 100vw;
@@ -1903,13 +1981,34 @@ Caused by products overriding .topbar-wrap’s z-index.
1903
1981
  gap: var(--t-spacing-1);
1904
1982
  }
1905
1983
 
1906
- .toolbar-button-Ye4h5 {
1984
+ /*
1985
+ * Drawer triggers are Tapestry IconButtons, so the look is set through its
1986
+ * --tds-btn-* variables. Scoping under .toolbar outranks Tapestry's kind
1987
+ * classes regardless of stylesheet order. The home button is a plain button
1988
+ * and reads the same variables directly.
1989
+ */
1990
+ .toolbar-KHJR5 .toolbar-button-Ye4h5 {
1991
+ --tds-btn-color: var(--t-fill-color-transparency-dark-060);
1992
+ --tds-btn-color-hover: var(--tds-btn-color);
1993
+ --tds-btn-color-active: var(--t-fill-color-transparency-dark-080);
1994
+ --tds-btn-bg: transparent;
1995
+ --tds-btn-bg-hover: var(--t-fill-color-button-interaction-ghost-hover);
1996
+ --tds-btn-bg-active: var(--t-fill-color-button-interaction-ghost-active);
1997
+ --tds-btn-border-color: transparent;
1998
+ --tds-btn-border-color-hover: transparent;
1999
+ --tds-btn-border-color-active: transparent;
2000
+ --tds-btn-border-radius: var(--t-border-radius-lg);
2001
+ --tds-btn-min-height: 0;
2002
+ --tds-btn-padding-y: 0;
2003
+ --tds-btn-padding-truncated-x: 0;
1907
2004
  font: inherit;
1908
- color: var(--t-fill-color-transparency-dark-060);
1909
- background-color: transparent;
1910
- border: var(--t-border-width) solid transparent;
1911
- border-radius: var(--t-border-radius-lg);
2005
+ color: var(--tds-btn-color);
2006
+ background-color: var(--tds-btn-bg);
2007
+ border: var(--t-border-width) solid var(--tds-btn-border-color);
2008
+ border-radius: var(--tds-btn-border-radius);
1912
2009
  flex-grow: 1;
2010
+ min-height: 0;
2011
+ padding: 0;
1913
2012
  transition: var(--topbar-slight-transition-background);
1914
2013
  cursor: pointer;
1915
2014
  appearance: none;
@@ -1917,16 +2016,31 @@ Caused by products overriding .topbar-wrap’s z-index.
1917
2016
  align-items: center;
1918
2017
  justify-content: center;
1919
2018
  }
1920
- .toolbar-button-Ye4h5:hover {
1921
- background-color: var(--t-fill-color-button-interaction-ghost-hover);
2019
+ /* Tapestry sizes button icons to the line height; keep the icons' own size. */
2020
+ .toolbar-KHJR5 .toolbar-button-Ye4h5 svg:not(.symbol-y4fS4) {
2021
+ width: auto;
2022
+ height: auto;
2023
+ }
2024
+ .toolbar-KHJR5 .toolbar-button-Ye4h5:hover {
2025
+ color: var(--tds-btn-color-hover);
2026
+ background-color: var(--tds-btn-bg-hover);
2027
+ border-color: var(--tds-btn-border-color-hover);
1922
2028
  }
1923
- .toolbar-button-Ye4h5:active,
1924
- .toolbar-button-Ye4h5.is-current-DZK47 {
1925
- color: var(--t-fill-color-transparency-dark-080);
1926
- background-color: var(--t-fill-color-button-interaction-ghost-active);
2029
+ .toolbar-KHJR5 .toolbar-button-Ye4h5:active,
2030
+ .toolbar-KHJR5 .toolbar-button-Ye4h5.is-current-DZK47 {
2031
+ color: var(--tds-btn-color-active);
2032
+ background-color: var(--tds-btn-bg-active);
2033
+ border-color: var(--tds-btn-border-color-active);
1927
2034
  }
1928
2035
 
1929
- .toolbar-button--avatar-5FUik {
2036
+ /* Restores Tapestry's reduced-motion rule, which .toolbar .toolbar-button outranks. */
2037
+ @media (prefers-reduced-motion: reduce) {
2038
+ .toolbar-KHJR5 .toolbar-button-Ye4h5 {
2039
+ transition: none;
2040
+ }
2041
+ }
2042
+
2043
+ .toolbar-KHJR5 .toolbar-button--avatar-5FUik {
1930
2044
  display: none;
1931
2045
  }
1932
2046
  .toolbar-button--avatar-5FUik > div {
@@ -1936,8 +2050,8 @@ Caused by products overriding .topbar-wrap’s z-index.
1936
2050
  aspect-ratio: 1 / 1;
1937
2051
  }
1938
2052
 
1939
- .toolbar-button--home-Pthd0 {
1940
- color: hsl(221, 93%, 55%);
2053
+ .toolbar-KHJR5 .toolbar-button--home-Pthd0 {
2054
+ --tds-btn-color: hsl(221, 93%, 55%);
1941
2055
  }
1942
2056
 
1943
2057
  @media (min-width: 600px) {
@@ -1948,24 +2062,18 @@ Caused by products overriding .topbar-wrap’s z-index.
1948
2062
  flex-direction: column;
1949
2063
  }
1950
2064
 
1951
- .toolbar-button-Ye4h5 {
2065
+ .toolbar-KHJR5 .toolbar-button-Ye4h5 {
2066
+ --tds-btn-bg-hover: var(--t-fill-color-transparency-light-040);
2067
+ --tds-btn-bg-active: var(--t-fill-color-transparency-light-060);
2068
+ --tds-btn-border-color-active: var(--t-fill-color-transparency-light-030);
1952
2069
  aspect-ratio: 1 / 1;
1953
2070
  }
1954
- .toolbar-button-Ye4h5:hover {
1955
- background-color: var(--t-fill-color-transparency-light-040);
1956
- }
1957
- .toolbar-button-Ye4h5:active,
1958
- .toolbar-button-Ye4h5.is-current-DZK47 {
1959
- color: var(--t-fill-color-transparency-dark-080);
1960
- background-color: var(--t-fill-color-transparency-light-060);
1961
- border-color: var(--t-fill-color-transparency-light-030);
1962
- }
1963
2071
 
1964
- .toolbar-button--avatar-5FUik {
2072
+ .toolbar-KHJR5 .toolbar-button--avatar-5FUik {
1965
2073
  display: inline-flex;
1966
2074
  }
1967
2075
 
1968
- .toolbar-button--home-Pthd0 {
2076
+ .toolbar-KHJR5 .toolbar-button--home-Pthd0 {
1969
2077
  display: none;
1970
2078
  }
1971
2079
  }