Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,10 @@ describe("calcite-popover", () => {
shadowSelector: `.${CSS.container}`,
targetProp: "borderRadius",
},
"--calcite-popover-max-size-x": {
shadowSelector: `.${CSS.positionContainer}`,
targetProp: "maxInlineSize",
},
"--calcite-popover-text-color": [
{
shadowSelector: `.${CSS.heading}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @prop --calcite-popover-background-color: Specifies the component's background color.
* @prop --calcite-popover-border-color: Specifies the component's border color.
* @prop --calcite-popover-corner-radius: Specifies the component's corner radius.
* @prop --calcite-popover-max-size-x: Specifies the component's maximum width.
* @prop --calcite-popover-text-color: Specifies the component's text color.
* @prop --calcite-popover-z-index: Specifies the component's z-index value.
*/
Expand All @@ -17,6 +18,7 @@

.position-container {
@include floating-ui-container();
max-inline-size: var(--calcite-popover-max-size-x, 100vw);
}

@include floating-ui-elem-anim(".position-container");
Expand Down
1 change: 1 addition & 0 deletions packages/calcite-components/src/custom-theme/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const popoverTokens = {
calcitePopoverBackgroundColor: "",
calcitePopoverBorderColor: "",
calcitePopoverCornerRadius: "",
calcitePopoverMaxSizeX: "",
calcitePopoverTextColor: "",
calcitePopoverZIndex: "",
};
Expand Down
Loading