@webority/theme 0.161.0 → 0.164.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.
Files changed (62) hide show
  1. package/README.md +23 -23
  2. package/dist/purge-safelist.json +10 -11
  3. package/dist/webority-theme.css +3 -3
  4. package/package.json +8 -7
  5. package/scss/_bootstrap.generated.scss +1 -1
  6. package/scss/_components.scss +38 -34
  7. package/scss/_flags.scss +3 -3
  8. package/scss/_marketing.scss +6 -6
  9. package/scss/_tokens.generated.scss +1 -1
  10. package/scss/_variables.scss +19 -19
  11. package/scss/_wui-components.scss +2 -0
  12. package/scss/_wui-core.scss +2 -0
  13. package/scss/wui/_card.scss +20 -12
  14. package/scss/wui/_choice.scss +4 -4
  15. package/scss/wui/_command-palette.scss +7 -2
  16. package/scss/wui/_comment-thread.scss +3 -3
  17. package/scss/wui/_context-menu.scss +14 -10
  18. package/scss/wui/_controls.scss +80 -74
  19. package/scss/wui/_data.scss +19 -33
  20. package/scss/wui/_dialog-motion.scss +14 -19
  21. package/scss/wui/_disclosure.scss +3 -3
  22. package/scss/wui/_display.scss +56 -56
  23. package/scss/wui/_dock.scss +4 -4
  24. package/scss/wui/_drawer.scss +18 -15
  25. package/scss/wui/_empty-state.scss +4 -4
  26. package/scss/wui/_file-viewer.scss +14 -2
  27. package/scss/wui/_filter-popover.scss +1 -1
  28. package/scss/wui/_floating.scss +1 -1
  29. package/scss/wui/_flow.scss +35 -35
  30. package/scss/wui/_hover-card.scss +6 -5
  31. package/scss/wui/_inline-edit.scss +1 -1
  32. package/scss/wui/_kanban.scss +1 -1
  33. package/scss/wui/_lightbox.scss +20 -9
  34. package/scss/wui/_media.scss +1 -1
  35. package/scss/wui/_mention-input.scss +3 -3
  36. package/scss/wui/_menu-motion.scss +23 -23
  37. package/scss/wui/_modal-remote.scss +3 -3
  38. package/scss/wui/_native-overlay.scss +76 -0
  39. package/scss/wui/_navigation-menu.scss +13 -17
  40. package/scss/wui/_navigation.scss +25 -1
  41. package/scss/wui/_notification-center.scss +6 -9
  42. package/scss/wui/_overlay-reset.scss +15 -0
  43. package/scss/wui/_overlays.scss +139 -99
  44. package/scss/wui/_page-header-bar.scss +24 -0
  45. package/scss/wui/_scrollbar.scss +1 -1
  46. package/scss/wui/_sections.scss +3 -3
  47. package/scss/wui/_select.scss +16 -10
  48. package/scss/wui/_shell-parts.scss +2 -2
  49. package/scss/wui/_shell.scss +131 -28
  50. package/scss/wui/_shortcuts.scss +3 -15
  51. package/scss/wui/_sortable.scss +1 -1
  52. package/scss/wui/_tone-pill.scss +2 -2
  53. package/scss/wui/_toolbar.scss +3 -3
  54. package/scss/wui/_truncate.scss +2 -2
  55. package/scss/wui/_typography.scss +8 -8
  56. package/scss/wui/_utilities.scss +4 -5
  57. package/scss/wui/_whats-new.scss +6 -7
  58. package/scss/wui/_workspace.scss +34 -9
  59. package/scss/wui/tour/_base.scss +11 -1
  60. package/scss/wui/tour/_end.scss +6 -0
  61. package/scss/wui/tour/_media.scss +1 -1
  62. package/scss/wui/tour/_placement.scss +6 -0
@@ -58,7 +58,7 @@
58
58
  .wui-select-caret path {
59
59
  stroke-width: 2px;
60
60
  }
