Unable to properly style the close button #628
Closed
pedro-pedrosa
started this conversation in
General
Replies: 2 comments 3 replies
-
hey @pedro-pedrosa Did you try this:
You can also use a custom tooltip if the default layout doesn't work for you. |
Beta Was this translation helpful? Give feedback.
3 replies
-
anyway I went the hardcode way and just applied this css: .react-joyride__tooltip button {
width: auto;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not able to style the close button. In my application, I have a CSS rule
button { width: 100% }
that I cannot change. this causes the buttons in joyride to have full width which is not intended.By using the
styles
prop I can specifywidth: 'auto'
on all buttons except the close button. At first I thought it was because in the joyride source the custom styles are spread into the styles object before the default styles, and the default iswidth: 14px
. this is not ideal as it doesn't allow me to override a default style but it's besides the point of this issue. The real issue is that thewidth
prop of thebuttonClose
styles is applied to the SVG element instead of the button element, so I have absolutely no way of controlling the width on the button element itself.I cannot create a custom close button either apparently.
Any other ideas? thank you!
Beta Was this translation helpful? Give feedback.
All reactions