tooltip icon indicating copy to clipboard operation
tooltip copied to clipboard

Styling with Emotion's css prop

Open weiying-chen opened this issue 1 year ago • 0 comments

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?

weiying-chen avatar Dec 05 '23 12:12 weiying-chen