61
- .wui-select-control.open .wui-select-caret {
61
+ .wui-select:has(> .wui-select-menu:popover-open) .wui-select-caret {
62
62
  transform: rotate(180deg);
63
63
  }
64
64
  .wui-select-placeholder {
@@ -171,6 +171,8 @@
171
171
  right: auto;
172
172
  top: auto;
173
173
  left: auto;
174
+ bottom: auto;
175
+ margin: 0;
174
176
  }
175
177
  // Search box matches the search bar: rounded field, leading icon turns
176
178
  // primary.
@@ -222,8 +224,9 @@
222
224
  .wui-select-input::placeholder {
223
225
  color: var(--color-text-subtle);
224
226
  }
227
+ // --wui-select-options-max-height sets the height of the scrolling option list.
225
228
  .wui-select-options {
226
- max-height: 300px;
229
+ max-height: var(--wui-select-options-max-height, 300px);
227
230
  overflow-y: auto;
228
231
  padding: var(--wui-space-xs);
229
232
  display: flex;
@@ -250,13 +253,15 @@
250
253
  color var(--wui-duration-fast) var(--wui-ease-ui);
251
254
  }
252
255
  // The row under the pointer or the keyboard takes the muted fill, with no outline.
256
+ // --wui-select-option-hover-bg overrides that fill.
253
257
  .wui-select-option:hover,
254
258
  .wui-select-option.is-active {
255
- background: var(--color-bg-muted);
259
+ background: var(--wui-select-option-hover-bg, var(--color-bg-muted));
256
260
  }
261
+ // --wui-select-option-selected-bg overrides the selected row's fill.
257
262
  .wui-select-option.selected,
258
263
  .wui-select-option[aria-selected='true'] {
259
- background: var(--color-primary-soft);
264
+ background: var(--wui-select-option-selected-bg, var(--color-primary-soft));
260
265
  color: var(--color-primary-text);
261
266
  font-weight: var(--wui-fw-semibold);
262
267
  }
@@ -311,6 +316,7 @@ wui-select[mode="multiple"][collapse-chips] .wui-select-chips {
311
316
  .wui-select-multi .wui-select-icon {
312
317
  align-self: center;
313
318
  }
319
+ // --wui-select-option-selected-mark colours the selected option's tick.
314
320
  .wui-select-check {
315
321
  display: inline-flex;
316
322
  align-items: center;
@@ -318,7 +324,7 @@ wui-select[mode="multiple"][collapse-chips] .wui-select-chips {
318
324
  width: 16px;
319
325
  height: 16px;
320
326
  flex: none;
321
- color: var(--color-primary-text);
327
+ color: var(--wui-select-option-selected-mark, var(--color-primary-text));
322
328
  opacity: 0;
323
329
  }
324
330
  .wui-select-option[aria-selected='true'] .wui-select-check {
@@ -419,19 +425,19 @@ wui-select[mode="multiple"][collapse-chips] .wui-select-chips {
419
425
  // focused/open, or once a value is chosen (the label span drops
420
426
  // .wui-select-placeholder the moment something is selected).
421
427
  .field-float:has(.wui-select-control:focus) .float-label,
422
- .field-float:has(.wui-select-control.open) .float-label,
428
+ .field-float:has(.wui-select-menu:popover-open) .float-label,
423
429
  .field-float:has([data-label]:not(.wui-select-placeholder)) .float-label {
424
430
  top: 0;
425
431
  transform: translateY(-50%) scale(0.86);
426
432
  }
427
- .field-float:has(.wui-select-control.open) .float-label {
433
+ .field-float:has(.wui-select-menu:popover-open) .float-label {
428
434
  color: var(--color-primary-text);
429
435
  // The open trigger keeps the field fill, so the label mask takes that same fill.
430
436
  background: var(--color-field-bg);
431
437
  }
432
438
  // Above placement for AppSelect: the same triggers, resting above the box as the input's does.
433
439
  .field-float.wui-float-above:has(.wui-select-control:focus) .float-label,
434
- .field-float.wui-float-above:has(.wui-select-control.open) .float-label,
440
+ .field-float.wui-float-above:has(.wui-select-menu:popover-open) .float-label,
435
441
  .field-float.wui-float-above:has([data-label]:not(.wui-select-placeholder)) .float-label {
436
442
  top: 0;
437
443
  left: 0;
@@ -439,10 +445,10 @@ wui-select[mode="multiple"][collapse-chips] .wui-select-chips {
439
445
  transform: scale(0.86);
440
446
  font-weight: var(--wui-fw-medium);
441
447
  }
442
- .field-float.wui-float-above:has([data-label]:not(.wui-select-placeholder)):not(:has(.wui-select-control.open)) .float-label {
448
+ .field-float.wui-float-above:has([data-label]:not(.wui-select-placeholder)):not(:has(.wui-select-menu:popover-open)) .float-label {
443
449
  color: var(--color-text);
444
450
  }
445
- .field-float.wui-float-above:has(.wui-select-control.open) .float-label {
451
+ .field-float.wui-float-above:has(.wui-select-menu:popover-open) .float-label {
446
452
  background: transparent;
447
453
  }
448
454
 
@@ -148,8 +148,8 @@
148
148
  }
149
149
 
150
150
  // ── Topbar menus: shared card ───────────────────────────────────────────────────────────────
151
- // Both menus open with Bootstrap's static display (Razor data-bs-display="static"; React sets
152
- // data-bs-popper="static" while open), so placement is plain CSS: under the trigger, end-aligned.
151
+ // Both menus are placed by their dropdown element, so the placement here is plain CSS: under the
152
+ // trigger, end-aligned.
153
153
  .wui-usermenu-menu,
154
154
  .wui-bell-menu {
155
155
  top: calc(100% + 8px);
@@ -209,7 +209,8 @@
209
209
  display: grid;
210
210
  grid-template-columns: var(--app-sidebar-w) 1fr;
211
211
  min-height: 100vh;
212
- background: var(--color-bg);
212
+ // --wui-shell-bg sets the shell's own background.
213
+ background: var(--wui-shell-bg, var(--color-bg));
213
214
  transition: grid-template-columns var(--wui-duration-default) var(--wui-ease-ui);
214
215
  }
215
216
  .app-shell.collapsed {
@@ -310,14 +311,14 @@
310
311
  .app-sidebar-brand .wui-brand-dark {
311
312
  display: none;
312
313
  }
313
- :root[data-theme="dark"] .app-sidebar-brand.wui-brand-themed .wui-brand-light {
314
+ :root[data-bs-theme="dark"] .app-sidebar-brand.wui-brand-themed .wui-brand-light {
314
315
  display: none;
315
316
  }
316
317
  // `:where` keeps this as light as the collapsed rule that hides the logo, so that later rule still wins.
317
- :root[data-theme="dark"] .app-sidebar-brand .wui-brand-dark:where(.wui-brand-logo) {
318
+ :root[data-bs-theme="dark"] .app-sidebar-brand .wui-brand-dark:where(.wui-brand-logo) {
318
319
  display: block;
319
320
  }
320
- :root[data-theme="dark"] .app-sidebar-brand.wui-brand-mark-only .wui-brand-mark.wui-brand-dark {
321
+ :root[data-bs-theme="dark"] .app-sidebar-brand.wui-brand-mark-only .wui-brand-mark.wui-brand-dark {
321
322
  display: block;
322
323
  }
323
324
  // The brand link wraps the logo, mark and brand text as one row, laid out as the brand row itself is.
@@ -437,11 +438,12 @@
437
438
  margin-top: 16px;
438
439
  }
439
440
  // Groups after the first are separated by a rule; the first sits directly under
440
- // the brand row and needs none.
441
+ // the brand row and needs none. --wui-nav-group-gap sets the space above the rule and
442
+ // --wui-nav-group-rule its colour.
441
443
  .app-nav-group + .app-nav-group {
442
- margin-top: 20px;
444
+ margin-top: var(--wui-nav-group-gap, 20px);
443
445
  padding-top: var(--wui-space-md);
444
- border-top: 1px solid var(--color-border);
446
+ border-top: 1px solid var(--wui-nav-group-rule, var(--color-border));
445
447
  }
446
448
  // A node the author places right after a group's links (`groups[].after` /
447
449
  // `<app-nav-group-after>`). Like sidebarStart it has no place on the 88px rail.
@@ -568,7 +570,8 @@
568
570
  min-width: 0;
569
571
  overflow: hidden;
570
572
  text-overflow: ellipsis;
571
- white-space: nowrap;
573
+ // --wui-nav-text-wrap sets how a top-level label wraps (normal lets a long label take a second line).
574
+ white-space: var(--wui-nav-text-wrap, nowrap);
572
575
  }
573
576
  .app-nav-badge {
574
577
  flex: none;
@@ -631,10 +634,10 @@
631
634
  object-fit: cover;
632
635
  object-position: left center;
633
636
  }
634
- :root[data-theme="dark"] .app-shell.collapsed .app-sidebar-brand.wui-brand-themed .wui-brand-mark.wui-brand-light {
637
+ :root[data-bs-theme="dark"] .app-shell.collapsed .app-sidebar-brand.wui-brand-themed .wui-brand-mark.wui-brand-light {
635
638
  display: none;
636
639
  }
637
- :root[data-theme="dark"] .app-shell.collapsed .app-sidebar-brand .wui-brand-mark.wui-brand-dark {
640
+ :root[data-bs-theme="dark"] .app-shell.collapsed .app-sidebar-brand .wui-brand-mark.wui-brand-dark {
638
641
  display: block;
639
642
  }
640
643
  // The label leaves the VISUAL flow but must stay in the accessibility tree — an
@@ -753,9 +756,10 @@
753
756
  // group's toggle is a sub-item too (`.app-nav-item.app-nav-subitem` outranks the group button's
754
757
  // `font: inherit`), and each level below the first adds a 16px step through --wui-nav-depth
755
758
  // (set on the row from depth 2), so a nested group's children sit visibly under it.
759
+ // --wui-nav-sub-indent sets the first-level inset of a child row (default 46px).
756
760
  .app-nav-item.app-nav-subitem {
757
761
  min-height: 38px;
758
- padding-left: calc(46px + (var(--wui-nav-depth, 1) - 1) * 16px);
762
+ padding-left: calc(var(--wui-nav-sub-indent, 46px) + (var(--wui-nav-depth, 1) - 1) * 16px);
759
763
  font-size: 13px;
760
764
  }
761
765
  @for $n from 2 through 6 {
@@ -793,7 +797,7 @@
793
797
  text-decoration: none;
794
798
  }
795
799
  .app-nav-item.wui-nav-split.app-nav-subitem .wui-nav-split-link {
796
- padding-left: calc(46px + (var(--wui-nav-depth, 1) - 1) * 16px);
800
+ padding-left: calc(var(--wui-nav-sub-indent, 46px) + (var(--wui-nav-depth, 1) - 1) * 16px);
797
801
  }
798
802
  .wui-nav-split-toggle {
799
803
  border: 0;
@@ -945,15 +949,19 @@
945
949
  min-height: var(--wui-shell-topbar-height);
946
950
  padding: 12px 28px;
947
951
  background: var(--color-surface);
948
- // Reserved rather than absent, so a consumer colouring the divider on
949
- // `.app-topbar.scrolled` doesn't shift the layout by a pixel. The library
950
- // adds that class on scroll but deliberately paints nothing: how heavy the
951
- // topbar reads once the page moves is a per-surface art-direction call.
952
+ // Reserved rather than absent, so colouring the divider once scrolled
953
+ // (`.app-topbar.wui-scrolled`) doesn't shift the layout by a pixel.
952
954
  border-bottom: 1px solid transparent;
953
955
  transition:
954
956
  border-color var(--wui-duration-default) var(--wui-ease-ui),
955
957
  box-shadow var(--wui-duration-default) var(--wui-ease-ui);
956
958
  }
959
+ // --wui-shell-topbar-scrolled-border-color and --wui-shell-topbar-scrolled-shadow paint the divider
960
+ // and shadow once the page has scrolled; unset, the scrolled topbar looks as it does at rest.
961
+ .app-topbar.wui-scrolled {
962
+ border-bottom-color: var(--wui-shell-topbar-scrolled-border-color, transparent);
963
+ box-shadow: var(--wui-shell-topbar-scrolled-shadow, none);
964
+ }
957
965
  .app-topbar[data-tone="primary"] {
958
966
  background: var(--color-primary);
959
967
  color: var(--color-on-primary);
@@ -1139,23 +1147,118 @@
1139
1147
  height: 44px;
1140
1148
  }
1141
1149
  }
1142
- // The scrim exists only while the drawer is open, and only below lg — it is
1143
- // rendered unconditionally and made visible here so there is no JS breakpoint check.
1144
- .app-scrim {
1145
- display: none;
1146
- }
1150
+ // Below lg the sidebar is a popover (set by the script on the phone tier): the browser draws its
1151
+ // backdrop and closes it on Escape and an outside press. The UA stylesheet hides a closed popover,
1152
+ // but the sidebar's own display rule overrides that, so a closed one is hidden here.
1147
1153
  @include media-breakpoint-down(lg) {
1148
- .app-shell.app-shell.mobile-open .app-scrim {
1149
- position: fixed;
1150
- inset: 0;
1151
- z-index: var(--wui-z-shell-scrim);
1152
- display: block;
1153
- border: 0;
1154
- padding: 0;
1154
+ .app-shell.app-shell .app-sidebar[popover] {
1155
+ margin: 0;
1156
+ inset-inline: 0 auto;
1157
+ }
1158
+ .app-shell.app-shell .app-sidebar[popover]:not(:popover-open) {
1159
+ display: none;
1160
+ }
1161
+ .app-shell.app-shell .app-sidebar::backdrop {
1155
1162
  background: var(--color-scrim);
1156
1163
  }
1157
1164
  }
1158
1165
 
1166
+ // AppShell tone="brand": the sidebar and its parts take the --color-shell-* tokens.
1167
+ .app-shell[data-shell-tone="brand"] {
1168
+ --wui-nav-group-rule: var(--color-shell-rule);
1169
+
1170
+ .app-sidebar {
1171
+ background: var(--color-shell-bg);
1172
+ color: var(--color-shell-text);
1173
+ }
1174
+ .app-sidebar-brand {
1175
+ color: var(--color-shell-text-strong);
1176
+ }
1177
+ .app-nav-group-label,
1178
+ .wui-nav-group-toggle,
1179
+ .wui-nav-header {
1180
+ color: var(--color-shell-text-muted);
1181
+ }
1182
+ .app-nav-item {
1183
+ color: var(--color-shell-text);
1184
+ }
1185
+ .app-nav-icon,
1186
+ .app-nav-caret,
1187
+ .app-nav-trailing {
1188
+ color: var(--color-shell-text-muted);
1189
+ }
1190
+ .app-nav-item:hover,
1191
+ .wui-nav-split-toggle:hover {
1192
+ background: var(--color-shell-hover);
1193
+ color: var(--color-shell-text-strong);
1194
+ }
1195
+ .app-nav-item:hover :is(.app-nav-icon, .app-nav-caret) {
1196
+ color: var(--color-shell-text);
1197
+ }
1198
+ .app-nav-item.has-children[aria-expanded="true"] {
1199
+ color: var(--color-shell-text-strong);
1200
+ }
1201
+ .app-nav-item.has-children[aria-expanded="true"] .app-nav-icon {
1202
+ color: var(--color-shell-text);
1203
+ }
1204
+ .app-nav-item.active {
1205
+ background: var(--color-shell-active);
1206
+ color: var(--color-shell-text-strong);
1207
+ }
1208
+ .app-nav-item.active :is(.app-nav-icon, .app-nav-trailing) {
1209
+ color: var(--color-shell-accent);
1210
+ }
1211
+ // A group that holds the open page reads as open: a faint band with an accent icon.
1212
+ .app-nav-item.has-children.active {
1213
+ background: var(--color-shell-fill-subtle);
1214
+ }
1215
+ .app-nav-item.has-children.active:hover {
1216
+ background: var(--color-shell-hover);
1217
+ }
1218
+ // The group's pages hang off a guide line, drawn only while the group is open (a closed group would show a stub).
1219
+ // --wui-nav-guide-color colours it.
1220
+ .app-nav-sub-inner {
1221
+ margin-inline-start: var(--wui-space-md);
1222
+ border-inline-start: 1px solid transparent;
1223
+ }
1224
+ .app-nav-sub.expanded > .app-nav-sub-inner {
1225
+ border-inline-start-color: var(--wui-nav-guide-color, color-mix(in srgb, var(--color-shell-accent) 40%, transparent));
1226
+ }
1227
+ // The line already sets the pages in, so the row starts a small gap after it and takes a smaller inset
1228
+ // (--wui-nav-sub-indent, the md space step here); the depth step is kept.
1229
+ .app-nav-sub-inner > .app-nav-item.app-nav-subitem,
1230
+ .app-nav-sub-inner > .app-nav-item.wui-nav-split.app-nav-subitem .wui-nav-split-link {
1231
+ padding-left: calc(var(--wui-nav-sub-indent, var(--wui-space-md)) + (var(--wui-nav-depth, 1) - 1) * var(--wui-space-lg));
1232
+ }
1233
+ .app-nav-sub-inner > .app-nav-subitem {
1234
+ margin-inline-start: var(--wui-space-sm);
1235
+ }
1236
+ .app-nav-item.app-nav-subitem.active {
1237
+ background: var(--color-shell-bg-raised);
1238
+ }
1239
+ .app-nav-item:focus-visible,
1240
+ .wui-nav-split-link:focus-visible,
1241
+ .wui-nav-split-toggle:focus-visible,
1242
+ .wui-nav-group-toggle:focus-visible {
1243
+ outline-color: var(--color-shell-accent);
1244
+ }
1245
+ // A toned badge keeps its status colours.
1246
+ .app-nav-badge:not([class*="tone-"]) {
1247
+ background: var(--color-shell-fill);
1248
+ color: var(--color-shell-text);
1249
+ }
1250
+ .app-sidebar-toggle {
1251
+ color: var(--color-shell-text-muted);
1252
+ }
1253
+ .app-sidebar-toggle::before {
1254
+ border-top-color: var(--color-shell-rule);
1255
+ }
1256
+ .app-sidebar-toggle:hover {
1257
+ background: var(--color-shell-hover);
1258
+ color: var(--color-shell-text-strong);
1259
+ }
1260
+ }
1261
+
1159
1262
  @media (prefers-reduced-motion: reduce) {
1160
1263
  .app-shell,
1161
1264
  .app-sidebar,
@@ -83,11 +83,10 @@
83
83
  outline-offset: var(--wui-focus-ring-offset);
84
84
  }
85
85
 
86
+ // An auto popover: placed by the element, drawn in the top layer, closed by the browser.
86
87
  .wui-shortcut-sheet {
87
- position: absolute;
88
- right: 0;
89
- bottom: calc(100% + 8px);
90
- z-index: var(--wui-z-dropdown, 1000);
88
+ inset: auto;
89
+ margin: 0;
91
90
  width: min(320px, calc(100vw - 32px));
92
91
  border: 1px solid var(--color-border);
93
92
  border-radius: var(--wui-radius-md);
@@ -98,17 +97,6 @@
98
97
  font-size: 14px;
99
98
  text-align: start;
100
99
  }
101
- .wui-shortcut-sheet[hidden] {
102
- display: none;
103
- }
104
- .wui-shortcut-sheet.wui-shortcut-sheet-below {
105
- top: calc(100% + 8px);
106
- bottom: auto;
107
- }
108
- .wui-shortcut-sheet.wui-shortcut-sheet-start {
109
- left: 0;
110
- right: auto;
111
- }
112
100
  .wui-shortcut-sheet-head {
113
101
  display: flex;
114
102
  align-items: center;
@@ -5,7 +5,7 @@
5
5
  // while the person drags and shows a `.wui-sortable-ghost` copy under the pointer; everything
6
6
  // visual lives here.
7
7
  //
8
- // Part of the wui-components layer — see _wui-components.scss for load order.
8
+ // Part of the wui-components layer. See _wui-components.scss for load order.
9
9
 
10
10
  wui-sortable {
11
11
  display: flex;
@@ -3,13 +3,13 @@
3
3
  // ── Shared tone-pill color mixin ──
4
4
  // Consolidates the tone→color mapping used by .badge, .status-label, and .chip:
5
5
  // background: var(--color-{tone}-soft)
6
- // color: var(--color-{tone}-text-on-soft) (override via $text — see below)
6
+ // color: var(--color-{tone}-text-on-soft) (override via $text, see below)
7
7
  // border-color: transparent
8
8
  //
9
9
  // $text exists because `primary` has no on-tint token: --color-{status}-text-on-soft is the
10
10
  // on-tint hue (equal to -text in light, lifted in dark), but --color-on-primary
11
11
  // is the text-on-SOLID-primary color (near-black in dark mode) and fails AA on the
12
- // soft tint — primary pills pass var(--color-primary-text) instead.
12
+ // soft tint. Primary pills pass var(--color-primary-text) instead.
13
13
  //
14
14
  // Component-specific overrides (e.g. .badge-primary's colored border) are applied
15
15
  // after the mixin call.
@@ -1,11 +1,11 @@
1
1
  @use "../config" as *;
2
2
 
3
3
  // ── Toolbar ──
4
- // AppToolbar / <app-toolbar> — a Figma-style tool strip: a pill of icon tools where
4
+ // AppToolbar / <app-toolbar> (a Figma-style tool strip): a pill of icon tools where
5
5
  // the active tool expands to reveal its label. Radio-backed (no JS needed on Razor);
6
6
  // the expand/collapse is pure CSS off :checked.
7
7
  //
8
- // Part of the wui-components layer — see _wui-components.scss for load order.
8
+ // Part of the wui-components layer: see _wui-components.scss for load order.
9
9
 
10
10
  .toolbar {
11
11
  display: inline-flex;
@@ -54,7 +54,7 @@
54
54
  outline-offset: var(--wui-focus-ring-offset);
55
55
  }
56
56
 
57
- // Visually hidden but focusable/announceable — same trick as .segmented-input.
57
+ // Visually hidden but focusable/announceable; same trick as .segmented-input.
58
58
  .toolbar-input {
59
59
  position: absolute;
60
60
  width: 1px;
@@ -2,8 +2,8 @@
2
2
 
3
3
  // ── Truncate ──
4
4
  // AppTruncate / <app-truncate> (a <wui-truncate> element): text cut with an ellipsis by width or by
5
- // line count. The element sets data-wui-tip (drawn by the CSS tooltip in _overlays.scss) on itself,
6
- // not on the clipped span, because the span's overflow:hidden would clip the bubble.
5
+ // line count. The element sets data-wui-tooltip on itself, not on the clipped span, so the JS tooltip can
6
+ // anchor to the full element.
7
7
  //
8
8
  // Part of the wui-components layer, see _wui-components.scss for load order.
9
9
 
@@ -4,7 +4,7 @@
4
4
  // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
5
5
  // Text-scale utilities.
6
6
  //
7
- // Part of the wui-components layer — see _wui-components.scss for the whole
7
+ // Part of the wui-components layer. See _wui-components.scss for the whole
8
8
  // picture and the load order. Order within the layer is LOAD-BEARING: these
9
9
  // partials are a split of one stylesheet, not independent modules, so a rule
10
10
  // here may be overridden by a later partial. Never reorder the imports.
@@ -184,7 +184,7 @@
184
184
  color: var(--color-primary-text);
185
185
  }
186
186
 
187
- /* Tones — tinted surface + on-tint text; icon/remove inherit the tone colour. */
187
+ /* Tones: tinted surface + on-tint text; icon/remove inherit the tone colour. */
188
188
  .chip.primary {
189
189
  @include wui-tone-pill-colors(primary, var(--color-primary-text));
190
190
  }
@@ -223,12 +223,12 @@
223
223
 
224
224
  // ── Variants ──────────────────────────────────────────────────────────────
225
225
  // The base `.chip` above is the SOFT variant (tinted surface, on-tint text, no
226
- // visible border) — the default, unchanged. `.chip-outline` and
226
+ // visible border). The default, unchanged. `.chip-outline` and
227
227
  // `.chip-solid` layer on top and MUST stay after the tone block so a
228
228
  // `.chip-solid.primary` (0,2,0) wins over `.chip.primary` (0,2,0) on source
229
229
  // order. The disabled block below still wins because it comes after both.
230
230
 
231
- // Outline — the soft tint kept, but the transparent border swapped for the
231
+ // Outline: the soft tint kept, but the transparent border swapped for the
232
232
  // tone's own colour (a crisper, bounded chip). Only the border changes for a
233
233
  // toned chip; neutral drops the muted fill for a clean outlined pill.
234
234
  .chip-outline {
@@ -254,11 +254,11 @@
254
254
  border-color: var(--color-border-strong);
255
255
  }
256
256
 
257
- // Solid — a filled pill carrying white text (near-black on the light-primary in
257
+ // Solid: a filled pill carrying white text (near-black on the light-primary in
258
258
  // dark mode, via --color-on-primary). The fills are the deep, white-safe
259
259
  // tokens: --wui-*-strong / --color-primary are AA with white; info & warning
260
260
  // have no ready deep token, so they are mixed toward black until white clears
261
- // AA (warning-with-white only passes on a dark gold — the vibrant --wui-warning
261
+ // AA (warning-with-white only passes on a dark gold; the vibrant --wui-warning
262
262
  // cannot). These raw --wui-* deep values are mode-independent, so no dark block
263
263
  // is needed; neutral flips automatically because text↔surface swap by theme.
264
264
  .chip-solid {
@@ -312,13 +312,13 @@
312
312
  color: currentColor;
313
313
  }
314
314
 
315
- // Disabled — deliberately NOT opacity, and deliberately after the tones.
315
+ // Disabled: deliberately NOT opacity, and deliberately after the tones.
316
316
  //
317
317
  // `opacity: .55` fades the whole chip, label included, so a faded label can fall under the
318
318
  // 4.5:1 AA floor. Explicit muted tokens read as the same state and keep the label legible.
319
319
  //
320
320
  // It sits after the tone block on purpose. `.chip.is-disabled` and `.chip.primary` have
321
- // equal specificity, so source order decides — declared before them, a disabled primary
321
+ // equal specificity, so source order decides: declared before them, a disabled primary
322
322
  // chip kept its primary colours. That is very likely why opacity was reached for in the
323
323
  // first place: it composes over any tone without having to win the cascade.
324
324
  .chip.is-disabled {
@@ -401,8 +401,7 @@
401
401
  aspect-ratio: 1;
402
402
  }
403
403
 
404
- // Touch screens: grow the hit area, not the disc, so row density is unchanged. On ::before, never ::after,
405
- // which a [data-wui-tip] tooltip owns (same as .u-action in _data.scss).
404
+ // Touch screens: grow the hit area, not the disc, so row density is unchanged. On ::before, never ::after.
406
405
  @media (pointer: coarse) {
407
406
  .btn-icon {
408
407
  position: relative;
@@ -632,8 +631,8 @@
632
631
  // `.fade` opacity transition carry the fade in and out. Both surfaces render `.popover.pw-popover`
633
632
  // (React via react-bootstrap's Popover, Razor via Bootstrap's popover), so this makes the two
634
633
  // identical. Higher specificity than `.popover.show` so it wins regardless of partial load order.
635
- .popover.pw-popover.show,
636
- .popover.infotip-popover.show {
634
+ .popover.pw-popover:popover-open,
635
+ .popover.infotip-popover:popover-open {
637
636
  animation: none;
638
637
  scale: none;
639
638
  translate: none;
@@ -851,7 +850,7 @@
851
850
  transform: translateX(100%);
852
851
  }
853
852
  }
854
- :root[data-theme="dark"] .skeleton::after {
853
+ :root[data-bs-theme="dark"] .skeleton::after {
855
854
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
856
855
  }
857
856
  @media (prefers-reduced-motion: reduce) {
@@ -3,9 +3,10 @@
3
3
  // ── What's new ──
4
4
  // AppWhatsNew / <app-whats-new> (a <wui-whats-new> element): a gift icon with an unread dot and a
5
5
  // panel of dated release notes under it. The element shows the dot through [data-wui-unread] on the
6
- // host, the panel through [data-open] (never .show or hidden, which a React re-render could
7
- // reset), marks each unread entry with [data-wui-unread] and places the panel with position: fixed,
8
- // so it escapes any clipping ancestor. Without script the panel stays closed.
6
+ // host and marks each unread entry with [data-wui-unread]. The panel is a popover: the browser hides
7
+ // it until it is shown, and the open animation keys on :popover-open (never .show or hidden, which a
8
+ // React re-render could reset). The panel places itself with position: fixed, so it escapes any
9
+ // clipping ancestor. Without script the panel stays closed.
9
10
  //
10
11
  // Part of the wui-components layer, see _wui-components.scss for load order.
11
12
 
@@ -66,7 +67,6 @@
66
67
  }
67
68
 
68
69
  .wui-whats-new-panel {
69
- display: none;
70
70
  position: fixed;
71
71
  z-index: var(--wui-z-popover);
72
72
  box-sizing: border-box;
@@ -83,8 +83,7 @@
83
83
  outline: none;
84
84
  transform-origin: top right;
85
85
  }
86
- .wui-whats-new[data-open] .wui-whats-new-panel {
87
- display: block;
86
+ .wui-whats-new-panel:popover-open {
88
87
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
89
88
  }
90
89
  .wui-whats-new-panel.drop-up {
@@ -160,7 +159,7 @@
160
159
  }
161
160
 
162
161
  @media (prefers-reduced-motion: reduce) {
163
- .wui-whats-new[data-open] .wui-whats-new-panel {
162
+ .wui-whats-new-panel:popover-open {
164
163
  animation: none;
165
164
  }
166
165
  }