Skip to content

Commit

Permalink
fix: remove blue link color in hero description
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer authored and royschut committed Nov 6, 2024
1 parent 085e245 commit adf388c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports[`<CollapsibleText> > renders and matches snapshot 1`] = `
style="max-height: 60px;"
>
<span
class="_markdown_e219e2"
class="_markdown_e219e2 _inline_e219e2"
>
Test...
</span>
Expand Down
8 changes: 0 additions & 8 deletions packages/ui-react/src/components/Footer/Footer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
letter-spacing: 0.15px;
text-align: center;
text-shadow: var(--body-text-shadow);

a,
a:visited,
a:active,
a:hover {
color: currentColor;
text-decoration: underline;
}
}

.list {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`<Footer> > renders and matches snapshot 1`] = `
class="_footer_33bf66 _testFixMargin_33bf66"
>
<div
class="_markdown_e219e2"
class="_markdown_e219e2 _inline_e219e2"
>
Simple
</div>
Expand All @@ -23,12 +23,12 @@ exports[`<Footer> > renders and matches snapshot with two links 1`] = `
class="_list_33bf66"
>
<li
class="_markdown_e219e2"
class="_markdown_e219e2 _inline_e219e2"
>
Two links
</li>
<li
class="_markdown_e219e2"
class="_markdown_e219e2 _inline_e219e2"
>
<a
href="https://www.jwplayer.com/"
Expand All @@ -39,7 +39,7 @@ exports[`<Footer> > renders and matches snapshot with two links 1`] = `
</a>
</li>
<li
class="_markdown_e219e2"
class="_markdown_e219e2 _inline_e219e2"
>
<a
href="https://www.jwplayer.com/"
Expand All @@ -63,12 +63,12 @@ exports[`<Footer> > renders and matches snapshot without links 1`] = `
class="_list_33bf66"
>
<li
class="_markdown_e219e2"
class="_markdown_e219e2 _inline_e219e2"
>
Text one
</li>
<li
class="_markdown_e219e2"
class="_markdown_e219e2 _inline_e219e2"
>
Text two
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,20 @@
text-decoration: underline;
}

a:hover {
opacity: 0.8;
}

ul,
ol,
p {
margin: 1.2em 0;
}
}

.inline {
a,
a:visited {
color: currentColor;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ const MarkdownComponent: React.FC<Props> = ({ markdownString, className, tag = '
return DOMPurify.sanitize(dirtyHTMLString, { ADD_ATTR: ['target'] });
}, [inline, markdownString]);

return React.createElement(tag, { dangerouslySetInnerHTML: { __html: sanitizedHTMLString }, className: classNames(styles.markdown, className) });
return React.createElement(tag, {
dangerouslySetInnerHTML: { __html: sanitizedHTMLString },
className: classNames(styles.markdown, inline && styles.inline, className),
});
};

export default MarkdownComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`<TruncatedText> > renders and matches snapshot 1`] = `
style="max-height: calc(1.5em * 8); -webkit-line-clamp: 8;"
>
<div
class="_markdown_e219e2"
class="_markdown_e219e2 _inline_e219e2"
>
Test...
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports[`<VideoDetails> > renders and matches snapshot 1`] = `
style="max-height: calc(1.5em * 8); -webkit-line-clamp: 8;"
>
<div
class="_markdown_e219e2"
class="_markdown_e219e2 _inline_e219e2"
>
Video description
</div>
Expand Down

0 comments on commit adf388c

Please sign in to comment.