react-tooltip icon indicating copy to clipboard operation
react-tooltip copied to clipboard

assing props textColor or backgroudColor to the <ReactTooltip /> is not working

Open riteshbathwal opened this issue 5 years ago • 3 comments

Below is my code where I am using ReactTooltip. When trying to customise it by passing props textColor and backgroundColor , both are not appllied, instead default background-color of black and textColor of white is only getting applied. Please help.

<NavLink style={{textDecoration:'none'}} to={CONSTANTS.PREVIEW_CONFING_PATH} onClick={this.handlePreviewClick} > {/* <CustomTooltip title="Preview" aria-label="preview extraction configuration"> */} <CustomIconButton data-tip data-for="previewGroupId" disabledRipple={true} size={'small'}>

                                    <NPreviewIcon 
                                        className={[isPreviewDisabled ? 
                                        Styles.disabledPreview : ''].join(' ')} 
                                        fill= {isPreviewDisabled ? '#888' : '#333'} 
                                    />
                                </CustomIconButton>

                                <ReactTooltip id="previewGroupId"
                                    backgroundColor="yellow"
                                    textColor="white"
                                >
                                    <span>Click to preview</span>
                                </ReactTooltip>

                            {/* </CustomTooltip> */}

                        </NavLink>

riteshbathwal avatar May 06 '20 12:05 riteshbathwal

Still happening!

gabibianconi avatar Jun 07 '21 14:06 gabibianconi

any solution for this issue?

NisanAyash avatar Mar 02 '22 13:03 NisanAyash

Trying to find a solution for this

juliettecurran avatar Sep 12 '22 15:09 juliettecurran