Skip to content

Commit 4f5f1c9

Browse files
strong-webkit-fix (#832)
Currently <strong> text elements rendering dark Safari in darkmode. Webkit treats color: initial on inline replaced/formatted elements differently than Chrome/Firefox. The most reliable fix is avoiding inherit entirely and just setting an explicit color directly Example [Transform](https://next.layerchart.com/docs/guides/transform#pointer-interactions) Fix has been tested for dark and light modes in Safari, Chrome, Firefox.
1 parent f7d9ec5 commit 4f5f1c9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/src/app.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
border-color: color-mix(in oklab, var(--color-surface-content) 20%, transparent);
3737
outline-color: color-mix(in oklab, var(--color-surface-content) 20%, transparent);
3838
}
39+
strong {
40+
color: currentColor !important; /* webkit fix for 'text-initial' */
41+
font-weight: 800 !important;
42+
}
3943
}
4044

4145
@layer utilities {

0 commit comments

Comments
 (0)