Skip to content

Commit

Permalink
use accent color for header by default (#7224)
Browse files Browse the repository at this point in the history
* use accent color for header by default

* update etalon for surveyjs/survey-creator#4728

---------

Co-authored-by: OlgaLarina <olga.larina.dev@gmail.com>
  • Loading branch information
OlgaLarina and OlgaLarina committed Oct 25, 2023
1 parent 9f21866 commit 9ae7d36
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/defaultV2-theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $foreground-light: var(--sjs-general-forecolor-light, var(--foreground-light, #9
$foreground-dim: var(--sjs-general-dim-forecolor, rgba(0, 0, 0, 0.91));
$foreground-dim-light: var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, 0.45));

$header-backcolor: var(--sjs-header-backcolor);
$header-backcolor: var(--sjs-header-backcolor, #{$primary});

$border: var(--sjs-border-default, var(--border, #d6d6d6));
$border-light: var(--sjs-border-light, var(--border-light, #eaeaea));
Expand Down
2 changes: 1 addition & 1 deletion src/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class Cover extends Base {
private updateHeaderClasses(): void {
this.headerClasses = new CssClassBuilder()
.append("sv-header")
.append("sv-header__without-background", (!this.backgroundColor || this.backgroundColor === "trasparent") && !this.backgroundImage)
.append("sv-header__without-background", (this.backgroundColor === "trasparent") && !this.backgroundImage)
.append("sv-header__overlap", this.overlapEnabled)
.toString();
}
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 9ae7d36

Please sign in to comment.