Skip to content

Commit 296cf11

Browse files
committed
fix: z-indices
1 parent f0cd92d commit 296cf11

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

src/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.scss

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
--tab-border-compensation: 1px;
9898
--tab-adjusted-spacing: calc(var(--g-spacing-3) - var(--tab-border-width));
9999
--z-tab-base: 100;
100-
--z-tab-active: 102;
100+
--z-tab-active: 110;
101101
--g-border-radius-xxl: 12px;
102102

103103
// Fallback for browsers without :has() support
@@ -132,6 +132,22 @@
132132
border-bottom: var(--tab-border-width) solid var(--g-color-line-generic);
133133
background: var(--g-color-base-background);
134134

135+
&:nth-child(1) {
136+
z-index: calc(var(--z-tab-base) + 3);
137+
}
138+
139+
&:nth-child(2) {
140+
z-index: calc(var(--z-tab-base) + 2);
141+
}
142+
143+
&:nth-child(3) {
144+
z-index: calc(var(--z-tab-base) + 1);
145+
}
146+
147+
&:nth-child(4) {
148+
z-index: calc(var(--z-tab-base) + 0);
149+
}
150+
135151
// Reset edge padding for first/last elements
136152
&:first-child {
137153
margin-left: 0;
@@ -156,7 +172,7 @@
156172

157173
// Active state styling
158174
&__link-container_active {
159-
z-index: var(--z-tab-active);
175+
z-index: var(--z-tab-active) !important;
160176

161177
padding: 0;
162178

src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@use '../../../../styles/mixins.scss';
22

33
.tenant-overview {
4-
overflow: auto;
5-
64
height: 100%;
75
padding-bottom: 20px;
86

0 commit comments

Comments
 (0)