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:** #10323
## Summary
Deprecates the `"content"` slot in favor of a new `"custom-content"`
slot that will clearly describes the behavior that a user can expect.
This change should solve the issue of confusion that we've heard about
from internal feedback.
The description of the new slot would be:
> **custom-content** - A slot for displaying custom content. Will
prevent the rendering of any default Dialog UI, except for `box-shadow`
and `corner-radius`.
deprecate(dialog): deprecate the `content` slot
Copy file name to clipboardExpand all lines: packages/calcite-components/src/components/dialog/dialog.tsx
+37-34
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,8 @@ let initialDocumentOverflowStyle: string = "";
51
51
52
52
/**
53
53
* @slot - A slot for adding content.
54
-
* @slot content - A slot for adding custom content.
54
+
* @slot content - [Deprecated] Use `custom-content` slot instead.
55
+
* @slot custom-content - A slot for displaying custom content. Will prevent the rendering of any default Dialog UI, except for `box-shadow` and `corner-radius`.
55
56
* @slot action-bar - A slot for adding a `calcite-action-bar` to the component.
56
57
* @slot alerts - A slot for adding `calcite-alert`s to the component.
57
58
* @slot content-bottom - A slot for adding content below the unnamed (default) slot and - if populated - the `footer` slot.
0 commit comments