@webority/theme 0.163.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 +21 -21
  2. package/dist/purge-safelist.json +10 -11
  3. package/dist/webority-theme.css +1 -1
  4. package/package.json +6 -5
  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 +8 -8
  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 +74 -73
  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 +33 -33
  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
@@ -494,9 +494,20 @@
494
494
  flex: 1 1 auto;
495
495
  min-width: 0;
496
496
  }
497
- [data-wui-overflow-hidden] {
497
+ [data-wui-overflow-hidden]:not([data-wui-overflow-menu]) {
498
498
  display: none !important;
499
499
  }
500
+ // A folded menu trigger stays rendered (collapsed) so its panel can open beside More.
501
+ [data-wui-overflow-hidden][data-wui-overflow-menu] {
502
+ position: absolute;
503
+ width: 0;
504
+ height: 0;
505
+ overflow: hidden;
506
+ visibility: hidden;
507
+ }
508
+ [data-wui-overflow-menu] [data-wui-dropdown-menu] {
509
+ visibility: visible;
510
+ }
500
511
  .wui-overflow-more {
501
512
  flex: none;
502
513
  display: inline-flex;
@@ -837,3 +848,16 @@
837
848
  display: none;
838
849
  }
839
850
  }
851
+ // AppBreadcrumbs wrap={false}: the trail stays on one line.
852
+ // Placed after the collapse rules so it wins on equal specificity; the :not() keeps the collapse show/hide display values.
853
+ .breadcrumb.wui-breadcrumb-nowrap {
854
+ flex-wrap: nowrap;
855
+ }
856
+ .wui-breadcrumb-nowrap > .breadcrumb-item:not(.wui-breadcrumb-collapsible, .wui-breadcrumb-more) {
857
+ display: inline-flex;
858
+ white-space: nowrap;
859
+ }
860
+ .wui-breadcrumb-nowrap > .breadcrumb-item.wui-breadcrumb-collapsible,
861
+ .wui-breadcrumb-nowrap > .breadcrumb-item.wui-breadcrumb-more {
862
+ white-space: nowrap;
863
+ }
@@ -2,8 +2,9 @@
2
2
 
3
3
  // ── Notification centre ──
4
4
  // AppNotificationCenter / <app-notification-center> (a <wui-notification-center> element): a bell
5
- // with an unread count that opens a panel of notifications grouped by day. The element shows the
6
- // panel from the host's [open] attribute, so a React re-render never resets it. Every colour,
5
+ // with an unread count that opens a panel of notifications grouped by day. The panel is a popover
6
+ // that the element shows while the host's [open] attribute is set; the browser hides it otherwise,
7
+ // and the open animation keys on :popover-open, so a React re-render never resets it. Every colour,
7
8
  // radius and shadow is a theme token.
8
9
  //
9
10
  // Part of the wui-components layer, see _wui-components.scss for load order.
@@ -54,11 +55,8 @@
54
55
  }
55
56
 
56
57
  .wui-notification-center-panel {
57
- position: absolute;
58
- top: calc(100% + 6px);
59
- right: 0;
58
+ position: fixed;
60
59
  z-index: var(--wui-z-dropdown);
61
- display: none;
62
60
  width: 380px;
63
61
  max-width: calc(100vw - 24px);
64
62
  overflow: hidden;
@@ -70,12 +68,11 @@
70
68
  outline: none;
71
69
  transform-origin: top right;
72
70
  }
