Skip to content

Commit 118c36e

Browse files
committed
popover fixed
1 parent a0c904c commit 118c36e

File tree

3 files changed

+11
-26
lines changed

3 files changed

+11
-26
lines changed
Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
@use 'mixins' as *;
22

3-
@keyframes kol-popover-fade-in {
4-
from {
5-
opacity: 0;
6-
}
7-
8-
to {
9-
opacity: 1;
10-
}
11-
}
12-
133
@mixin kol-popover-button-styles {
144
.kol-popover-button {
155
&__popover {
@@ -24,8 +14,11 @@
2414
}
2515

2616
.kol-popover {
27-
&--visible {
28-
animation: 0.3s ease-in forwards kol-popover-fade-in;
29-
}
17+
opacity: 0;
18+
transition: 0.2s ease-out opacity;
19+
}
20+
21+
.kol-popover-button--open + .kol-popover {
22+
opacity: 1;
3023
}
3124
}

packages/components/src/components/popover-button/style.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
}
1616

1717
&--inline {
18+
display: inline-block;
19+
1820
.kol-button {
1921
min-width: 0;
2022
min-height: 1em;
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
@use '../@shared/mixins' as *;
22
@use '../@shared/global' as *;
3-
@use '../popover/style.scss' as *;
43
@use '../tooltip/style.scss' as *;
54
@use '../@shared/icon.mixin' as *;
5+
@use '../@shared/popover-button.mixin' as *;
66

77
@layer kol-component {
88
@include kol-icon-styles();
9+
@include kol-popover-button-styles;
10+
911
.kol-split-button {
1012
display: flex;
1113
position: relative;
@@ -21,17 +23,5 @@
2123
flex: 1 1 auto;
2224
text-align: left;
2325
}
24-
25-
.kol-popover {
26-
z-index: 1;
27-
28-
&__content {
29-
margin-top: to-rem(2);
30-
}
31-
32-
&__arrow {
33-
display: none;
34-
}
35-
}
3626
}
3727
}

0 commit comments

Comments
 (0)