Skip to content

Commit 4cd98d8

Browse files
committed
fix(platform): keep anchored popover presentation in its CSS recipe
1 parent ad0256f commit 4cd98d8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/sim/platform/design-system/components/anchored-popover.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export function AnchoredPopover({
5353
positionMethod='fixed'
5454
>
5555
<Popover.Popup
56-
className={presentation === 'panel' ? popup.dialogPanel : popup.panel}
56+
className={popup.panel}
57+
data-presentation={presentation}
5758
aria-label={label}
5859
data-material='floating'
5960
data-elevation='menu'

‎apps/sim/platform/design-system/components/popup.module.css‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
overflow-y: auto;
7979
}
8080

81-
.dialogPanel {
82-
composes: panel;
81+
.panel[data-presentation="panel"] {
8382
border-radius: var(--radius-panel);
8483
}

0 commit comments

Comments
 (0)