73
- .wui-notification-center[open] > .wui-notification-center-panel {
74
- display: block;
71
+ .wui-notification-center-panel:popover-open {
75
72
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
76
73
  }
77
74
  @media (prefers-reduced-motion: reduce) {
78
- .wui-notification-center[open] > .wui-notification-center-panel {
75
+ .wui-notification-center-panel:popover-open {
79
76
  animation: none;
80
77
  }
81
78
  }
@@ -0,0 +1,15 @@
1
+ // Clears the box the browser draws around a <dialog> or a popover, so the library panel inside is the box.
2
+ // Use it inside a :where() rule: zero specificity, so any class rule still wins.
3
+ @mixin wui-native-overlay-reset {
4
+ border: 0;
5
+ padding: 0;
6
+ background: none;
7
+ color: inherit;
8
+ width: auto;
9
+ height: auto;
10
+ max-width: none;
11
+ max-height: none;
12
+ margin: 0;
13
+ inset: auto;
14
+ overflow: visible;
15
+ }
@@ -9,14 +9,12 @@
9
9
  // here may be overridden by a later partial. Never reorder the imports.
10
10
 
11
11
  // ── Modal ──
12
- // Chrome stays on `.wui-modal-*`. The shell is react-bootstrap <Modal>:
13
- // .modal.wui-modal-shell ← className (layout container)
14
- // .modal-backdrop.wui-modal-dim ← backdropClassName (dim only)
15
- // .modal-dialog.wui-rb-dialog ← dialogClassName
16
- // .modal-content.wui-modal ← contentClassName (the card)
17
- // Do NOT put layout on backdropClassName — that targets a sibling, not
18
- // .modal.
19
- .modal-backdrop.wui-modal-dim {
12
+ // Chrome stays on `.wui-modal-*`. The shell is a native <dialog> opened with showModal():
13
+ // dialog.modal.wui-modal-shell ← the element (layout container, top layer)
14
+ // dialog.wui-modal-shell::backdrop ← the dim layer
15
+ // .modal-dialog.wui-rb-dialog ← the dialog's inner wrapper
16
+ // .modal-content.wui-modal ← the card
17
+ dialog.wui-modal-shell::backdrop {
20
18
  // Opacity is pinned to 1 because Bootstrap's 0.5 would halve the dim. The strong scrim guarantees
21
19
  // separation in every browser, including over embedded pages Chrome cannot blur; the blur on top
22
20
  // is decoration.
@@ -31,38 +29,25 @@
31
29
  }
32
30
  .modal.wui-modal-shell {
33
31
  --bs-modal-bg: transparent;
34
- align-items: center;
32
+ // Top, not centre: the dialog wrapper's own min-height does the vertical centring, measured from the
33
+ // padded top edge, which is where an open Bootstrap modal (a block box) has always placed it.
34
+ align-items: flex-start;
35
35
  justify-content: center;
36
36
  z-index: var(--wui-z-modal);
37
37
  padding: 20px;
38
38
  }
39
- // A dialog opened over a side panel (drawer or offcanvas) sits above it and its dim layer.
40
- .modal.wui-modal-stacked {
41
- z-index: calc(var(--wui-z-modal) + 10);
42
- }
43
- .modal-backdrop.wui-modal-backdrop-stacked {
44
- z-index: calc(var(--wui-z-modal) + 9);
45
- }
46
- // `display: flex` ONLY while the dialog is actually open.
47
- //
48
- // This was `display: flex !important` on the rule above, which beat Bootstrap's
49
- // `.modal { display: none }` — so a CLOSED <app-modal> stayed laid out as a
50
- // full-viewport flex container and silently swallowed every click on the page behind
51
- // it. React never hit it (react-bootstrap mounts the dialog only when open), so it
52
- // only ever broke Razor, on any page that declared a modal.
53
- //
54
- // Both stacks open a modal by setting `display: block` inline (Bootstrap's JS and
55
- // react-bootstrap alike), which is what this keys on — it covers the whole opening
56
- // transition, not just the settled `.show` state. Specificity (0,3,0) beats `.modal`,
57
- // so no !important is needed.
58
- .modal.wui-modal-shell[style*="display: block"] {
39
+ // `display: flex` only while the dialog is open. A closed dialog must not lay out: as a
40
+ // full-viewport flex box it would swallow every click on the page. Bootstrap's `.modal` sets
41
+ // display: none, so this rule also has to beat it.
42
+ dialog.wui-modal-shell[open] {
59
43
  display: flex;
60
44
  }
61
45
  // RB dialog shell: no Bootstrap max-width/margin so `.wui-modal` owns sizing.
62
46
  .modal.wui-modal-shell .modal-dialog.wui-rb-dialog {
63
47
  margin: 0;
64
48
  max-width: none;
65
- width: auto;
49
+ // The open shell is a flex box, where `auto` would shrink the wrapper to its content.
50
+ width: 100%;
66
51
  pointer-events: none;
67
52
  display: flex;
68
53
  align-items: center;
@@ -98,13 +83,6 @@
98
83
  // clip, not hidden: hidden makes the card a scroll container, so a focused control near its foot scrolled the card, not .wui-modal-body.
99
84
  overflow: clip;
100
85
  }
101
- // The document gutter is reserved (html, body in _components.scss) and AppModal locks the page itself
102
- // (ui-react lib/pageScrollLock.js), so the modal manager's scrollbar padding on body only bares a strip of
103
- // page beside the backdrop. Bootstrap and react-bootstrap write it inline, which only !important outranks.
104
- body.modal-open,
105
- body[data-rr-ui-modal-open] {
106
- padding-right: 0 !important;
107
- }
108
86
  // The centred card opens with the shared dialog motion (wui/_dialog-motion.scss: soft zoom by
109
87
  // default). Width comes from `size`, which both surfaces resolve to `--wui-modal-max-width` on
110
88
  // the shell (it inherits to `.wui-modal`).
@@ -526,9 +504,8 @@ body[data-rr-ui-modal-open] {
526
504
  }
527
505
 
528
506
  // ── Tooltip ──
529
- // Both surfaces render Bootstrap's .tooltip / .tooltip-inner (React via react-bootstrap
530
- // <Tooltip>, Razor via Bootstrap's own tooltip JS). The wrappers tag the tooltip element with
531
- // `wui-tooltip` (React className, Razor data-bs-custom-class), so this design lands on App
507
+ // Both surfaces render .tooltip / .tooltip-inner inside a popover="manual" element. The
508
+ // wrappers tag the tooltip element with `wui-tooltip`, so this design lands on App
532
509
  // tooltips only and never on a raw Bootstrap one. Every colour flows --wui-tooltip-* →
533
510
  // Bootstrap's own --bs-tooltip-* vars, so the arrow (which Bootstrap paints from
534
511
  // --bs-tooltip-bg) always tracks the body. Customisation seam: override a --wui-tooltip-* var
@@ -560,6 +537,9 @@ body[data-rr-ui-modal-open] {
560
537
  --bs-tooltip-padding-x: var(--wui-tooltip-padding-x);
561
538
  --bs-tooltip-opacity: 1;
562
539
  }
540
+ .tooltip.wui-tooltip:popover-open {
541
+ opacity: var(--bs-tooltip-opacity);
542
+ }
563
543
  .tooltip.wui-tooltip .tooltip-inner {
564
544
  // Padding + font-size come from the --bs-tooltip-* vars above (driven by --wui-tooltip-*),
565
545
  // so a size-* class or a custom var resizes the tip without touching this rule.
@@ -570,70 +550,15 @@ body[data-rr-ui-modal-open] {
570
550
  box-shadow: var(--wui-tooltip-shadow);
571
551
  }
572
552
 
573
- // ── CSS-only tooltip ──────────────────────────────────────────────────────────────────
574
- // Any element carrying `data-wui-tip="…"` grows a hover/focus bubble reusing the AppTooltip
575
- // surface look — no JS, no Popper, instant, and identical on React and Razor by construction.
576
- // It sits above the element; for a collision-aware / richer tooltip, use AppTooltip /
577
- // <app-tooltip> instead.
578
- //
579
- // Sole remaining user: <app-tabs> tab buttons, which CANNOT use a Bootstrap tooltip — the button
580
- // already owns a `bs.tab` instance and Bootstrap permits only one instance per element, so binding
581
- // `bs.Tooltip` to it logs "Bootstrap doesn't allow more than one instance per element" and the tab
582
- // instance is never registered. Everything else with a `tooltip` prop (AppIcon / <app-icon>
583
- // included) now routes through the shared collision-aware AppTooltip / Bootstrap-tooltip (Popper)
584
- // engine instead.
585
- [data-wui-tip] {
553
+ // Zero specificity: a component that positions its own control (a remove badge pinned to a corner) keeps it.
554
+ :where([data-wui-tooltip]) {
586
555
  position: relative;
587
556
  }
588
- // The wrapper the `tooltip` prop on AppIcon / <app-icon> puts around a glyph — now just the
589
- // inline-flex layout; the tooltip itself rides the shared Popper engine (Bootstrap-tooltip
590
- // data-attributes on this span, AppTooltip on React), not the CSS bubble above.
557
+ // The wrapper the `tooltip` prop on AppIcon / <app-icon> puts around a glyph: inline-flex layout only.
591
558
  .wui-icon-tip {
592
559
  display: inline-flex;
593
560
  vertical-align: -0.125em;
594
561
  }
595
- [data-wui-tip]::after {
596
- content: attr(data-wui-tip);
597
- position: absolute;
598
- bottom: calc(100% + 8px);
599
- left: 50%;
600
- transform: translateX(-50%);
601
- // Sits on the dedicated tooltip rung — above menus/popovers/modals, below toasts — so it is
602
- // never stacked under an overlay it is meant to annotate. This is a fixed-position CSS bubble
603
- // (always above); for a collision-aware tooltip that flips to stay on-screen, use AppTooltip /
604
- // <app-tooltip> (Popper), which AppActionIcon wraps for exactly that reason.
605
- z-index: var(--wui-z-tooltip, 1650);
606
- width: max-content;
607
- max-width: 240px;
608
- padding: 7px 11px;
609
- border-radius: var(--wui-radius-md, 10px);
610
- corner-shape: squircle;
611
- background: var(--color-surface);
612
- color: var(--color-text);
613
- border: 1px solid var(--color-border-subtle);
614
- box-shadow: var(--wui-shadow-popover);
615
- font-size: 0.8125rem;
616
- font-weight: 500;
617
- line-height: 1.4;
618
- text-align: left;
619
- white-space: normal;
620
- pointer-events: none;
621
- opacity: 0;
622
- visibility: hidden;
623
- transition:
624
- opacity var(--wui-duration-fast) var(--wui-ease-ui),
625
- visibility var(--wui-duration-fast) var(--wui-ease-ui);
626
- }
627
- [data-wui-tip]:hover::after,
628
- [data-wui-tip]:focus-visible::after {
629
- opacity: 1;
630
- visibility: visible;
631
- }
632
- @media (prefers-reduced-motion: reduce) {
633
- [data-wui-tip]::after {
634
- transition: none;
635
- }
636
- }
637
562
 
638
563
  // Size presets — swap the four size vars. `md` is the :where default (no class).
639
564
  .tooltip.wui-tooltip.size-sm {
@@ -654,6 +579,45 @@ body[data-rr-ui-modal-open] {
654
579
  filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--color-text) 14%, transparent));
655
580
  }
656
581
 
582
+ // The arrow sits on the side of the bubble facing its trigger; data-side names the trigger side
583
+ // (top, bottom, start, end) as anchorOverlay writes it.
584
+ .tooltip.wui-tooltip[data-side="top"] .tooltip-arrow {
585
+ bottom: calc(-1 * var(--bs-tooltip-arrow-height));
586
+ }
587
+ .tooltip.wui-tooltip[data-side="top"] .tooltip-arrow::before {
588
+ top: -1px;
589
+ border-width: var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * 0.5) 0;
590
+ border-top-color: var(--bs-tooltip-bg);
591
+ }
592
+ .tooltip.wui-tooltip[data-side="end"] .tooltip-arrow {
593
+ left: calc(-1 * var(--bs-tooltip-arrow-height));
594
+ width: var(--bs-tooltip-arrow-height);
595
+ height: var(--bs-tooltip-arrow-width);
596
+ }
597
+ .tooltip.wui-tooltip[data-side="end"] .tooltip-arrow::before {
598
+ right: -1px;
599
+ border-width: calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * 0.5) 0;
600
+ border-right-color: var(--bs-tooltip-bg);
601
+ }
602
+ .tooltip.wui-tooltip[data-side="bottom"] .tooltip-arrow {
603
+ top: calc(-1 * var(--bs-tooltip-arrow-height));
604
+ }
605
+ .tooltip.wui-tooltip[data-side="bottom"] .tooltip-arrow::before {
606
+ bottom: -1px;
607
+ border-width: 0 calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height);
608
+ border-bottom-color: var(--bs-tooltip-bg);
609
+ }
610
+ .tooltip.wui-tooltip[data-side="start"] .tooltip-arrow {
611
+ right: calc(-1 * var(--bs-tooltip-arrow-height));
612
+ width: var(--bs-tooltip-arrow-height);
613
+ height: var(--bs-tooltip-arrow-width);
614
+ }
615
+ .tooltip.wui-tooltip[data-side="start"] .tooltip-arrow::before {
616
+ left: -1px;
617
+ border-width: calc(var(--bs-tooltip-arrow-width) * 0.5) 0 calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height);
618
+ border-left-color: var(--bs-tooltip-bg);
619
+ }
620
+
657
621
  // Tone presets — swap the three colour vars; the arrow follows --bs-tooltip-bg automatically.
