Skip to content

Commit b3b1f27

Browse files
committed
fixes native button text turning black
1 parent 8bbe710 commit b3b1f27

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/styles/block-design-system-blocks.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
color: var(--stk-heading-color);
1919
}
2020

21-
.stk-block a {
21+
:is(.stk-block-text__text, .stk-block-heading__text, .is-style-link) > a {
2222
color: var(--stk-link-color);
2323
&:hover {
2424
color: var(--stk-link-color-hover);

src/styles/editor-block-design-system.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ div.stk-block > :is(h1,h2,h3,h4,h5,h6) {
1414
#{ '--stk-accent-color' }: cssvar(accent-color-parent-hover);
1515
}
1616

17-
.stk--is-hovered > .stk-hover-parent .stk-block a,
18-
.stk-preview-state--parent-hover .is-selected > .stk-block a {
17+
.stk--is-hovered > .stk-hover-parent :is(.stk-block-text__text, .stk-block-heading__text, .is-style-link) > a,
18+
.stk-preview-state--parent-hover .is-selected > :is(.stk-block-text__text, .stk-block-heading__text, .is-style-link) > a {
1919
color: var(--stk-link-color-parent-hover);
2020
}
21-
.stk-preview-state--hover .is-selected > .stk-block a {
21+
.stk-preview-state--hover .is-selected > :is(.stk-block-text__text, .stk-block-heading__text, .is-style-link) > a {
2222
color: var(--stk-link-color-hover);
2323
}
2424

src/styles/editor-compat.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,4 @@
4646
margin-left: auto;
4747
margin-right: auto;
4848
}
49-
50-
.stk-block a {
51-
color: var(--stk-link-color);
52-
}
5349
}

0 commit comments

Comments
 (0)