Skip to content

Commit f0cd92d

Browse files
committed
fix: hover
1 parent 662deef commit f0cd92d

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

src/components/QueriesActivityBar/QueriesActivityBar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
transition: background-color 0.15s ease;
3131

3232
&:hover {
33-
background-color: var(--g-color-base-simple-hover);
33+
background-color: var(--g-color-base-float-hover);
3434
}
3535

3636
#{$b}_expanded & {
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
.tenant-tab-card {
22
border-radius: var(--g-border-radius-s);
33

4-
&_clickable {
4+
&__help-icon {
5+
color: var(--g-color-text-hint);
6+
}
7+
8+
&__card-container {
9+
padding: var(--g-spacing-4);
10+
11+
border: 0;
12+
border-radius: var(--g-border-radius-s);
13+
}
14+
15+
&__card-container_clickable {
516
cursor: pointer;
617

718
// Smooth hover transition
819
transition: background-color 0.15s ease;
920

1021
&:hover {
11-
background-color: var(--g-color-base-simple-hover);
22+
background-color: var(--g-color-base-float-hover);
1223
}
1324
}
1425

15-
&_active {
26+
&__card-container_active {
1627
cursor: default !important;
17-
// Active tabs should not have hover background change
18-
&.tenant-tab-card_clickable:hover {
28+
29+
&:hover {
1930
background-color: transparent;
2031
}
2132
}
22-
23-
&__help-icon {
24-
color: var(--g-color-text-hint);
25-
}
26-
27-
&__card-container {
28-
padding: var(--g-spacing-4);
29-
30-
border: 0;
31-
border-radius: var(--g-border-radius-s);
32-
}
3333
}

src/containers/Tenant/Diagnostics/TenantOverview/TabCard/TabCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ export function TabCard({
4747
}
4848

4949
return (
50-
<div className={b({clickable, active})}>
50+
<div className={b({active})}>
5151
<Card
52-
className={b('card-container', {active})}
52+
className={b('card-container', {active, clickable})}
5353
type="container"
5454
view={active ? 'outlined' : 'raised'}
5555
>

0 commit comments

Comments
 (0)