658
622
  // Fills that carry white text use the AA-cleared -strong tokens; warning stays dark-on-yellow.
659
623
  .tooltip.wui-tooltip.wui-tooltip-inverse {
@@ -682,6 +646,83 @@ body[data-rr-ui-modal-open] {
682
646
  --wui-tooltip-border: transparent;
683
647
  }
684
648
 
649
+ // Popover arrow side, read from data-side as for the tooltip above.
650
+ .popover[data-side="top"] > .popover-arrow {
651
+ bottom: calc(-1 * var(--bs-popover-arrow-height) - var(--bs-popover-border-width));
652
+ }
653
+ .popover[data-side="top"] > .popover-arrow::before,
654
+ .popover[data-side="top"] > .popover-arrow::after {
655
+ border-width: var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * 0.5) 0;
656
+ }
657
+ .popover[data-side="top"] > .popover-arrow::before {
658
+ bottom: 0;
659
+ border-top-color: var(--bs-popover-arrow-border);
660
+ }
661
+ .popover[data-side="top"] > .popover-arrow::after {
662
+ bottom: var(--bs-popover-border-width);
663
+ border-top-color: var(--bs-popover-bg);
664
+ }
665
+ .popover[data-side="end"] > .popover-arrow {
666
+ left: calc(-1 * var(--bs-popover-arrow-height) - var(--bs-popover-border-width));
667
+ width: var(--bs-popover-arrow-height);
668
+ height: var(--bs-popover-arrow-width);
669
+ }
670
+ .popover[data-side="end"] > .popover-arrow::before,
671
+ .popover[data-side="end"] > .popover-arrow::after {
672
+ border-width: calc(var(--bs-popover-arrow-width) * 0.5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * 0.5) 0;
673
+ }
674
+ .popover[data-side="end"] > .popover-arrow::before {
675
+ left: 0;
676
+ border-right-color: var(--bs-popover-arrow-border);
677
+ }
678
+ .popover[data-side="end"] > .popover-arrow::after {
679
+ left: var(--bs-popover-border-width);
680
+ border-right-color: var(--bs-popover-bg);
681
+ }
682
+ .popover[data-side="bottom"] > .popover-arrow {
683
+ top: calc(-1 * var(--bs-popover-arrow-height) - var(--bs-popover-border-width));
684
+ }
685
+ .popover[data-side="bottom"] > .popover-arrow::before,
686
+ .popover[data-side="bottom"] > .popover-arrow::after {
687
+ border-width: 0 calc(var(--bs-popover-arrow-width) * 0.5) var(--bs-popover-arrow-height);
688
+ }
689
+ .popover[data-side="bottom"] > .popover-arrow::before {
690
+ top: 0;
691
+ border-bottom-color: var(--bs-popover-arrow-border);
692
+ }
693
+ .popover[data-side="bottom"] > .popover-arrow::after {
694
+ top: var(--bs-popover-border-width);
695
+ border-bottom-color: var(--bs-popover-bg);
696
+ }
697
+ // Bootstrap removes the header's border just below a bottom arrow.
698
+ .popover[data-side="bottom"] .popover-header::before {
699
+ position: absolute;
700
+ top: 0;
701
+ left: 50%;
702
+ display: block;
703
+ width: var(--bs-popover-arrow-width);
704
+ margin-left: calc(-0.5 * var(--bs-popover-arrow-width));
705
+ content: "";
706
+ border-bottom: var(--bs-popover-border-width) solid var(--bs-popover-header-bg);
707
+ }
708
+ .popover[data-side="start"] > .popover-arrow {
709
+ right: calc(-1 * var(--bs-popover-arrow-height) - var(--bs-popover-border-width));
710
+ width: var(--bs-popover-arrow-height);
711
+ height: var(--bs-popover-arrow-width);
712
+ }
713
+ .popover[data-side="start"] > .popover-arrow::before,
714
+ .popover[data-side="start"] > .popover-arrow::after {
715
+ border-width: calc(var(--bs-popover-arrow-width) * 0.5) 0 calc(var(--bs-popover-arrow-width) * 0.5) var(--bs-popover-arrow-height);
716
+ }
717
+ .popover[data-side="start"] > .popover-arrow::before {
718
+ right: 0;
719
+ border-left-color: var(--bs-popover-arrow-border);
720
+ }
721
+ .popover[data-side="start"] > .popover-arrow::after {
722
+ right: var(--bs-popover-border-width);
723
+ border-left-color: var(--bs-popover-bg);
724
+ }
725
+
685
726
  // ── Toast (notifications) ──
