@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
@@ -12,6 +12,8 @@
12
12
  --wui-drawer-width: 480px;
13
13
  --wui-drawer-max-width: 92vw;
14
14
  --wui-drawer-duration: 280ms;
15
+ // The element rule in _native-overlay gives wui-* hosts display: contents; the drawer host needs a box for its fixed inset.
16
+ display: block;
15
17
  position: fixed;
16
18
  inset: 0;
17
19
  // Below the modal layer: a dialog opened from inside a drawer must draw above it.
@@ -33,18 +35,18 @@
33
35
  --wui-drawer-width: 720px;
34
36
  }
35
37
 
36
- .wui-drawer-backdrop {
37
- position: absolute;
38
- inset: 0;
38
+ dialog.wui-drawer-panel::backdrop {
39
39
  background: color-mix(in srgb, var(--color-scrim) 85%, transparent);
40
- opacity: 0;
41
- }
42
- .wui-drawer[open] .wui-drawer-backdrop {
43
- opacity: 1;
44
40
  }
45
41
 
46
42
  .wui-drawer-panel {
47
43
  position: absolute;
44
+ inset: auto;
45
+ margin: 0;
46
+ padding: 0;
47
+ border: 0;
48
+ max-width: none;
49
+ max-height: none;
48
50
  display: flex;
49
51
  flex-direction: column;
50
52
  background: var(--color-surface);
@@ -145,8 +147,8 @@
145
147
  left: 0;
146
148
  transform: translateX(-100%);
147
149
  }
148
- &[open] .wui-drawer-panel,
149
- &[open][side="start"] .wui-drawer-panel {
150
+ .wui-drawer-panel[open]:not([data-wui-closing]),
151
+ &[side="start"] .wui-drawer-panel[open]:not([data-wui-closing]) {
150
152
  transform: none;
151
153
  }
152
154
  }
@@ -179,7 +181,7 @@
179
181
  corner-shape: squircle;
180
182
  transform: translateY(100%);
181
183
  }
182
- &[open] .wui-drawer-panel {
184
+ .wui-drawer-panel[open]:not([data-wui-closing]) {
183
185
  transform: translateY(calc((var(--wui-drawer-max, 90) - var(--wui-drawer-snap, 50)) * 1vh + var(--wui-drawer-drag, 0px)));
184
186
  transform: translateY(calc((var(--wui-drawer-max, 90) - var(--wui-drawer-snap, 50)) * 1dvh + var(--wui-drawer-drag, 0px)));
185
187
  }
@@ -230,10 +232,6 @@
230
232
  }
231
233
  }
232
234
 
