tooltip
tooltip copied to clipboard
Styling with Emotion's css prop
I tried styling the tooltip with Emotion's css prop:
const tooltipStyle = css`
.rc-tooltip {
background: yellow;
&.rc-tooltip-hidden {
display: none;
}
}
`;
function handle (node) {
return (
<Tooltip css={tooltipStyle} placement="top" overlay={<span>tooltip</span>}>
{ node }
</Tooltip>
);
}
But the styles aren't being applied. What could be the reason?