Füge Markensymbole und Material-Tags des Brand-Kits hinzu
CI Feature / test (push) Successful in 3m52s
CI Feature / test (push) Successful in 3m52s
Stufe 1 und 2 des Vorschlags in KIT_ERGAENZUNG_v2.1_kleingrafiken.md. - 16 Symbole inline (x-brand.symbol): Titel, ID und feste Größe werden beim Einbetten entfernt, aria-hidden, unbekannte Namen sind ein Fehler - Material-Tags als HTML/CSS (x-brand.tag) mit Zeichen und echtem Text, neue Tokens --lf-tag-*, Kontraste gemessen - MaterialTag ordnet nach Ausgabeklasse und Kennung der redaktionellen Art zu, nicht nach Beschriftung; unklare Fälle bleiben Text - Eingebaut in die öffentliche Premium-Karte für Medien - brand-rays/-underline und der Mitgliederbereich bleiben unverändert (siehe Dokument, Abschnitt 1a) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1d1f0ebb1f
commit
0022fd50cb
39 files changed
+489
-2
No files matched your search
@@ -188,7 +188,9 @@ public function test_media_card_is_public_only_as_part_of_a_public_program_and_n
|
||||
// Material: eigene Darstellung mit Materialsymbol.
|
||||
$this->assertStringContainsString('lf-pc lf-pc--material', $main);
|
||||
$this->assertStringContainsString('lf-pc__panel lf-pc__panel--material', $main);
|
||||
$this->assertStringContainsString('<p class="lf-pc__kind">Merkblatt</p>', $main);
|
||||
// Ausgabeklasse pdf: die Art steht als PDF-Tag, die Beschriftung bleibt die redaktionelle Art.
|
||||
$this->assertStringContainsString('brand-tag brand-tag--pdf', $main);
|
||||
$this->assertMatchesRegularExpression('#<span class="brand-tag__text">\s*Merkblatt\s*</span>#', $main);
|
||||
$this->assertStringContainsString('Ein Blatt für Eltern.', $main);
|
||||
// Vertraulich und nicht öffentlich genannt: öffentlich nicht sichtbar.
|
||||
$this->assertStringNotContainsString('Traineranleitung Abstand', $main, 'Traineranleitungen erscheinen nie öffentlich.');
|
||||
|
||||
@@ -84,6 +84,19 @@ public function test_a_released_website_film_shows_publicly_with_its_clip_and_wi
|
||||
$this->assertStringNotContainsString('originals/', $html);
|
||||
}
|
||||
|
||||
public function test_a_film_card_shows_its_kind_as_a_film_tag_with_text(): void
|
||||
{
|
||||
$teaser = $this->websiteFilm('Teaser Denkpause');
|
||||
$this->release($teaser);
|
||||
$this->publish('/teaser-tag', $teaser);
|
||||
|
||||
$html = $this->get('/teaser-tag')->assertOk()->getContent();
|
||||
|
||||
$this->assertStringContainsString('brand-tag brand-tag--film', $html);
|
||||
$this->assertMatchesRegularExpression('#<span class="brand-tag__text">\s*Film\s*</span>#', $html, 'Das Tag trägt echten Text.');
|
||||
$this->assertSame(1, substr_count($html, 'lf-pc__kind--tag'));
|
||||
}
|
||||
|
||||
public function test_an_unreleased_website_film_stays_out_of_the_public_page_but_shows_in_the_preview(): void
|
||||
{
|
||||
$teaser = $this->websiteFilm('Teaser Denkpause');
|
||||
|
||||
Reference in new issue
Block a user