233
- body.wui-drawer-locked {
234
- overflow: hidden;
235
- }
236
-
237
235
  @media (prefers-reduced-motion: no-preference) {
238
236
  .wui-drawer {
239
237
  transition: visibility 0s var(--wui-ease-linear) var(--wui-drawer-duration);
@@ -241,9 +239,14 @@ body.wui-drawer-locked {
241
239
  .wui-drawer[open] {
242
240
  transition-delay: 0s;
243
241
  }
244
- .wui-drawer-backdrop {
242
+ dialog.wui-drawer-panel[open]::backdrop {
245
243
  transition: opacity var(--wui-drawer-duration) var(--wui-ease-ui);
246
244
  }
245
+ @starting-style {
246
+ dialog.wui-drawer-panel[open]::backdrop {
247
+ opacity: 0;
248
+ }
249
+ }
247
250
  .wui-drawer-panel {
248
251
  transition: transform var(--wui-drawer-duration) var(--wui-ease-ui);
249
252
  }
@@ -81,14 +81,14 @@
81
81
  text-align: center;
82
82
  color: var(--color-text-muted);
83
83
  }
84
- // The empty state owns its own padding and is not a row you can act on — no
84
+ // The empty state owns its own padding and is not a row you can act on; no
85
85
  // cell padding, no border, and no hover fill from .table / .table-ledger.
86
86
  .table td.wui-table-empty:has(> .wui-empty-state-table),
87
87
  .table td.wui-table-empty:has(> .tbl-empty-plain) {
88
88
  padding: 0;
89
89
  border-bottom: 0;
90
90
  }
91
- // A plain-string empty (no table-look wrapper) — carries the padding the cell
91
+ // A plain-string empty (no table-look wrapper): carries the padding the cell
92
92
  // needs.
93
93
  .tbl-empty-plain {
94
94
  padding: var(--wui-space-2xl) var(--wui-space-xl);
@@ -101,7 +101,7 @@
101
101
  }
102
102
  // The React AppDataTable renders its empty state as a SIBLING of the table, INSIDE `.table-wrap`
103
103
  // (the horizontal scroller), in this `.tbl-empty-block`. Two things fall out of that placement:
104
- // 1. the horizontal scrollbar sits at the BOTTOM of the wrap — below this message — instead of
104
+ // 1. the horizontal scrollbar sits at the BOTTOM of the wrap, below this message, instead of
105
105
  // being wedged between the header band and the message (which is what an outside-the-wrap
106
106
  // block produced), and
107
107
  // 2. `position: sticky; left: 0` + `width: 100%` pins the message to the wrap's VISIBLE width and
@@ -109,7 +109,7 @@
109
109
  // overflow container resolves to the container's CONTENT (visible) width, not its scroll width,
110
110
  // so the message never grows the scroll region and never slides off on a narrow screen.
111
111
  //
112
- // This deliberately does NOT use `container-type` + `100cqw` — the query container collapses
112
+ // This deliberately does NOT use `container-type` + `100cqw`; the query container collapses
113
113
  // `.table-wrap` to a sliver when it is a flex/grid item (see the `.table-wrap` note below). Sticky
114
114
  // sidesteps that entirely. (The `.wui-table-empty` cell rules above remain for Razor, where the
115
115
  // empty state is author-placed inside a `<td colSpan>`.)
@@ -1,4 +1,10 @@
1
1
  @use "../config" as *;
2
+ @use "overlay-reset" as *;
3
+
4
+ // The page menu is a popover: clear the browser's popover box, as wui/_native-overlay.scss does for core panels.
5
+ :where([popover].wui-file-viewer-menu) {
6
+ @include wui-native-overlay-reset;
7
+ }
2
8
 
3
9
  // ── File viewer ──
4
10
  // AppFileViewer / <app-file-viewer> / <wui-file-viewer>: a file shown inside the page, with a
@@ -136,10 +142,16 @@ wui-file-viewer:fullscreen {
136
142
  outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
137
143
  outline-offset: 1px;
138
144
  }
139
- // The zoom menu, placed against its button by the element (position: fixed).
145
+ // The zoom menu is a popover, placed against its button by the element (position: fixed). Shown
146
+ // while open, so it needs no Bootstrap .show class.
140
147
  .wui-file-viewer-menu {
141
- z-index: var(--wui-z-dropdown);
148
+ inset: auto;
149
+ margin: 0;
142
150
  min-width: 150px;
151
+ display: none;
152
+ &:popover-open {
153
+ display: block;
154
+ }
143
155
  }
144
156
  .wui-file-viewer-menu .dropdown-item {
145
157
  display: flex;
@@ -34,7 +34,7 @@
34
34
  z-index: var(--wui-z-popover);
35
35
  }
36
36
 
37
- .wui-filter-popover-panel[hidden] {
37
+ .wui-filter-popover-panel:not(:popover-open) {
38
38
  display: none;
39
39
  }
40
40
 
@@ -5,7 +5,7 @@
5
5
  // button) portal into, so they stack with a gap and never overlap or need a hand-set offset. React's
6
6
  // useFloatingStack creates it; the items inside are not fixed themselves.
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-floating-stack {
11
11
  position: fixed;
@@ -2,18 +2,18 @@
2
2
 
3
3
  // Wizard stepper, pricing card, form repeater.
4
4
  //
5
- // Part of the wui-components layer — see _wui-components.scss for the whole
5
+ // Part of the wui-components layer. See _wui-components.scss for the whole
6
6
  // picture and the load order. Order within the layer is LOAD-BEARING: these
7
7
  // partials are a split of one stylesheet, not independent modules, so a rule
8
8
  // here may be overridden by a later partial. Never reorder the imports.
9
9
 
10
10
  // Wizard stepper. Three variants of one component:
11
- // .stepper — compact: numbered circle above a label, line behind.
12
- // .stepper-journey — wide: 40px dot beside a label + title, for a page masthead.
13
- // .stepper-icons — large connected icon badges with a "STEP n" eyebrow.
14
- // .wui-step-tiles — a row of tiles: rounded icon square, label and a state line, chevrons between.
11
+ // .stepper compact: numbered circle above a label, line behind.
12
+ // .stepper-journey wide, 40px dot beside a label + title, for a page masthead.
13
+ // .stepper-icons large connected icon badges with a "STEP n" eyebrow.
14
+ // .wui-step-tiles a row of tiles (rounded icon square, label and a state line, chevrons between).
15
15
  //
16
- // Fully themable through a small set of `--wui-step-*` custom properties — set them on
16
+ // Fully themable through a small set of `--wui-step-*` custom properties. Set them on
17
17
  // the stepper (or the wizard host, or any ancestor: they inherit), or flip the whole
18
18
  // accent with a `.wui-step-tone-*` class. Every colour/size below reads a var with the
19
19
  // historical value as the fallback, so an UNSET wizard looks exactly as before while a
@@ -32,7 +32,7 @@
32
32
  // --wui-step-number-font the step number in a badge (default 12px; journey 13px, icons 22px)
33
33
  // --wui-step-label-font the step label (default 13px; journey 16px, icons 15px)
34
34
  // The `.wui-step-size-sm` / `.wui-step-size-lg` classes (end of this block) set these together.
35
- // Every variant defaults to the brand primary — active, done and rail share one accent
35
+ // Every variant defaults to the brand primary; active, done and rail share one accent
36
36
  // (no multi-colour). Colour variety is opt-in: a `.wui-step-tone-*` class or a var override.
37
37
  // ============================================================================
38
38
  .stepper {
@@ -49,7 +49,7 @@
49
49
  // class placed on the stepper element itself overrides it. The wizard is excluded because
50
50
  // its tone class rides on the wizard HOST (an ancestor of the generated header): declaring
51
51
  // the vars on the header would block that inherited override, so the wizard leans on the
52
- // var fallbacks instead — which now also default to primary. :where() keeps this at ZERO
52
+ // var fallbacks instead, which now also default to primary. :where() keeps this at ZERO
53
53
  // specificity, so a .wui-step-tone-* class or an inline --wui-step-* override still wins.
54
54
  :where(.stepper:not(.wizard-stepper)) {
55
55
  --wui-step-accent: var(--color-primary-text);
@@ -67,7 +67,7 @@
67
67
  gap: 10px;
68
68
  text-align: center;
69
69
  }
70
- // The connector belongs to the step on its RIGHT, drawn leftwards — that way the
70
+ // The connector belongs to the step on its RIGHT, drawn leftwards; that way the
71
71
  // first step has none and no :last-child exception is needed.
72
72
  .step + .step::before {
73
73
  content: "";
@@ -132,7 +132,7 @@
132
132
  .step.done .step-label {
133
133
  color: var(--color-text);
134
134
  }
135
- // An interactive step — an <a> deep-linking back to a stage, or a <button> in a
135
+ // An interactive step: an <a> deep-linking back to a stage, or a <button> in a
136
136
  // JS-driven wizard. A button needs its chrome stripped so it reads as a step.
137
137
  button.step {
138
138
  border: none;
@@ -184,7 +184,7 @@ button.step.done:focus-visible .step-circle {
184
184
  0 0 0 4px var(--wui-step-done-soft, var(--wui-step-soft, var(--color-primary-soft))),
185
185
  0 0 0 6px var(--wui-step-done-accent, var(--wui-step-accent, var(--color-primary-text)));
186
186
  }
187
- // A step that failed its stage — a red circle with an alert, so an invalid step
187
+ // A step that failed its stage: a red circle with an alert, so an invalid step
188
188
  // reads as wrong at a glance rather than merely "not done".
189
189
  .step.error .step-circle {
190
190
  border-color: var(--color-danger);
@@ -194,7 +194,7 @@ button.step.done:focus-visible .step-circle {
194
194
  .step.error .step-label {
195
195
  color: var(--color-danger-text);
196
196
  }
197
- // A secondary line under the label — a short "what this step is for". Muted and
197
+ // A secondary line under the label: a short "what this step is for". Muted and
198
198
  // narrow so it never competes with the label it explains.
199
199
  .step-desc {
200
200
  max-width: 130px;
@@ -254,7 +254,7 @@ button.step.done:focus-visible .step-circle {
254
254
  }
255
255
  // A flex column, not a bare wrapper: the index and the label are inline spans, so
256
256
  // without this they sit on one line ("STEP 1Add site") and the label's margin-top
257
- // — a no-op on an inline element — cannot separate them.
257
+ // a no-op on an inline element, cannot separate them.
258
258
  .stepper-journey .step-text {
259
259
  display: flex;
260
260
  flex-direction: column;
@@ -293,7 +293,7 @@ button.step.done:focus-visible .step-circle {
293
293
  text-overflow: ellipsis;
294
294
  color: var(--color-text);
295
295
  }
296
- // In the journey bar the description sits inside the text column, under the label —
296
+ // In the journey bar the description sits inside the text column, under the label,
297
297
  // wider and left-aligned to match, not the centred compact treatment.
298
298
  .stepper-journey .step-desc {
299
299
  max-width: none;
@@ -332,7 +332,7 @@ button.step.done:focus-visible .step-circle {
332
332
  display: none;
333
333
  }
334
334
  }
335
- // Vertical orientation. The steps run down a side rail instead of across — for a
335
+ // Vertical orientation. The steps run down a side rail instead of across: for a
336
336
  // narrow column, a drawer, or a settings wizard.
337
337
  // ----------------------------------------------------------------------------
338
338
  .stepper-vertical {
@@ -351,7 +351,7 @@ button.step.done:focus-visible .step-circle {
351
351
  display: grid;
352
352
  grid-template-columns: var(--wui-step-size, 28px) 1fr;
353
353
  column-gap: 12px;
354
- // No gap between the label and its description — they read as one block; the
354
+ // No gap between the label and its description. They read as one block; the
355
355
  // base .step gap of 10px is for the horizontal circle→label spacing.
356
356
  row-gap: 0;
357
357
  align-items: start;
@@ -415,10 +415,10 @@ button.step.done:focus-visible .step-circle {
415
415
  display: none;
416
416
  }
417
417
 
418
- // .stepper-icons — large icon badges joined by a rail, with a "STEP n" eyebrow above
418
+ // .stepper-icons: large icon badges joined by a rail, with a "STEP n" eyebrow above
419
419
  // each title. Done gets a soft-accent tint + filled connector; active is a solid-accent
420
- // badge; pending is a muted badge — all one accent (brand primary by default). Built for
421
- // icon-per-step flows — each step sets `icon` (a step with no icon falls back to its number).
420
+ // badge; pending is a muted badge: all one accent (brand primary by default). Built for
421
+ // icon-per-step flows: each step sets `icon` (a step with no icon falls back to its number).
422
422
  // ----------------------------------------------------------------------------
423
423
  .stepper-icons {
424
424
  align-items: flex-start;
@@ -443,7 +443,7 @@ button.step.done:focus-visible .step-circle {
443
443
  color var(--wui-duration-default) var(--wui-ease-ui),
444
444
  transform var(--wui-duration-default) var(--wui-ease-ui);
445
445
  }
446
- // Like every variant, the icons stepper defaults to the brand primary — a solid-primary
446
+ // Like every variant, the icons stepper defaults to the brand primary: a solid-primary
447
447
  // active badge, a soft-primary done badge, a primary rail. Every colour routes through the
448
448
  // shared --wui-step-* vars, so a `.wui-step-tone-*` class or an override recolours it.
449
449
  .stepper-icons .step.active .step-circle {
@@ -517,7 +517,7 @@ button.step.done:focus-visible .step-circle {
517
517
  transform: scale(1.04);
518
518
  }
519
519
  // Below md the six badges no longer fit across, so the icons stepper stacks into a
520
- // vertical list — the shared .stepper-vertical rules take over from here.
520
+ // vertical list; the shared .stepper-vertical rules take over from here.
521
521
  @include media-breakpoint-down(md) {
522
522
  .stepper-icons.stepper-icons {
523
523
  flex-direction: column;
@@ -539,7 +539,7 @@ button.step.done:focus-visible .step-circle {
539
539
  }
540
540
  }
541
541
 
542
- // .wui-step-tiles — each step is a list item holding a rounded icon square with the label and a
542
+ // .wui-step-tiles: each step is a list item holding a rounded icon square with the label and a
543
543
  // state line (Done, Current, To do) beside it; chevrons join the tiles. Like every variant it is one
544
544
  // brand-primary accent: the current tile is solid accent and done tiles the soft tint, so a tone
545
545
  // class recolours the current one and a done-tone class the finished ones.
@@ -742,7 +742,7 @@ button.wui-step-tile-body:hover .step-label {
742
742
  }
743
743
  }
744
744
 
745
- // Tone presets — flip the whole accent (active fill, done rail, ring, journey/icons
745
+ // Tone presets: flip the whole accent (active fill, done rail, ring, journey/icons
746
746
  // done tint) to a semantic ramp in one class. Because custom properties inherit, the
747
747
  // class can sit on the stepper itself OR on an ancestor (the wizard host), and an inline
748
748
  // `style="--wui-step-accent: …"` on a closer element still wins over it. Placing the
@@ -781,7 +781,7 @@ button.wui-step-tile-body:hover .step-label {
781
781
  --wui-step-soft-fg: var(--color-info-text);
782
782
  }
783
783
 
784
- // Done-tone presets — recolour COMPLETED steps only (their badge, "STEP n" eyebrow and the
784
+ // Done-tone presets: recolour COMPLETED steps only (their badge, "STEP n" eyebrow and the
785
785
  // filled rail after them), leaving the active step on the accent above. Same ramps and the
786
786
  // same placement rules as the tone presets: on the stepper or any ancestor (the wizard host).
787
787
  // Error and skipped steps keep their own look.
@@ -861,7 +861,7 @@ button.wui-step-tile-body:hover .step-label {
861
861
  // Pricing card. A tier's name, price, pitch, feature list and CTA.
862
862
  //
863
863
  // The "Most popular" flag is a real element, not a `content:` string on
864
- // ::before — a label welded into CSS cannot be reworded, translated, or read by
864
+ // ::before: a label welded into CSS cannot be reworded, translated, or read by
865
865
  // a screen reader.
866
866
  // ============================================================================
867
867
  .plan-grid {
@@ -1001,7 +1001,7 @@ button.wui-step-tile-body:hover .step-label {
1001
1001
  }
1002
1002
 
1003
1003
  // ============================================================================
1004
- // Form repeater — a list of rows the user can add to and remove from
1004
+ // Form repeater: a list of rows the user can add to and remove from
1005
1005
  // (contacts, line items, zones).
1006
1006
  // ============================================================================
1007
1007
  .repeater {
@@ -1014,7 +1014,7 @@ button.wui-step-tile-body:hover .step-label {
1014
1014
  display: flex;
1015
1015
  // When present, the row-label line is the full-width FIRST line (a header band) and the
1016
1016
  // fields wrap to the line beneath it. The markup renders that band only when the row is
1017
- // labelled or removable (see .repeater-row-label) — a removable row's empty band reserves
1017
+ // labelled or removable (see .repeater-row-label). A removable row's empty band reserves
1018
1018
  // the gap that keeps the fields clear of the absolute remove control. A row that is neither
1019
1019
  // has no band and stays compact; there is no overlap to avoid, since the control is absent too.
1020
1020
  flex-wrap: wrap;
@@ -1068,7 +1068,7 @@ button.wui-step-tile-body:hover .step-label {
1068
1068
  }
1069
1069
  .repeater-remove {
1070
1070
  // Pulled out of the row's flex flow and parked in the top-right corner of the header
1071
- // band, so it never steals horizontal room from the fields — the last field can run to
1071
+ // band, so it never steals horizontal room from the fields. The last field can run to
1072
1072
  // the row's right edge instead of stopping short. Sits a little below the top edge so it
1073
1073
  // reads as part of the band rather than pinned to the corner.
1074
1074
  position: absolute;
@@ -1078,7 +1078,7 @@ button.wui-step-tile-body:hover .step-label {
1078
1078
  .repeater-add {
1079
1079
  align-self: flex-start;
1080
1080
  }
1081
- // Shown in place of the rows when there are none — a repeater with no rows and no
1081
+ // Shown in place of the rows when there are none: a repeater with no rows and no
1082
1082
  // message looks broken rather than empty.
1083
1083
  .repeater-empty {
1084
1084
  padding: 18px;
@@ -1091,7 +1091,7 @@ button.wui-step-tile-body:hover .step-label {
1091
1091
  }
1092
1092
 
1093
1093
  // ============================================================================
1094
- // Form layout helpers — section, row (grid), actions footer.
1094
+ // Form layout helpers: section, row (grid), actions footer.
1095
1095
  //
1096
1096
  // AppFormSection wraps related fields with a title + description intro.
1097
1097
  // AppFormRow arranges fields in a responsive grid (1/2/3 columns).
@@ -1120,13 +1120,13 @@ button.wui-step-tile-body:hover .step-label {
1120
1120
  .form-section + .form-actions {
1121
1121
  margin-top: 32px;
1122
1122
  }
1123
- // Ranks below the card title (16px) a section usually sits in, and above the 14px field labels.
1123
+ // Ranks below the card title (16px) a section usually sits in, and above the 14px field labels. A product sets its colour with --wui-form-section-title-color.
1124
1124
  .form-section-title {
1125
1125
  margin: 0;
1126
1126
  font-size: var(--wui-form-title-size, 15px);
1127
1127
  font-weight: 600;
1128
1128
  line-height: 1.3;
1129
- color: var(--color-text);
1129
+ color: var(--wui-form-section-title-color, var(--color-text));
1130
1130
  }
1131
1131
  .form-section-title.wui-form-title-display {
1132
1132
  font-family: var(--wui-font-display, inherit);
@@ -1263,7 +1263,7 @@ button.wui-step-tile-body:hover .step-label {
1263
1263
  }
1264
1264
 
1265
1265
  // ============================================================================
1266
- // AppWizard (<wui-wizard>) — stepper header + one visible step panel + a sticky
1266
+ // AppWizard (<wui-wizard>): stepper header + one visible step panel + a sticky
1267
1267
  // Back/Skip/Next/Finish footer. Composes .stepper and .form-actions above.
1268
1268
  // ============================================================================
1269
1269
  wui-wizard {
@@ -1376,7 +1376,7 @@ wui-wizard-step[hidden] {
1376
1376
  // swap in; content taller than this simply grows the panel.
1377
1377
  min-height: 96px;
1378
1378
  // A rounded squircle card around the step content. The surface (border + fill +
1379
- // padding) is what makes the radius visible — a radius on a border/background-less
1379
+ // padding) is what makes the radius visible. A radius on a border/background-less
1380
1380
  // box shows nothing.
1381
1381
  padding: 20px 24px;
1382
1382
  border: 1px solid var(--color-border);
@@ -1385,7 +1385,7 @@ wui-wizard-step[hidden] {
1385
1385
  background: var(--color-surface);
1386
1386
  }
1387
1387
  .wizard-footer {
1388
- // The Back/Skip/Next/Finish bar sits at the END of the wizard content — NOT
1388
+ // The Back/Skip/Next/Finish bar sits at the END of the wizard content, NOT
1389
1389
  // viewport-pinned. A transparent sticky bar (the old behaviour) pinned to the
1390
1390
  // viewport bottom collided with a page/app footer below the wizard, burying the
1391
1391
  // buttons behind it. Inline keeps them in the flow, always clear of a page footer.
@@ -2,8 +2,8 @@
2
2
 
3
3
  // ── Hover card ──
4
4
  // AppHoverCard / <app-hover-card> (a <wui-hover-card> element): a small preview card beside a name or
5
- // record link. The element shows the panel with [data-open] (never a class or the hidden attribute,
6
- // which a React re-render could reset) and places it with position: fixed, so it escapes any
5
+ // record link. The panel is a manual popover, so the open state is :popover-open (the browser owns it;
6
+ // a React re-render cannot reset it) and it is placed with position: fixed, so it escapes any
7
7
  // clipping ancestor. Every colour is a theme token.
8
8
  //
9
9
  // Part of the wui-components layer, see _wui-components.scss for load order.
@@ -19,8 +19,9 @@ wui-hover-card {
19
19
 
20
20
  .wui-hover-card-panel {
21
21
  position: fixed;
22
+ // The popover UA style would stretch a fixed box between top and bottom; the element sets top and left.
23
+ inset: auto;
22
24
  z-index: var(--wui-z-popover);
23
- display: none;
24
25
  width: 20rem;
25
26
  max-width: calc(100vw - 16px);
26
27
  max-height: calc(100vh - 8px);
@@ -33,7 +34,7 @@ wui-hover-card {
33
34
  box-shadow: var(--wui-shadow-popover);
34
35
  font-size: 13px;
35
36
 
36
- &[data-open] {
37
+ &:popover-open {
37
38
  display: block;
38
39
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
39
40
  }
@@ -51,7 +52,7 @@ wui-hover-card {
51
52
  }
52
53
 
53
54
  @media (prefers-reduced-motion: reduce) {
54
- .wui-hover-card-panel[data-open] {
55
+ .wui-hover-card-panel:popover-open {
55
56
  animation: none;
56
57
  }
57
58
  }
@@ -6,7 +6,7 @@
6
6
  // control. The element sets the states on the host: [data-wui-editing] and
7
7
  // [data-wui-state="saving" | "saved" | "error"].
8
8
  //
9
- // Part of the wui-components layer — see _wui-components.scss for load order.
9
+ // Part of the wui-components layer: see _wui-components.scss for load order.
10
10
 
11
11
  .wui-inline-edit {
12
12
  display: inline-flex;
@@ -347,7 +347,7 @@
347
347
  .wui-kanban-card[data-wui-lifted] {
348
348
  box-shadow: var(--wui-shadow-popover);
349
349
  outline: 2px solid var(--color-primary);
350
- outline-offset: 2px;
350
+ outline-offset: var(--wui-focus-ring-offset);
351
351
  }
352
352
  // Saving: the card cannot move again until the server answers.
353
353
  .wui-kanban-card[aria-busy="true"] {
@@ -54,20 +54,31 @@
54
54
  margin-top: var(--wui-space-sm);
55
55
  }
56
56
 
57
- // Above a modal (so a gallery in a dialog opens over it), below menus and tooltips.
58
- .wui-lightbox-overlay {
59
- position: fixed;
60
- inset: 0;
61
- z-index: var(--wui-z-tour);
57
+ // A modal <dialog>: the top layer stacks it over a dialog it was opened from. The dialog box is the
58
+ // full screen; the dim is its ::backdrop.
59
+ dialog.wui-lightbox-overlay {
60
+ width: 100%;
61
+ height: 100%;
62
+ max-width: none;
63
+ max-height: none;
64
+ margin: 0;
65
+ padding: 0;
66
+ border: 0;
67
+ background: transparent;
68
+ color: var(--color-on-scrim);
62
69
  display: flex;
63
70
  flex-direction: column;
64
- background: var(--color-scrim-strong);
65
- color: var(--color-on-scrim);
66
- backdrop-filter: blur(12px);
67
- -webkit-backdrop-filter: blur(12px);
71
+ &:not([open]) {
72
+ display: none;
73
+ }
68
74
  &:focus {
69
75
  outline: none;
70
76
  }
77
+ &::backdrop {
78
+ background: var(--color-scrim-strong);
79
+ backdrop-filter: blur(12px);
80
+ -webkit-backdrop-filter: blur(12px);
81
+ }
71
82
  }
72
83
  @media (prefers-reduced-motion: no-preference) {
73
84
  .wui-lightbox-overlay {
@@ -1054,7 +1054,7 @@
1054
1054
  }
1055
1055
  // The label has no room in the ring, so surface it as a hover/focus tooltip below the ring
1056
1056
  // (reusing the AppTooltip surface look). Text comes from data-overlay-label on the ring — a
1057
- // distinct attribute from data-wui-tip so the global tooltip rule never fires this on a large
1057
+ // distinct attribute from data-wui-tooltip so the trigger rule never styles this on a large
1058
1058
  // ring. Only rendered inside this container query, so md/lg (label visible) never get it.
1059
1059
  .wui-image-picker-ring[data-overlay-label]::after {
1060
1060
  content: attr(data-overlay-label);
@@ -19,7 +19,6 @@
19
19
  .wui-mention-menu {
20
20
  position: fixed;
21
21
  z-index: var(--wui-z-menu);
22
- display: flex;
23
22
  flex-direction: column;
24
23
  gap: 2px;
25
24
  min-width: 240px;
@@ -33,8 +32,9 @@
33
32
  corner-shape: squircle;
34
33
  box-shadow: var(--wui-shadow-popover);
35
34
  }
36
- .wui-mention-menu[hidden] {
37
- display: none;
35
+ // An author display would override the closed popover's display: none, so it applies only when open.
36
+ .wui-mention-menu:popover-open {
37
+ display: flex;
38
38
  }
39
39
 
40
40
  .wui-mention-option {
@@ -20,7 +20,7 @@
20
20
  // `transform` — Popper and anchorOverlay position these panels via transform/fixed
21
21
  // coordinates, and the standalone properties compose with that instead of clobbering.
22
22
  // - Panels shown by removing `hidden` (the wui-* set) replay the animation on every
23
- // reveal for free; Bootstrap surfaces key off `.show`. Close stays instant: the wui
23
+ // reveal for free; the popover surfaces key off `:popover-open`. Close stays instant: the wui
24
24
  // elements hide with `hidden` in the same tick, and delaying that for an exit
25
25
  // animation would change observable close timing everywhere.
26
26
  //
@@ -93,19 +93,19 @@
93
93
  }
94
94
  }
95
95
 
96
- .dropdown-menu.show,
97
- .popover.show,
98
- .wui-select-menu:not([hidden]),
99
- .country-dropdown-menu:not([hidden]),
100
- .datepicker-pop:not([hidden]),
101
- .daterange-pop:not([hidden]),
102
- .timepicker-pop:not([hidden]) {
96
+ .dropdown-menu:popover-open,
97
+ .popover:popover-open,
98
+ .wui-select-menu:popover-open,
99
+ .country-dropdown-menu:popover-open,
100
+ .datepicker-pop:popover-open,
101
+ .daterange-pop:popover-open,
102
+ .timepicker-pop:popover-open {
103
103
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
104
104
  transform-origin: top;
105
105
  }
106
106
 
107
107
  // End-aligned dropdowns zoom from the corner they attach to.
108
- .dropdown-menu-end.show {
108
+ .dropdown-menu-end:popover-open {
109
109
  transform-origin: top right;
110
110
  }
111
111
 
@@ -115,41 +115,41 @@
115
115
  .datepicker-pop.drop-up,
116
116
  .daterange-pop.drop-up,
117
117
  .timepicker-pop.drop-up,
118
- .dropdown-menu.show[data-popper-placement^="top"],
119
- .dropup .dropdown-menu.show {
118
+ .dropdown-menu:popover-open[data-side="top"],
119
+ .dropup .dropdown-menu:popover-open {
120
120
  --wui-menu-drop: 6px;
121
121
 
122
122
  transform-origin: bottom;
123
123
  }
124
124
 
125
- // Popover follows its Popper side; the drop always comes from the trigger's direction.
126
- .popover.show[data-popper-placement^="top"] {
125
+ // Popover follows its side; the drop always comes from the trigger's direction.
126
+ .popover:popover-open[data-side="top"] {
127
127
  --wui-menu-drop: 6px;
128
128
 
129
129
  transform-origin: bottom center;
130
130
  }
131
- .popover.show[data-popper-placement^="right"] {
131
+ .popover:popover-open[data-side="end"] {
132
132
  --wui-menu-drop: 0px;
133
133
 
134
134
  transform-origin: left center;
135
135
  }
136
- .popover.show[data-popper-placement^="left"] {
136
+ .popover:popover-open[data-side="start"] {
137
137
  --wui-menu-drop: 0px;
138
138
 
139
139
  transform-origin: right center;
140
140
  }
141
- .popover.show[data-popper-placement^="bottom"] {
141
+ .popover:popover-open[data-side="bottom"] {
142
142
  transform-origin: top center;
143
143
  }
144
144
 
145
145
  @media (prefers-reduced-motion: reduce) {
146
- .dropdown-menu.show,
147
- .popover.show,
148
- .wui-select-menu:not([hidden]),
149
- .country-dropdown-menu:not([hidden]),
150
- .datepicker-pop:not([hidden]),
151
- .daterange-pop:not([hidden]),
152
- .timepicker-pop:not([hidden]) {
146
+ .dropdown-menu:popover-open,
147
+ .popover:popover-open,
148
+ .wui-select-menu:popover-open,
149
+ .country-dropdown-menu:popover-open,
150
+ .datepicker-pop:popover-open,
151
+ .daterange-pop:popover-open,
152
+ .timepicker-pop:popover-open {
153
153
  animation: none;
154
154
  }
155
155
  }