@momentum-design/components 0.81.5 → 0.82.0

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.
@@ -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
- <mdc-text
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
- ${(_a = this.descriptionText) !== null && _a !== void 0 ? _a : nothing}
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: 23.625rem;
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;