MVP 1.0 (ohne Shop) #1

Merged
Lars merged 149 commits from develop into main 2026-11-20 21:58:42 +01:00
3 changed files with 7 additions and 1 deletions
Showing only changes of commit d4110b1d51 - Show all commits

No files matched your search

+4 -1
View File
@@ -101,7 +101,10 @@ public static function slotBuilder(string $name = 'widget'): Builder
->modalCancelActionLabel('Änderungen verwerfen')
->closeModalByClickingAway(false)
->closeModalByEscaping(false)
->modalCloseButton(false))
->modalCloseButton(false)
// Eigener Scrollbereich: Sonst wächst der Inhalt über das Fenster und der Dialogfuß ist bei schmalen
// Fenstern (Vorschau unter dem Formular) nicht erreichbar.
->extraModalWindowAttributes(['class' => 'luf-baustein-dialog']))
->deleteAction(fn ($action) => $action->label('Entfernen')->tooltip('Widget aus diesem Platz entfernen')->requiresConfirmation()->modalHeading('Widget entfernen?')->modalDescription('Das Widget wird aus dem Entwurf entfernt. Gespeicherte Revisionen bleiben erhalten.')->modalSubmitActionLabel('Entfernen'))
->columnSpanFull();
}
@@ -43,6 +43,8 @@
.vw p { margin: 0; }
.vw [x-cloak] { display: none !important; }
.vw-ausgeblendet { display: none !important; }
.luf-baustein-dialog { max-height: 100vh; max-height: 100dvh; }
.luf-baustein-dialog > .fi-modal-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.vw-seitenkopf { display: grid; gap: 0.75rem; margin-bottom: 0.5rem; }
.vw-seiten-hinweis { max-width: 60rem; }
.vw-cms-kontext { display: grid; gap: 0.5rem; margin: 0.5rem 0 1rem; }
+1
View File
@@ -144,6 +144,7 @@ public function test_configuring_a_block_names_it_and_its_place_and_returns_to_t
$this->assertFalse($action->isModalClosedByEscaping());
$this->assertFalse($action->isModalClosedByClickingAway());
$this->assertFalse($action->hasModalCloseButton(), 'Ohne Schließen-Kreuz: Verlassen nur über „Zur Seite“ oder „Änderungen verwerfen“.');
$this->assertStringContainsString('luf-baustein-dialog', (string) $action->getExtraModalWindowAttributeBag(), 'Eigener Scrollbereich, damit der Dialogfuß erreichbar bleibt.');
}
public function test_a_design_error_from_the_page_layout_opens_the_failing_section(): void