Skip to content

Commit 424ef70

Browse files
committed
chore: move some styling styles to base styles instead of core styles
1 parent c4124c2 commit 424ef70

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/components/Tooltip/Tooltip.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ const Tooltip = ({
585585
className={classNames(
586586
'react-tooltip',
587587
coreStyles['tooltip'],
588+
styles['tooltip'],
588589
styles[variant],
589590
className,
590591
`react-tooltip__place-${actualPlacement}`,

src/components/Tooltip/core-styles.module.css

-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
.tooltip {
22
visibility: hidden;
3-
width: max-content;
43
position: absolute;
54
top: 0;
65
left: 0;
7-
padding: 8px 16px;
8-
border-radius: 3px;
9-
font-size: 90%;
106
pointer-events: none;
117
opacity: 0;
128
transition: opacity 0.3s ease-out;

src/components/Tooltip/styles.module.css

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
.tooltip {
2+
padding: 8px 16px;
3+
border-radius: 3px;
4+
font-size: 90%;
5+
width: max-content;
6+
}
7+
18
.arrow {
29
width: 8px;
310
height: 8px;

0 commit comments

Comments
 (0)