Skip to content

Commit 0e6e5a1

Browse files
committed
small styling fix in custom marker demo
1 parent 9300b04 commit 0e6e5a1

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docs/components/StyleXWhenDemo/Card.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ const styles = stylex.create({
4747
default: 'var(--ifm-navbar-background-color)',
4848
[stylex.when.ancestor(':hover', cardMarker)]: 'var(--ifm-link-color)',
4949
},
50-
color: 'white',
50+
color: {
51+
default: 'inherit',
52+
[stylex.when.ancestor(':hover', cardMarker)]: 'white',
53+
},
5154
transitionProperty: 'background-color',
5255
transitionDuration: '0.2s',
5356
transitionTimingFunction: 'ease-in-out',

0 commit comments

Comments
 (0)