Skip to content

Commit 65cb869

Browse files
author
Sine Jespersen
committed
mixin hover
1 parent a2865a8 commit 65cb869

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/stories/Library/Arrows/arrows.scss

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,24 @@
4747
/* stylelint-disable plugin/stylelint-bem-namics */
4848
@mixin arrow($className) {
4949
// Hide arrow
50-
.#{$className} {
50+
.#{$className} > {
5151
svg {
5252
width: 35px;
5353
visibility: hidden;
5454
opacity: 0;
5555
margin-right: 20px;
5656
}
57-
58-
// Show arrow on hover
59-
&:hover svg {
60-
@include breakpoint-s {
61-
visibility: visible;
62-
opacity: 1;
63-
align-self: center;
64-
justify-self: end;
57+
}
58+
// Show arrow on hover
59+
.#{$className} {
60+
&:hover {
61+
svg {
62+
@include breakpoint-s {
63+
visibility: visible;
64+
opacity: 1;
65+
align-self: center;
66+
justify-self: end;
67+
}
6568
}
6669
}
6770
}

0 commit comments

Comments
 (0)