Skip to content

Commit 68150a6

Browse files
authored
fix(theme): change the order of CSS rules of VPFlyout (#4225)
close #4224
1 parent 2d0c499 commit 68150a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/client/theme-default/components/VPFlyout.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,19 @@ function onBlur() {
7878
color: var(--vp-c-brand-2);
7979
}
8080
81+
.button[aria-expanded="false"] + .menu {
82+
opacity: 0;
83+
visibility: hidden;
84+
transform: translateY(0);
85+
}
86+
8187
.VPFlyout:hover .menu,
8288
.button[aria-expanded="true"] + .menu {
8389
opacity: 1;
8490
visibility: visible;
8591
transform: translateY(0);
8692
}
8793
88-
.button[aria-expanded="false"] + .menu {
89-
opacity: 0;
90-
visibility: hidden;
91-
transform: translateY(0);
92-
}
93-
9494
.button {
9595
display: flex;
9696
align-items: center;

0 commit comments

Comments
 (0)