Ergänze das CMS-Widget Hinweiszeile mit optional aufklappbarer Kurzdarstellung
Neues Widget notice (ADR-59): vollständiger Text und Kurztext als formatierte Texte, drei Modi (Volltext, responsiv mit Zeilengrenze, immer mit Kurzdarstellung), Symbol, Schriftgrößen XS bis L, Fläche, Rahmen und Akzentlinie. Der Server liefert immer den vollständigen Text; notice.js klappt ein und steht beim ersten Hinweis inline, damit nichts nach dem Laden springt (CLS 0,000). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a12818b752
commit
9e2d64a4a9
35 files changed
+1141
-40
No files matched your search
@@ -109,7 +109,7 @@ public function test_the_stylesheet_formats_the_intro_like_the_prose_widget(): v
|
||||
$css = (string) file_get_contents(resource_path('css/widgets.css'));
|
||||
|
||||
foreach (["span[data-size='xlarge']", "span.color[data-color='gruen']", '.ta-center', 'blockquote', 'p {', 'h3,'] as $needle) {
|
||||
$this->assertStringContainsString(':is(.widget-prose, .widget-heading, .widget-cards) .prose '.$needle, $css, $needle);
|
||||
$this->assertStringContainsString(':is(.widget-prose, .widget-heading, .widget-cards, .widget-notice) .prose '.$needle, $css, $needle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user