how to do custom closeButton backgroundImage? #965
-
I'm trying to change default closeButton X mark for an svg (red circle with x mark too) by imported cross.svg <Joyride
steps={steps}
run={run}
continuous={false}
hideCloseButton={false}
showProgress={false}
showSkipButton={false}
styles={{
buttonClose: {
backgroundImage: `url(${Cross})`,
backgroundRepeat: "no-repeat",
backgroundSize: "cover",
width: 24,
height: 24,
},
// hide this button
buttonNext: {
display: "none",
},
tooltipContainer: {
textAlign: "left",
},
tooltip: {
background: "#fff",
borderRadius: 8,
color: "#000",
textAlign: "left",
padding: "1rem",
width: 418,
},
}}
/> |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hey @uyriq |
Beta Was this translation helpful? Give feedback.
-
thanks for asking about the sandbox link. |
Beta Was this translation helpful? Give feedback.
-
thanks for advise me react-floater, it works flawlessly ( snxtw/react-floater-example ). the one thing that i dont know how to set style for borderRadius 8px to round a bit rectangle popover? |
Beta Was this translation helpful? Give feedback.
Check this example: https://codesandbox.io/s/github/gilbarbara/react-floater/tree/main/demo?file=/src/examples/WithCustomStyles.tsx