From 2520688cf6a30b8c86df96bbdbb149ad9379f09c Mon Sep 17 00:00:00 2001 From: Tom Bishop Date: Wed, 7 Aug 2024 15:12:15 +0100 Subject: [PATCH 1/2] Update 02-modal.md When using the modal blade component, a close button only displays in the top right corner when using a heading. This commit makes a slight adjustment to the documentation to make this clearer. --- packages/support/docs/09-blade-components/02-modal.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/support/docs/09-blade-components/02-modal.md b/packages/support/docs/09-blade-components/02-modal.md index ae81ca59f1..862cb87a23 100644 --- a/packages/support/docs/09-blade-components/02-modal.md +++ b/packages/support/docs/09-blade-components/02-modal.md @@ -207,10 +207,13 @@ By default, when you press escape on a modal, it will close itself. If you wish ## Hiding the modal close button -By default, modals have a close button in the top right corner. You can remove the close button from the modal by using the `close-button` attribute: +By default, modals with a heading have a close button in the top right corner. You can remove the close button from the modal by using the `close-button` attribute: ```blade + + Modal heading + {{-- Modal content --}} ``` From 42ad8d2aced083a9df70ea7aa2b649f4a59d5691 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Thu, 8 Aug 2024 08:25:36 +0300 Subject: [PATCH 2/2] Update 02-modal.md --- packages/support/docs/09-blade-components/02-modal.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/support/docs/09-blade-components/02-modal.md b/packages/support/docs/09-blade-components/02-modal.md index 862cb87a23..0d573a4e3c 100644 --- a/packages/support/docs/09-blade-components/02-modal.md +++ b/packages/support/docs/09-blade-components/02-modal.md @@ -207,13 +207,14 @@ By default, when you press escape on a modal, it will close itself. If you wish ## Hiding the modal close button -By default, modals with a heading have a close button in the top right corner. You can remove the close button from the modal by using the `close-button` attribute: +By default, modals with a header have a close button in the top right corner. You can remove the close button from the modal by using the `close-button` attribute: ```blade Modal heading + {{-- Modal content --}} ```