Skip to content

Commit ce69ebb

Browse files
committed
fix(markdown): ensure links inside bold text retain correct green color
- Remove color styling from `strong` so it only applies font weight, not color. - Restore color styling for headings only. - Remove unnecessary selectors and \!important overrides for link color. - This allows links within bold text to inherit the correct green color naturally, resolving the previous override issue.
1 parent ce8fb50 commit ce69ebb

1 file changed

Lines changed: 10 additions & 17 deletions

File tree

packages/ui-components/styles/markdown.css

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,18 @@ main {
4040
h4,
4141
h5,
4242
h6 {
43+
@apply font-semibold
44+
text-neutral-900
45+
dark:text-white;
46+
4347
&[id] a {
4448
@apply text-neutral-900
4549
dark:text-white;
4650
}
4751
}
4852

49-
h1,
50-
h2,
51-
h3,
52-
h4,
53-
h5,
54-
h6,
5553
strong {
56-
@apply font-semibold
57-
text-neutral-900
58-
dark:text-white;
54+
@apply font-semibold;
5955
}
6056

6157
code {
@@ -77,17 +73,14 @@ main {
7773

7874
/* link that isn't inside a heading */
7975
a:not(h1 > a):not(h2 > a):not(h3 > a):not(h4 > a):not(h5 > a):not(h6 > a),
80-
.anchor,
81-
a strong,
82-
strong a,
83-
p a {
76+
.anchor {
8477
@apply max-xs:font-semibold
85-
!text-green-600
86-
dark:!text-green-400;
78+
text-green-600
79+
dark:text-green-400;
8780

8881
&:hover {
89-
@apply !text-green-900
90-
dark:!text-green-300;
82+
@apply text-green-900
83+
dark:text-green-300;
9184
}
9285

9386
&[role='button'] {

0 commit comments

Comments
 (0)