You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Related Issue:** #8620
## Summary
This allows users to specify `overlayPositioning` to help escape
scrolling containers for underlying menus.
**Note**: this adds a new helper
(`delegatesToFloatingUiOwningComponent`) to shallowly test if a
component has a floating-ui-owning component wired up.
* Disables automatically overflowing `calcite-action`s that won't fit into menus.
345
345
*/
346
346
"overflowActionsDisabled": boolean;
347
+
/**
348
+
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
349
+
*/
350
+
"overlayPositioning": OverlayPositioning;
347
351
/**
348
352
* Arranges the component depending on the element's `dir` property.
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
472
+
*/
473
+
"overlayPositioning": OverlayPositioning;
466
474
/**
467
475
* Arranges the component depending on the element's `dir` property.
* When `true`, expands the component and its contents.
605
613
*/
606
614
"open": boolean;
615
+
/**
616
+
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
617
+
*/
618
+
"overlayPositioning": OverlayPositioning;
607
619
/**
608
620
* Sets focus on the component's first tabbable element.
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
1741
+
*/
1742
+
"overlayPositioning": OverlayPositioning;
1727
1743
/**
1728
1744
* Scrolls the component's content to a specified set of coordinates.
1729
1745
* @example myCalciteFlowItem.scrollContentTo({ left: 0, // Specifies the number of pixels along the X axis to scroll the window or element. top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value). });
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
3454
+
*/
3455
+
"overlayPositioning": OverlayPositioning;
3436
3456
/**
3437
3457
* Scrolls the component's content to a specified set of coordinates.
3438
3458
* @example myCalciteFlowItem.scrollContentTo({ left: 0, // Specifies the number of pixels along the X axis to scroll the window or element. top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value). });
* Disables automatically overflowing `calcite-action`s that won't fit into menus.
7568
7588
*/
7569
7589
"overflowActionsDisabled"?: boolean;
7590
+
/**
7591
+
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
7592
+
*/
7593
+
"overlayPositioning"?: OverlayPositioning;
7570
7594
/**
7571
7595
* Arranges the component depending on the element's `dir` property.
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
7711
+
*/
7712
+
"overlayPositioning"?: OverlayPositioning;
7685
7713
/**
7686
7714
* Arranges the component depending on the element's `dir` property.
* When `true`, expands the component and its contents.
7861
7889
*/
7862
7890
"open"?: boolean;
7891
+
/**
7892
+
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
9090
+
*/
9091
+
"overlayPositioning"?: OverlayPositioning;
9056
9092
/**
9057
9093
* When `true`, displays a back button in the component's header.
* Determines the type of positioning to use for the overlaid content. Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
* @slot - A slot for adding `calcite-action`s that will appear at the top of the component.
@@ -123,6 +124,16 @@ export class ActionBar
123
124
this.overflowActions();
124
125
}
125
126
127
+
/**
128
+
* Determines the type of positioning to use for the overlaid content.
129
+
*
130
+
* Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout.
131
+
*
132
+
* `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
* @slot - A slot for adding `calcite-action`s to the component.
@@ -117,6 +118,16 @@ export class ActionPad
117
118
/* wired up by t9n util */
118
119
}
119
120
121
+
/**
122
+
* Determines the type of positioning to use for the overlaid content.
123
+
*
124
+
* Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout.
125
+
*
126
+
* `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
0 commit comments