Skip to content

Commit adf388c

Browse files
ChristiaanScheermeijerroyschut
authored andcommitted
fix: remove blue link color in hero description
1 parent 085e245 commit adf388c

File tree

7 files changed

+24
-18
lines changed

7 files changed

+24
-18
lines changed

packages/ui-react/src/components/CollapsibleText/__snapshots__/CollapsibleText.test.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exports[`<CollapsibleText> > renders and matches snapshot 1`] = `
1111
style="max-height: 60px;"
1212
>
1313
<span
14-
class="_markdown_e219e2"
14+
class="_markdown_e219e2 _inline_e219e2"
1515
>
1616
Test...
1717
</span>

packages/ui-react/src/components/Footer/Footer.module.scss

-8
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
letter-spacing: 0.15px;
88
text-align: center;
99
text-shadow: var(--body-text-shadow);
10-
11-
a,
12-
a:visited,
13-
a:active,
14-
a:hover {
15-
color: currentColor;
16-
text-decoration: underline;
17-
}
1810
}
1911

2012
.list {

packages/ui-react/src/components/Footer/__snapshots__/Footer.test.tsx.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`<Footer> > renders and matches snapshot 1`] = `
66
class="_footer_33bf66 _testFixMargin_33bf66"
77
>
88
<div
9-
class="_markdown_e219e2"
9+
class="_markdown_e219e2 _inline_e219e2"
1010
>
1111
Simple
1212
</div>
@@ -23,12 +23,12 @@ exports[`<Footer> > renders and matches snapshot with two links 1`] = `
2323
class="_list_33bf66"
2424
>
2525
<li
26-
class="_markdown_e219e2"
26+
class="_markdown_e219e2 _inline_e219e2"
2727
>
2828
Two links
2929
</li>
3030
<li
31-
class="_markdown_e219e2"
31+
class="_markdown_e219e2 _inline_e219e2"
3232
>
3333
<a
3434
href="https://www.jwplayer.com/"
@@ -39,7 +39,7 @@ exports[`<Footer> > renders and matches snapshot with two links 1`] = `
3939
</a>
4040
</li>
4141
<li
42-
class="_markdown_e219e2"
42+
class="_markdown_e219e2 _inline_e219e2"
4343
>
4444
<a
4545
href="https://www.jwplayer.com/"
@@ -63,12 +63,12 @@ exports[`<Footer> > renders and matches snapshot without links 1`] = `
6363
class="_list_33bf66"
6464
>
6565
<li
66-
class="_markdown_e219e2"
66+
class="_markdown_e219e2 _inline_e219e2"
6767
>
6868
Text one
6969
</li>
7070
<li
71-
class="_markdown_e219e2"
71+
class="_markdown_e219e2 _inline_e219e2"
7272
>
7373
Text two
7474
</li>

packages/ui-react/src/components/MarkdownComponent/MarkdownComponent.module.scss

+11
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,20 @@
6464
text-decoration: underline;
6565
}
6666

67+
a:hover {
68+
opacity: 0.8;
69+
}
70+
6771
ul,
6872
ol,
6973
p {
7074
margin: 1.2em 0;
7175
}
7276
}
77+
78+
.inline {
79+
a,
80+
a:visited {
81+
color: currentColor;
82+
}
83+
}

packages/ui-react/src/components/MarkdownComponent/MarkdownComponent.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ const MarkdownComponent: React.FC<Props> = ({ markdownString, className, tag = '
3535
return DOMPurify.sanitize(dirtyHTMLString, { ADD_ATTR: ['target'] });
3636
}, [inline, markdownString]);
3737

38-
return React.createElement(tag, { dangerouslySetInnerHTML: { __html: sanitizedHTMLString }, className: classNames(styles.markdown, className) });
38+
return React.createElement(tag, {
39+
dangerouslySetInnerHTML: { __html: sanitizedHTMLString },
40+
className: classNames(styles.markdown, inline && styles.inline, className),
41+
});
3942
};
4043

4144
export default MarkdownComponent;

packages/ui-react/src/components/TruncatedText/__snapshots__/TruncatedText.test.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`<TruncatedText> > renders and matches snapshot 1`] = `
77
style="max-height: calc(1.5em * 8); -webkit-line-clamp: 8;"
88
>
99
<div
10-
class="_markdown_e219e2"
10+
class="_markdown_e219e2 _inline_e219e2"
1111
>
1212
Test...
1313
</div>

packages/ui-react/src/components/VideoDetails/__snapshots__/VideoDetails.test.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ exports[`<VideoDetails> > renders and matches snapshot 1`] = `
5050
style="max-height: calc(1.5em * 8); -webkit-line-clamp: 8;"
5151
>
5252
<div
53-
class="_markdown_e219e2"
53+
class="_markdown_e219e2 _inline_e219e2"
5454
>
5555
Video description
5656
</div>

0 commit comments

Comments
 (0)