|
| 1 | +--- |
| 2 | +"@spectrum-css/dialog": major |
| 3 | +"@spectrum-css/modal": patch |
| 4 | +"@spectrum-css/underlay": patch |
| 5 | +--- |
| 6 | + |
| 7 | +Spectrum 2 Standard Dialog Migration |
| 8 | + |
| 9 | +This is the migration for standard dialog. The Divider component is no longer supported in S2 dialogs. In addition, some new and updated tokens are in place to update dialog corner rounding, font treatments, spacing/padding, and maximum/minimum widths. There were several new elements implemented as well, including optional header and footer content, hero/cover images, checkbox and text-only options in the footer content area. |
| 10 | + |
| 11 | +The `.spectrum-Dialog--small`, `.spectrum-Dialog--medium`, and `.spectrum-Dialog--large` sizing classes were deprecated and removed from the CSS in favor of the t-shirt sizes. Additionally, the spelling of the `.spectrum-Dialog--dismissable` class was corrected to `.spectrum-Dialog--dismissible`. |
| 12 | + |
| 13 | +Mod properties are either "new," have been renamed to reflect the respective dialog language, or were removed: |
| 14 | + |
| 15 | +_New Mods_ |
| 16 | +`--mod-standard-dialog-spacing-title-to-header-content` |
| 17 | +`--mod-standard-dialog-spacing-title-to-description` |
| 18 | +`--mod-standard-dialog-header-content-font-size` |
| 19 | + |
| 20 | +_Renamed Mods_ |
| 21 | +`--mod-dialog-confirm-small-width` > `--mod-standard-dialog-max-width-small` |
| 22 | +`--mod-dialog-confirm-medium-width` > `--mod-standard-dialog-max-width` |
| 23 | +`--mod-dialog-confirm-large-width` > `--mod-standard-dialog-max-width-large` |
| 24 | +`--mod-dialog-confirm-border-radius` > `--mod-standard-dialog-border-radius` |
| 25 | +`--mod-dialog-confirm-description-text-size` > `--mod-standard-dialog-description-font-size` |
| 26 | +`--mod-dialog-confirm-description-text-line-height` > `--mod-standard-dialog-description-line-height` |
| 27 | +`--mod-dialog-confirm-description-text-color` > `--mod-standard-dialog-description-text-color` |
| 28 | +`--mod-dialog-confirm-description-font-weight` > `--mod-standard-dialog-description-font-weight` |
| 29 | +`--mod-dialog-heading-font-weight` > `--mod-standard-dialog-heading-font-weight` |
| 30 | +`--mod-dialog-confirm-title-text-line-height` > `--mod-standard-dialog-heading-line-height` |
| 31 | +`--mod-dialog-confirm-title-text-color` > `--mod-standard-dialog-heading-text-color` |
| 32 | +`--mod-dialog-confirm-title-text-size` > `--mod-standard-dialog-heading-font-size` |
| 33 | +`--mod-dialog-confirm-hero-height` > `--mod-standard-dialog-hero-block-size` |
| 34 | +`--mod-dialog-min-inline-size` > `--mod-standard-dialog-min-inline-size` |
| 35 | +`--mod-dialog-confirm-padding-grid` > `--mod-standard-dialog-spacing-grid-padding` |
| 36 | +`--mod-dialog-confirm-footer-padding-top` > `--mod-standard-dialog-spacing-description-to-footer` |
| 37 | +`--mod-dialog-confirm-close-button-padding` > `--mod-standard-dialog-spacing-edge-to-close-button` |
| 38 | +`--mod-dialog-confirm-gap-size` > `--mod-standard-dialog-spacing-footer-to-button-group` |
| 39 | + |
| 40 | +_Removed Mods_ |
| 41 | +`--mod-dialog-confirm-buttongroup-padding-top` |
| 42 | +`--mod-dialog-confirm-close-button-size` |
| 43 | +`--mod-dialog-confirm-description-margin` |
| 44 | +`--mod-dialog-confirm-description-padding` |
| 45 | +`--mod-dialog-confirm-divider-block-spacing-end` |
| 46 | +`--mod-dialog-confirm-divider-block-spacing-start` |
| 47 | +`--mod-dialog-confirm-divider-height` |
| 48 | + |
| 49 | +Modal and underlay updates |
| 50 | + |
| 51 | +- Modal component now uses the updated corner rounding. |
| 52 | +- Underlay has an updated comment that addresses the overlay-color/overlay-opacity tokens. |
0 commit comments