@mlola-ui/engine 1.1.12 → 1.1.13

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.
@@ -3087,10 +3087,18 @@ button.ml-breadcrumb-link {
3087
3087
  color: var(--ml-text-muted);
3088
3088
  }
3089
3089
 
3090
+ /* A layer above the page, placed beside its trigger by script (React's
3091
+ useFloating, the runtime's floatingLayer), so no card, panel or modal
3092
+ around the trigger can cut it off. It sits above a modal it opens from.
3093
+ In the top layer (the Popover API) the browser's own popover styles are
3094
+ set back: no centering margin, no stretching inset, the theme's ink. */
3090
3095
  .ml-dropdown-menu {
3091
- position: absolute;
3092
- z-index: var(--ml-layer-dropdown);
3093
- top: calc(100% + var(--ml-space-1-5));
3096
+ position: fixed;
3097
+ z-index: var(--ml-layer-popover);
3098
+ inset: auto;
3099
+ top: 0;
3100
+ left: 0;
3101
+ margin: 0;
3094
3102
  min-width: 14rem;
3095
3103
  padding: var(--ml-space-1);
3096
3104
  border: var(--ml-border-width) solid var(--ml-border-subtle);
@@ -3107,20 +3115,10 @@ button.ml-breadcrumb-link {
3107
3115
  }
3108
3116
 
3109
3117
  .ml-dropdown-menu[data-align="end"] {
3110
- right: 0;
3111
- left: auto;
3112
3118
  transform-origin: top right;
3113
3119
  }
3114
3120
 
3115
- /* Kept on screen by fitMenu: slid sideways, and above the trigger when
3116
- there is no room below. */
3117
- .ml-dropdown-menu {
3118
- translate: var(--ml-dropdown-shift, 0) 0;
3119
- }
3120
-
3121
3121
  .ml-dropdown-menu[data-side="top"] {
3122
- top: auto;
3123
- bottom: calc(100% + var(--ml-space-1-5));
3124
3122
  transform-origin: bottom left;
3125
3123
  }
3126
3124
 
@@ -4795,11 +4793,16 @@ button.ml-breadcrumb-link {
4795
4793
  color: var(--ml-text);
4796
4794
  }
4797
4795
 
4796
+ /* In the top layer (the Popover API) the browser's own popover styles are
4797
+ set back: no centering margin, no stretching inset, the theme's ink. */
4798
4798
  .ml-select-popover {
4799
4799
  position: fixed;
4800
4800
  z-index: var(--ml-layer-top);
4801
+ inset: auto;
4801
4802
  top: 0;
4802
4803
  left: 0;
4804
+ margin: 0;
4805
+ color: var(--ml-text);
4803
4806
  max-width: calc(100vw - var(--ml-space-4));
4804
4807
  padding: var(--ml-space-1);
4805
4808
  border: var(--ml-border-width) solid var(--ml-border-subtle);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlola-ui/engine",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "Framework-free CSS, spring easings, and the machine-readable contract for Mlola UI",
5
5
  "type": "module",
6
6
  "sideEffects": [