1
0
Fork 0

Fix header content CSS

Dieser Commit ist enthalten in:
Angus McLeod 2022-08-01 17:18:21 +01:00
Ursprung 0d7a220f1d
Commit 38307c565a
2 geänderte Dateien mit 18 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -1,7 +1,9 @@
body.custom-wizard .d-header,
.global-notice,
.create-topics-notice,
.top-notices-outlet,
.consent_banner {
display: none;
body.custom-wizard {
.d-header,
.global-notice,
.create-topics-notice,
.top-notices-outlet,
.consent_banner {
display: none;
}
}

Datei anzeigen

@ -66,6 +66,11 @@ acceptance("Wizard | Wizard", function (needs) {
assert.ok(query(".wizard-column"), true);
});
test("Applies the wizard body class", async function (assert) {
await visit("/w/wizard");
assert.ok($("body.custom-wizard").length);
});
test("Applies the body background color", async function (assert) {
await visit("/w/wizard");
assert.ok($("body")[0].style.background);
@ -95,4 +100,9 @@ acceptance("Wizard | Wizard", function (needs) {
assert.ok(exists(".wizard-step-footer .wizard-progress"), true);
assert.ok(exists(".wizard-step-footer .wizard-buttons"), true);
});
test("Removes the wizard body class when navigating away", async function (assert) {
await visit("/");
assert.strictEqual($("body.custom-wizard").length, 0);
});
});