|
61 | 61 | %tabs-header { |
62 | 62 | overflow: hidden; |
63 | 63 | flex: 0 0 auto; |
64 | | - background: var-get($theme, 'item-background'); |
65 | 64 | z-index: 1; |
66 | 65 |
|
67 | | - @if $bootstrap-theme { |
68 | | - position: relative; |
69 | | - |
70 | | - &::after { |
71 | | - content: ''; |
72 | | - position: absolute; |
73 | | - bottom: 0; |
74 | | - inset-inline-start: 0; |
75 | | - width: 100%; |
76 | | - height: rem(1px); |
77 | | - background: var-get($theme, 'border-color'); |
78 | | - z-index: 0; |
79 | | - } |
80 | | - } |
| 66 | + @if $bootstrap-theme { |
| 67 | + position: relative; |
| 68 | + background: var-get($theme, 'item-background'); |
| 69 | + |
| 70 | + &::after { |
| 71 | + content: ''; |
| 72 | + position: absolute; |
| 73 | + bottom: 0; |
| 74 | + inset-inline-start: 0; |
| 75 | + width: 100%; |
| 76 | + height: rem(1px); |
| 77 | + background: var-get($theme, 'border-color'); |
| 78 | + z-index: 0; |
| 79 | + } |
| 80 | + } |
81 | 81 | } |
82 | 82 |
|
83 | 83 | %tabs-header-content { |
|
204 | 204 | @if $not-bootstrap-theme { |
205 | 205 | transition: all .3s $tabs-animation-function; |
206 | 206 | border: rem(1px) solid var-get($theme, 'border-color'); |
| 207 | + border-radius: var-get($theme, 'border-radius'); |
207 | 208 |
|
208 | 209 | &:hover, |
209 | 210 | &:focus { |
|
240 | 241 | } |
241 | 242 |
|
242 | 243 | &:focus { |
243 | | - background: var-get($theme, 'item-active-background'); |
| 244 | + background: var-get($theme, 'item-hover-background'); |
244 | 245 | color: var-get($theme, 'item-hover-color'); |
245 | 246 | border-bottom-color: transparent; |
246 | 247 | } |
|
268 | 269 | %tabs-header-item--selected { |
269 | 270 | outline: 0; |
270 | 271 | color: var-get($theme, 'item-active-color'); |
| 272 | + background: var-get($theme, 'item-active-background'); |
271 | 273 |
|
272 | 274 | &:hover, |
273 | 275 | &:focus { |
274 | | - background: var-get($theme, 'item-active-background'); |
275 | | - 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'); |
276 | 278 |
|
277 | 279 | igx-icon { |
278 | | - color: var-get($theme, 'item-active-icon-color'); |
| 280 | + color: var-get($theme, 'item-active-hover-icon-color'); |
279 | 281 | } |
280 | 282 | } |
281 | 283 |
|
|
284 | 286 | } |
285 | 287 |
|
286 | 288 | @if $bootstrap-theme { |
287 | | - background: var-get($theme, 'item-active-background'); |
288 | 289 | position: relative; |
289 | 290 | box-shadow: inset 0 0 0 rem(1px) var-get($theme, 'border-color'); |
290 | 291 | z-index: 1; |
|
310 | 311 |
|
311 | 312 | &:hover { |
312 | 313 | 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 | + } |
313 | 324 | } |
314 | 325 | } |
315 | 326 |
|
|
318 | 329 | font-weight: 600; |
319 | 330 | } |
320 | 331 | } |
321 | | - |
322 | | - @if $indigo-theme { |
323 | | - &:hover, |
324 | | - &:focus-within { |
325 | | - background: var-get($theme, 'item-hover-background'); |
326 | | - } |
327 | | - } |
328 | 332 | } |
329 | 333 |
|
330 | 334 | %tabs-header-item:focus, |
331 | 335 | %tabs-header-item--selected:focus { |
332 | 336 | @if $bootstrap-theme { |
333 | 337 | border: none; |
334 | | - box-shadow: inset 0 0 0 rem(2px) var-get($theme, 'item-hover-color'); |
335 | | - border-radius: rem(4px); |
| 338 | + box-shadow: inset 0 0 0 rem(2px) var-get($theme, 'item-active-hover-color'); |
| 339 | + border-bottom-left-radius: rem(4px); |
| 340 | + border-bottom-right-radius: rem(4px); |
336 | 341 | z-index: 1; |
337 | 342 |
|
338 | 343 | &::after { |
|
0 commit comments