Skip to content

Commit e59a33f

Browse files
author
Juli Ovechkina
authored
fix(HeaderBlock): theme dark (#609)
1 parent ed69224 commit e59a33f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/blocks/Header/Header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $backgroundWidth: 1440px;
2525

2626
&_theme_dark {
2727
#{$block}__title,
28-
#{$block}__description .yfm {
28+
#{$block}__overtitle {
2929
color: var(--g-color-text-light-primary);
3030
}
3131
}

src/blocks/Header/Header.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ export const HeaderBlock = (props: WithChildren<HeaderBlockFullProps>) => {
133133
<div className={b('description')}>
134134
<YFMWrapper
135135
content={description}
136-
modifiers={{constructor: true}}
136+
modifiers={{
137+
constructor: true,
138+
constructorTheme: textTheme,
139+
}}
137140
/>
138141
</div>
139142
)}

styles/yfm.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
margin-bottom: $indentXXXS;
6161
}
6262
}
63-
}
6463

65-
&_theme_dark {
66-
p {
67-
color: var(--g-color-text-light-primary);
64+
&_theme_dark {
65+
p {
66+
color: var(--g-color-text-light-primary);
67+
}
6868
}
6969
}
7070

0 commit comments

Comments
 (0)