@momentum-design/components 0.81.4 → 0.81.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +6 -11
- package/dist/browser/index.js.map +2 -2
- package/dist/components/dialog/dialog.component.js +5 -4
- package/dist/components/dialog/dialog.styles.js +2 -7
- package/dist/custom-elements.json +999 -999
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/package.json +1 -1
|
@@ -339,7 +339,6 @@ class Dialog extends FocusTrapMixin(CardAndDialogFooterMixin(Component)) {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
render() {
|
|
342
|
-
var _a;
|
|
343
342
|
return html `
|
|
344
343
|
${this.headerText
|
|
345
344
|
? html `
|
|
@@ -354,13 +353,15 @@ class Dialog extends FocusTrapMixin(CardAndDialogFooterMixin(Component)) {
|
|
|
354
353
|
${this.headerText}
|
|
355
354
|
</mdc-text>
|
|
356
355
|
</div>
|
|
357
|
-
|
|
356
|
+
${this.descriptionText
|
|
357
|
+
? html `<mdc-text
|
|
358
358
|
part="description-text"
|
|
359
359
|
tagname="${VALID_TEXT_TAGS[this.descriptionTagName.toUpperCase()]}"
|
|
360
360
|
type="${TYPE.BODY_MIDSIZE_REGULAR}"
|
|
361
361
|
>
|
|
362
|
-
|
|
363
|
-
</mdc-text
|
|
362
|
+
${this.descriptionText}
|
|
363
|
+
</mdc-text>`
|
|
364
|
+
: nothing}
|
|
364
365
|
</div>`
|
|
365
366
|
: nothing}
|
|
366
367
|
<mdc-button
|
|
@@ -64,10 +64,11 @@ const styles = css `
|
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
gap: 0.25rem;
|
|
67
|
+
width: 100%
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
:host::part(header-text) {
|
|
70
|
-
width:
|
|
71
|
+
width: calc(100% - 2rem);
|
|
71
72
|
color: var(--mdc-dialog-header-text-color);
|
|
72
73
|
}
|
|
73
74
|
|
|
@@ -89,12 +90,6 @@ const styles = css `
|
|
|
89
90
|
justify-content: flex-end;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
::slotted([slot='footer-link']),
|
|
93
|
-
::slotted([slot='footer-button-primary']),
|
|
94
|
-
::slotted([slot='footer-button-secondary']){
|
|
95
|
-
margin-bottom: 0.5rem;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
93
|
:host::part(dialog-close-btn) {
|
|
99
94
|
position: absolute;
|
|
100
95
|
top: 1rem;
|