Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #950 from prezly/fix/dev-13061-highlighted-text-in…
Browse files Browse the repository at this point in the history
…-story-title-and-subtitle-uses-wrong

[DEV-13061] Properly style highlighted text in story title & subtitle
  • Loading branch information
e1himself authored Jul 8, 2024
2 parents a70f072 + 6db7259 commit bed35ea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/ContentRenderer/ContentRenderer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
}

mark {
background-color: color-mix(in srgb, var(--prezly-accent-color) 24%, transparent);
@include highlighted-text;
}

.prezly-slate-button-block {
Expand Down
4 changes: 4 additions & 0 deletions modules/Story/HeaderRenderer/HeaderRenderer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
color: $color-base-700;
}
/* stylelint-enable selector-class-pattern */

mark {
@include highlighted-text;
}
}
}
3 changes: 3 additions & 0 deletions styles/mixins/_highlighted-text.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@mixin highlighted-text {
background-color: color-mix(in srgb, var(--prezly-accent-color) 24%, transparent);
}
1 change: 1 addition & 0 deletions styles/mixins/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "accessibility";
@import "border-radius";
@import "container";
@import "highlighted-text";
@import "images";
@import "line-clamp";
@import "responsive";
Expand Down

0 comments on commit bed35ea

Please sign in to comment.