fix: Mobile Hero-Überschriften umbrechen
This commit is contained in:
1 parent
29f36009f0
commit
5951134fbe
2 files changed
+15
No files matched your search
@@ -312,6 +312,18 @@ if (wants('syntax')) {
|
||||
});
|
||||
}
|
||||
|
||||
if (wants('responsive')) {
|
||||
check('Hero-Titel können auf Mobilgeräten lange Wörter umbrechen', () => {
|
||||
const css = read('public/custom/site.css');
|
||||
const mobileHeroRule = css.match(
|
||||
/@media\s*\(max-width:\s*809\.98px\)\s*\{\s*\.hero-title\s*\{([^}]*)\}\s*\}/
|
||||
);
|
||||
assert.ok(mobileHeroRule, 'Mobile .hero-title-Regel fehlt');
|
||||
assert.match(mobileHeroRule[1], /hyphens:\s*auto;/);
|
||||
assert.match(mobileHeroRule[1], /overflow-wrap:\s*anywhere;/);
|
||||
});
|
||||
}
|
||||
|
||||
if (failures.length) {
|
||||
console.error(`\n${failures.length} Prüfung(en) fehlgeschlagen.`);
|
||||
process.exit(1);
|
||||
|
||||
Reference in new issue
Block a user