Skip to content

Commit

Permalink
advance header wrong text alignment (#8411)
Browse files Browse the repository at this point in the history
* resolve #8407 Advanced header wrong text color.

* resolve #8400 Advance header wrong text alignment.

---------

Co-authored-by: OlgaLarina <[email protected]>
  • Loading branch information
OlgaLarina and OlgaLarina authored Jun 14, 2024
1 parent 697dcd9 commit 9cb2b14
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/defaultV2-theme/blocks/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}

.sv-header__content--static {
max-width: calcSize(88);
max-width: calcSize(90);
margin-left: auto;
margin-right: auto;
}
Expand Down
41 changes: 41 additions & 0 deletions visualRegressionTests/tests/defaultV2/advancedHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,45 @@ frameworks.forEach(framework => {
await takeElementScreenshot("survey-advanced-header-background-custom-set.png", Selector(".sd-root-modern"), t, comparer);
});
});

test("Check header background color modes", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
await initSurvey(framework, {
"description": "Building your own form management\nsystem has never been easier.",
"logoPosition": "right",
"pages": [
{
"name": "page1",
"elements": [
{
"type": "radiogroup",
"name": "question1",
"choices": [
"Item 1",
"Item 2",
"Item 3"
]
}
]
}
]
});

await ClientFunction(() => {
(<any>window).survey.applyTheme({
"cssVariables": {
"--sjs-header-backcolor": "transparent"
},
"header": {
"inheritWidthFrom": "survey"
},
"headerView": "advanced"
});
})();
await t.wait(500);
await resetFocusToBody();
await takeElementScreenshot("survey-advanced-header-text-alignment.png", Selector(".sd-root-modern"), t, comparer);
});
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9cb2b14

Please sign in to comment.