diff --git a/.changeset/loud-coins-shake.md b/.changeset/loud-coins-shake.md new file mode 100644 index 0000000000..9843d0c0d8 --- /dev/null +++ b/.changeset/loud-coins-shake.md @@ -0,0 +1,21 @@ +--- +"@rhds/elements": minor +--- + +``: Dialog now uses the native HTML `` element internally. + +Note: the `overlay` CSS shadow part is now deprecated in favor of the `--rh-dialog-backdrop-background-color` CSS custom property. It will still work, but you can expect the `overlay` part to be removed in a future version + +Before: + +```css +rh-dialog::part(overlay) { ... } +``` + +After: + +```css +rh-dialog { + --rh-dialog-backdrop-background-color: ghostwhite; +} +``` diff --git a/elements/rh-dialog/demo/color-context.html b/elements/rh-dialog/demo/color-context.html index 90af9cf496..3ae29689c3 100644 --- a/elements/rh-dialog/demo/color-context.html +++ b/elements/rh-dialog/demo/color-context.html @@ -16,9 +16,7 @@

Color Context

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

- - Learn more - + Call to Action
Open Dialog diff --git a/elements/rh-dialog/demo/events.html b/elements/rh-dialog/demo/events.html index f3e55d7310..2eb0eeb718 100644 --- a/elements/rh-dialog/demo/events.html +++ b/elements/rh-dialog/demo/events.html @@ -6,9 +6,7 @@

Modal dialog with a header

aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- - Learn more - + Call to Action Open
diff --git a/elements/rh-dialog/demo/lots-of-content.html b/elements/rh-dialog/demo/lots-of-content.html index 195cb5df64..3088f0f683 100644 --- a/elements/rh-dialog/demo/lots-of-content.html +++ b/elements/rh-dialog/demo/lots-of-content.html @@ -57,9 +57,7 @@

Modal with a header with a truly excessive super duper long ti

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui. Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

- - Learn more - + Call to Action