From 403927687e01124bf9bcefa1e8ebd7f102331bac Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 14 May 2025 17:53:48 -0400 Subject: [PATCH] add slot detection back to dialog; fixes #926 (#927) --- docs/_includes/search.njk | 2 +- docs/docs/components/dialog.md | 11 ++++++----- docs/docs/resources/changelog.md | 1 + src/components/dialog/dialog.ts | 22 +++++++++++++--------- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/docs/_includes/search.njk b/docs/_includes/search.njk index 4007def7c..8448870af 100644 --- a/docs/_includes/search.njk +++ b/docs/_includes/search.njk @@ -1,4 +1,4 @@ - +
{# Header #}
diff --git a/docs/docs/components/dialog.md b/docs/docs/components/dialog.md index 9a76105bd..b1f6ef8e5 100644 --- a/docs/docs/components/dialog.md +++ b/docs/docs/components/dialog.md @@ -27,19 +27,20 @@ keywords: modal ## Examples -### Dialog with Header +### Dialog without Header -Headers can be used to display titles and more. Use the `with-header` attribute to add a header to the dialog. +Headers are enabled by default. To render a dialog without a header, add the `without-header` attribute. ```html {.example} - + Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Close Open Dialog