686
727
  // Surface-card toasts shared by React <AppToast/> and Razor <app-toast>/WUI.toast: an elevated
687
728
  // card with a left accent bar + variant icon, an auto-dismiss progress bar (pauses on hover/focus),
@@ -1063,7 +1104,6 @@ body[data-rr-ui-modal-open] {
1063
1104
  .wui-toast--surface-inverse .wui-toast-close {
1064
1105
  filter: invert(1) grayscale(100%) brightness(200%);
1065
1106
  }
1066
- :root[data-theme="dark"] .wui-toast--surface-inverse .wui-toast-close,
1067
1107
  :root[data-bs-theme="dark"] .wui-toast--surface-inverse .wui-toast-close {
1068
1108
  filter: none;
1069
1109
  }
@@ -49,6 +49,30 @@
49
49
  .page-header.page-header-bar .page-actions {
50
50
  flex: none;
51
51
  }
52
+ // The actions sit in a <wui-overflow>: the ones that do not fit fold into its More menu, so the host
53
+ // shrinks with the row instead of running past the header's edge.
54
+ .page-header.page-header-bar > .wui-page-header-actions {
55
+ flex: 0 1 auto;
56
+ gap: var(--wui-space-sm);
57
+ min-width: 0;
58
+ }
59
+ // The list keeps one line: an action that does not fit folds into More instead of wrapping. Its
60
+ // actions never shrink, so the overflow element measures real overflow instead of wrapped labels.
61
+ .page-header.page-header-bar > .wui-page-header-actions > .page-actions {
62
+ flex: 0 1 auto;
63
+ flex-wrap: nowrap;
64
+ min-width: 0;
65
+ }
66
+ .page-header.page-header-bar > .wui-page-header-actions > .page-actions > * {
67
+ flex: none;
68
+ }
69
+ // More sits among small action buttons, so it takes their height and corner.
70
+ .page-header.page-header-bar > .wui-page-header-actions > .wui-overflow-more {
71
+ height: var(--wui-control-sm);
72
+ padding: 0 var(--wui-space-md);
73
+ border-radius: var(--wui-button-sm-radius);
74
+ color: var(--color-text);
75
+ }
52
76
  .page-header-bar-views {
53
77
  flex: 0 1 auto;
54
78
  min-width: 0;
@@ -1,6 +1,6 @@
1
1
  @use "../config" as *;
2
2
 
3
- // AppScrollbar / opt-in internal scrollers — same tokens as the document rail
3
+ // AppScrollbar / opt-in internal scrollers, same tokens as the document rail
4
4
  // (--wui-scrollbar*). Document chrome lives on html/body only; use this class
5
5
  // for panels, drawers, and modal bodies that need a matching thin thumb.
6
6
  .wui-scroll {
@@ -266,12 +266,12 @@
266
266
  opacity: 1;
267
267
  }
268
268
  // Dark pages: a dark mark turns light, and the hover and focus reveal keeps that inversion.
269
- :root[data-theme="dark"] .wui-section-logo-img {
269
+ :root[data-bs-theme="dark"] .wui-section-logo-img {
270
270
  filter: grayscale(1) invert(1);
271
271
  opacity: 0.8;
272
272
  }
273
- :root[data-theme="dark"] .wui-section-logo-img:hover,
274
- :root[data-theme="dark"] .wui-section-logo a:focus-visible .wui-section-logo-img {
273
+ :root[data-bs-theme="dark"] .wui-section-logo-img:hover,
274
+ :root[data-bs-theme="dark"] .wui-section-logo a:focus-visible .wui-section-logo-img {
275
275
  filter: grayscale(1) invert(1);
276
276
  opacity: 1;
277
277
  }
@@ -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);