Skip to content

Custom styles for "tooltip-container" #165

@neznayer

Description

@neznayer

Describe the bug
Couldn't add custom styles to tooltip-container with tailwind. The styles is always reset to some default ones. In this particular case - border-radius is not 16px, but 3px even though I set rounded-[16px] after tooltip-container.

To Reproduce
Steps to reproduce the behavior:

{visible && (
                <div
                    ref={setTooltipRef}
                    {...getTooltipProps({
                        className:
                            'tooltip-container rounded-[16px]'
                    })}
                >
                    <div
                        {...getArrowProps({
                            className: 'tooltip-arrow',
                        })}
                    />
                    <h3 className='text-color-main'>{col}</h3>
                    <div className='font-normal text-left w-full h-full'>
                        {children}
                    </div>
                </div>
            )}

Expected behavior
tooltip-container to have styles I defined by Tailwind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions