Skip to content

Commit f1e6597

Browse files
docs(dialog): adds modal background color documentation
1 parent a01b787 commit f1e6597

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/dialog/stories/dialog.stories.js

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { Template } from "./template.js";
66
/**
77
* A dialog displays important information that users need to acknowledge. They appear over the interface and block further interactions. Standard dialogs are the most frequent type of dialogs. They appear in the center of the screen over the interface and should be used for moderately complex tasks. Takeover dialogs are large types of dialogs. They use the totality of the screen and should be used for modal experiences with complex workflows.
88
*
9+
* ## Usage with modal component
10+
* When a dialog component is used in tandem with a [modal](/docs/components-modal--docs), implementations will have to utilize the `customStyles` prop on the modal to set `--mod-modal-background-color` to `transparent`. This will prevent any background color used in the modal from peaking through "behind" the dialog, allowing the dialog's background color to take precedence.
11+
*
912
* The alert variants that were previously a part of Dialog were moved to their own component, [alert dialog](/docs/components-alert-dialog--docs).
1013
*/
1114
export default {

0 commit comments

Comments
 (0)