Skip to content

Commit

Permalink
fix(HeaderBlock): theme dark (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juli Ovechkina authored Oct 2, 2023
1 parent ed69224 commit e59a33f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/blocks/Header/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $backgroundWidth: 1440px;

&_theme_dark {
#{$block}__title,
#{$block}__description .yfm {
#{$block}__overtitle {
color: var(--g-color-text-light-primary);
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/blocks/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ export const HeaderBlock = (props: WithChildren<HeaderBlockFullProps>) => {
<div className={b('description')}>
<YFMWrapper
content={description}
modifiers={{constructor: true}}
modifiers={{
constructor: true,
constructorTheme: textTheme,
}}
/>
</div>
)}
Expand Down
8 changes: 4 additions & 4 deletions styles/yfm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
margin-bottom: $indentXXXS;
}
}
}

&_theme_dark {
p {
color: var(--g-color-text-light-primary);
&_theme_dark {
p {
color: var(--g-color-text-light-primary);
}
}
}

Expand Down

0 comments on commit e59a33f

Please sign in to comment.