elrumordelaluz / reactour

Tourist Guide into your React Components
https://react.tours
MIT License
3.83k stars 344 forks source link

It's unable to modify navigation styles #610

Closed dannicsitnikov closed 10 months ago

dannicsitnikov commented 10 months ago

Hi there! Im faced with an issue. At example below I passing a css properties to navigation but they are didn't applying. And console.log(base) didn' t log. Why the reason?

styles={{ navigation: (base) => { console.log(base) return { ...base, justifyContent: 'flex-end !important', } }, }}

elrumordelaluz commented 10 months ago

Hi @dannicsitnikov, thanks for open the Issue.

Mind creating a minimal reproduction in a sandbox in order to allow others to debug faster your use-case and try to find a solution as soon as possible?

Probably you are looking into controls styles key. Take a look into the custom styles example Here is an example based on your styles.

Thanks!

dannicsitnikov commented 10 months ago

@elrumordelaluz ah, so sorry. Yes, you're right. Thanks a lot!