react-circular-progressbar icon indicating copy to clipboard operation
react-circular-progressbar copied to clipboard

Set z-index / styles of svg container (above "root")?

Open thnk2wn opened this issue 4 years ago • 0 comments

🚀 Feature request

Problem description

I'd like to be able to set the z-index of root container element (the div above the svg).

Currently with this example the content in the middle needs a higher z-index:

image

I set the zIndex of the root element in the styles like so:

 <CircularProgressbarWithChildren
                    {...otherProps}
                    styles={{
                        root: {
                            zIndex: zIndex
                        }
                    }
                    } />

But that gets applied to the SVG and not the root container:

image

Setting the z-index in dev tools of the div containing the svg works but don't see a way to override that with the component?

Suggested solution (optional)

Add a style property for the container and allow styles like zIndex to be overridden there?

Or is there a way to accomplish this already?

thnk2wn avatar Dec 03 '21 17:12 thnk2wn