File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled , { css } from "styled-components" ;
3- import {
4- borderBox ,
5- fadeIn ,
6- small as smallStyle ,
7- } from "../../styles/common-style" ;
3+ import { borderBox , small as smallStyle } from "../../styles/common-style" ;
84
95export interface TooltipBaseProps {
106 place ?: "left" | "right" | "top" | "bottom" ;
@@ -91,8 +87,10 @@ const Tip = styled.div<TooltipBaseProps>`
9187
9288const StyledTooltip = styled . span < TooltipBaseProps > `
9389 ${ borderBox }
90+ transition: opacity 200ms ease-in, visibility 200ms ease-in;
9491 ${ ( { place, theme, small } ) => css `
9592 visibility: hidden;
93+ opacity: 0%;
9694 position: absolute;
9795 z-index: 1;
9896 width: max-content;
@@ -145,7 +143,7 @@ const Wrapper = styled.div`
145143
146144 &:hover ${ StyledTooltip } {
147145 visibility: visible;
148- animation: ${ fadeIn } 200ms ease-in ;
146+ opacity: 100% ;
149147 }
150148` ;
151149
You can’t perform that action at this time.
0 commit comments