Skip to content

Commit

Permalink
fix(dialog): no longer modifies slotted panels background color. #10809
Browse files Browse the repository at this point in the history
  • Loading branch information
driskull committed Dec 13, 2024
1 parent 2555a61 commit d5cd474
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/calcite-components/src/components/dialog/dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ calcite-panel {
--calcite-panel-background-color: var(--calcite-dialog-background-color, var(--calcite-color-foreground-1));
}

::slotted(calcite-panel) {
--calcite-panel-background-color: initial;
}

.dialog {
@apply pointer-events-none
m-6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ export const withCustomContent = (): string => html`
</calcite-dialog>
`;

export const withCustomContentPanel = (): string => html`
<calcite-dialog open modal heading="heading" description="description" scale="m" width-scale="s">
<calcite-panel heading="Custom Panel" slot="${SLOTS.content}">Custom Panel Content!</calcite-panel>
</calcite-dialog>
`;

export const loading = (): string => html`
<calcite-dialog loading open modal heading="heading" description="description" scale="m" width-scale="s">
<p>Slotted content!</p>
Expand Down

0 comments on commit d5cd474

Please sign in to comment.