Skip to content

Commit 77122a3

Browse files
committed
feat(tabs): set up the newly added 'active' theme parameters
1 parent f26a4da commit 77122a3

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

projects/igniteui-angular/src/lib/core/styles/components/tabs/_tabs-theme.scss

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
}
242242

243243
&:focus {
244-
background: var-get($theme, 'item-active-background');
244+
background: var-get($theme, 'item-hover-background');
245245
color: var-get($theme, 'item-hover-color');
246246
border-bottom-color: transparent;
247247
}
@@ -269,14 +269,15 @@
269269
%tabs-header-item--selected {
270270
outline: 0;
271271
color: var-get($theme, 'item-active-color');
272+
background: var-get($theme, 'item-active-background');
272273

273274
&:hover,
274275
&:focus {
275-
background: var-get($theme, 'item-active-background');
276-
color: if($variant == 'fluent', var-get($theme, 'item-hover-color'), var-get($theme, 'item-active-color'));
276+
background: var-get($theme, 'item-active-hover-background');
277+
color: var-get($theme, 'item-active-hover-color');
277278

278279
igx-icon {
279-
color: var-get($theme, 'item-active-icon-color');
280+
color: var-get($theme, 'item-active-hover-icon-color');
280281
}
281282
}
282283

@@ -285,7 +286,6 @@
285286
}
286287

287288
@if $bootstrap-theme {
288-
background: var-get($theme, 'item-active-background');
289289
position: relative;
290290
box-shadow: inset 0 0 0 rem(1px) var-get($theme, 'border-color');
291291
z-index: 1;
@@ -311,6 +311,16 @@
311311

312312
&:hover {
313313
box-shadow: inset 0 0 0 rem(1px) var-get($theme, 'border-color');
314+
315+
&::before {
316+
background: linear-gradient(
317+
to right,
318+
var-get($theme, 'border-color') 1px,
319+
var-get($theme, 'item-active-hover-background') 1px,
320+
var-get($theme, 'item-active-hover-background') calc(100% - 1px),
321+
var-get($theme, 'border-color') calc(100% - 1px)
322+
);
323+
}
314324
}
315325
}
316326

@@ -319,21 +329,17 @@
319329
font-weight: 600;
320330
}
321331
}
322-
323-
@if $indigo-theme {
324-
&:hover,
325-
&:focus-within {
326-
background: var-get($theme, 'item-hover-background');
327-
}
328-
}
329332
}
330333

331334
%tabs-header-item:focus,
332335
%tabs-header-item--selected:focus {
333336
@if $bootstrap-theme {
334337
border: none;
335-
box-shadow: inset 0 0 0 rem(2px) var-get($theme, 'item-hover-color');
336-
border-radius: rem(4px);
338+
box-shadow: inset 0 0 0 rem(2px) var-get($theme, 'item-active-hover-color');
339+
border-top-left-radius: var-get($theme, 'border-radius');
340+
border-top-right-radius: var-get($theme, 'border-radius');
341+
border-bottom-left-radius: rem(4px);
342+
border-bottom-right-radius: rem(4px);
337343
z-index: 1;
338344

339345
&::after {

0 commit comments

Comments
 (0)