Skip to content

Commit

Permalink
fix: support themes in list inside Content sub-block (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
benax-se authored Oct 25, 2024
1 parent 4a376e9 commit ed3dbde
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export default {
control: {type: 'radio', labels: {undefined: 'default'}},
options: [undefined, 's', 'm', 'l', 'xl'],
},
theme: {
control: {type: 'radio', labels: {undefined: 'default'}},
options: [undefined, 'dark', 'light'],
},
},
} as Meta;

Expand Down
12 changes: 10 additions & 2 deletions src/sub-blocks/Content/Content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ $darkSecondary: var(--g-color-text-dark-secondary);
#{$block}__title *,
#{$block}__text .yfm,
#{$block}__text .yfm *,
#{$block}__list *,
#{$block}__list .yfm,
#{$block}__list .yfm *,
#{$block}__links a {
color: $lightPrimary;
}
Expand All @@ -145,7 +148,8 @@ $darkSecondary: var(--g-color-text-dark-secondary);
}
}

#{$block}__text {
#{$block}__text,
#{$block}__list {
.yfm a {
@include content-link($lightPrimary, $lightSecondary);
}
Expand All @@ -163,6 +167,9 @@ $darkSecondary: var(--g-color-text-dark-secondary);
#{$block}__title *,
#{$block}__text .yfm,
#{$block}__text .yfm *,
#{$block}__list *,
#{$block}__list .yfm,
#{$block}__list .yfm *,
#{$block}__links a {
color: $darkPrimary;
}
Expand All @@ -178,7 +185,8 @@ $darkSecondary: var(--g-color-text-dark-secondary);
}
}

#{$block}__text {
#{$block}__text,
#{$block}__list {
.yfm a {
@include content-link($darkPrimary, $darkSecondary);
}
Expand Down

0 comments on commit ed3dbde

Please sign in to comment.