Skip to content

Commit 85b834e

Browse files
committed
Fix Clear button hover effect by giving the backgroundColor
1 parent 92dd160 commit 85b834e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

client/styles/components/_console.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,25 @@
8888
@include themify() {
8989
@extend %link;
9090
color: getThemifyVariable('secondary-text-color');
91-
&:hover {
92-
color: getThemifyVariable('heavy-text-color');
93-
}
91+
9492
}
9593
background: transparent;
9694
border: none;
9795
padding-right: #{math.div(10, $base-font-size)}rem;
9896
.preview-console--collapsed & {
9997
display: none;
10098
}
99+
transition: background-color 0.3s ease,
100+
color 0.3s ease,
101+
box-shadow 0.3s ease,
102+
transform 0.3s ease,
103+
border-color 0.3s ease;
104+
}
105+
.light .preview-console__clear:hover {
106+
background: #ed225d;
107+
color: white;
108+
border-radius: 2px;
109+
transform: scale(1.1) translateY(-2px);
101110
}
102111

103112
.preview-console__body {

0 commit comments

Comments
 (0)