Closed lionicex closed 1 year ago
Hey @lionicex
ItĀ“s a private repo but I have images
Please create a simple example in codesandbox and add the link to this issue
Read the comment below
So, buttonNext
isn't a valid styles property.
https://github.com/gilbarbara/react-joyride/blob/3e08384415a831b20ce21c8423b6c271ad419fbf/src/styles.js#L115C5-L120
You can set a styles
prop in the step you want to change it.
https://docs.react-joyride.com/step
@gilbarbara : color is applied in button tag but not in span tag. If I remove span tag I resolve this issue, but I can't. when I use styles I can add buttonNext and change background color for example, but cannot change just color prop.
You can use a custom tooltip component if you need to customize the UI beyond the available options. Or set a style in the span to color: inherit
The library can't override the host app styles...
š Bug Report
By changing the color of the buttonNext, it does not inherit in the span of the button. Therefore, it does not prioritize and does not reproduce color.
To Reproduce
Add this in Joyride component prop
And add this in your css
Expected behavior
The color of the button is inherited from the span and the color of the button text is changed.
Link to repl or repo (highly encouraged)
ItĀ“s a private repo but I have images
Joyride buttonNext style:
Joyride Span inside of buttonNext style:
You can see buttonNext without color configuration:
Joyride component props configuration:
Run
npx envinfo --system --binaries --npmPackages react-joyride
Paste the results here: