@innovaccer/design-system 4.30.0 → 4.30.2

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.
@@ -349,7 +349,7 @@
349
349
  opacity: 0;
350
350
  }
351
351
  }
352
- @scope ([data-mds-root], body > .Overlay-wrapper:has([data-layer]), body > [data-test='DesignSystem-Popover'], body > [data-test='DesignSystem-Backdrop'], body > .Listbox-item--draggable) {
352
+ @scope ([data-mds-root], body > .Overlay-wrapper:has([data-layer]), body > [data-test='DesignSystem-Popover'], body > [data-floating-ui-portal], body > [data-test='DesignSystem-Backdrop'], body > .Listbox-item--draggable) {
353
353
  /* Source: src/tokens/index.css */
354
354
  /**** Color Primitives ****/
355
355
  :scope {
@@ -1275,6 +1275,7 @@
1275
1275
  /* Label */
1276
1276
  .Label, :scope.Label {
1277
1277
  display: inline-flex;
1278
+ position: relative;
1278
1279
  }
1279
1280
  .Label--small, :scope.Label--small {
1280
1281
  font-size: var(--font-size-s);
@@ -9602,6 +9603,7 @@
9602
9603
 
9603
9604
  .Select-trigger--disabled, :scope.Select-trigger--disabled {
9604
9605
  pointer-events: none;
9606
+ color: var(--text-disabled);
9605
9607
  }
9606
9608
 
9607
9609
  .Select-trigger-control, :scope.Select-trigger-control {
@@ -34,6 +34,17 @@ const PORTAL_ROOT_SELECTORS = [
34
34
  'body > .Overlay-wrapper:has([data-layer])',
35
35
  /** Popover and everything built on it: Tooltip, Dropdown, Menu, DateRangePicker, … */
36
36
  "body > [data-test='DesignSystem-Popover']",
37
+ /**
38
+ * `PopperWrapper` now renders through `@floating-ui/react`'s `FloatingPortal`, which
39
+ * inserts its own `<div data-floating-ui-portal>` directly under `body` and nests the
40
+ * `data-test='DesignSystem-Popover'` element one level inside *that* — so the selector
41
+ * above no longer matches a direct child of `body` for any Popover-built component
42
+ * (Tooltip, Dropdown, Menu, Select, DateRangePicker, AvatarGroup, …). This selector
43
+ * targets the actual direct child instead. `data-floating-ui-portal` is set
44
+ * unconditionally by the library itself, so it doesn't depend on a component's
45
+ * (now overridable via a `dataTest` prop) `data-test` value.
46
+ */
47
+ 'body > [data-floating-ui-portal]',
37
48
  /** Backdrop, including the one Modal/Sidesheet render. */
38
49
  "body > [data-test='DesignSystem-Backdrop']",
39
50
  /**
@@ -1,6 +1,7 @@
1
1
  /* Label */
2
2
  .Label {
3
3
  display: inline-flex;
4
+ position: relative;
4
5
  }
5
6
  .Label--small {
6
7
  font-size: var(--font-size-s);
@@ -32,6 +32,7 @@
32
32
 
33
33
  .Select-trigger--disabled {
34
34
  pointer-events: none;
35
+ color: var(--text-disabled);
35
36
  }
36
37
 
37
38
  .Select-trigger-control {