diff --git a/components/dialog/src/vwc-dialog.scss b/components/dialog/src/vwc-dialog.scss index f98009972..80b59472e 100644 --- a/components/dialog/src/vwc-dialog.scss +++ b/components/dialog/src/vwc-dialog.scss @@ -63,4 +63,8 @@ right: 16px; display: block; } + .mdc-dialog__title, + .mdc-dialog__content { + width: calc(100% - 20px); + } } diff --git a/components/dialog/stories/dialog.stories.js b/components/dialog/stories/dialog.stories.js index c4f852e4f..cefa4e533 100644 --- a/components/dialog/stories/dialog.stories.js +++ b/components/dialog/stories/dialog.stories.js @@ -13,7 +13,7 @@ export default { const Template = args => html` Open dialog -
This is the modal's content.
+
This is the modal's content. The content can be long but still will not be cut off by the close button
@@ -61,7 +61,7 @@ export const Modal = Template.bind({}); Modal.args = { heading: 'This is a modal window', scrimClickAction: '' }; export const CloseButton = Template.bind({}); -CloseButton.args = { 'close-button': 'true' }; +CloseButton.args = { 'close-button': 'true', heading: 'This is a modal window with a close button' }; function handleOpenDialogClick(e) { document.querySelector('vwc-dialog').show();