Skip to content

Commit ed3dbde

Browse files
authored
fix: support themes in list inside Content sub-block (#1054)
1 parent 4a376e9 commit ed3dbde

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/sub-blocks/BackgroundCard/__stories__/BackgroundCard.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export default {
3333
control: {type: 'radio', labels: {undefined: 'default'}},
3434
options: [undefined, 's', 'm', 'l', 'xl'],
3535
},
36+
theme: {
37+
control: {type: 'radio', labels: {undefined: 'default'}},
38+
options: [undefined, 'dark', 'light'],
39+
},
3640
},
3741
} as Meta;
3842

src/sub-blocks/Content/Content.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ $darkSecondary: var(--g-color-text-dark-secondary);
130130
#{$block}__title *,
131131
#{$block}__text .yfm,
132132
#{$block}__text .yfm *,
133+
#{$block}__list *,
134+
#{$block}__list .yfm,
135+
#{$block}__list .yfm *,
133136
#{$block}__links a {
134137
color: $lightPrimary;
135138
}
@@ -145,7 +148,8 @@ $darkSecondary: var(--g-color-text-dark-secondary);
145148
}
146149
}
147150

148-
#{$block}__text {
151+
#{$block}__text,
152+
#{$block}__list {
149153
.yfm a {
150154
@include content-link($lightPrimary, $lightSecondary);
151155
}
@@ -163,6 +167,9 @@ $darkSecondary: var(--g-color-text-dark-secondary);
163167
#{$block}__title *,
164168
#{$block}__text .yfm,
165169
#{$block}__text .yfm *,
170+
#{$block}__list *,
171+
#{$block}__list .yfm,
172+
#{$block}__list .yfm *,
166173
#{$block}__links a {
167174
color: $darkPrimary;
168175
}
@@ -178,7 +185,8 @@ $darkSecondary: var(--g-color-text-dark-secondary);
178185
}
179186
}
180187

181-
#{$block}__text {
188+
#{$block}__text,
189+
#{$block}__list {
182190
.yfm a {
183191
@include content-link($darkPrimary, $darkSecondary);
184192
}

0 commit comments

Comments
 (0)