|
241 | 241 | } |
242 | 242 |
|
243 | 243 | &:focus { |
244 | | - background: var-get($theme, 'item-active-background'); |
| 244 | + background: var-get($theme, 'item-hover-background'); |
245 | 245 | color: var-get($theme, 'item-hover-color'); |
246 | 246 | border-bottom-color: transparent; |
247 | 247 | } |
|
269 | 269 | %tabs-header-item--selected { |
270 | 270 | outline: 0; |
271 | 271 | color: var-get($theme, 'item-active-color'); |
| 272 | + background: var-get($theme, 'item-active-background'); |
272 | 273 |
|
273 | 274 | &:hover, |
274 | 275 | &: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'); |
277 | 278 |
|
278 | 279 | igx-icon { |
279 | | - color: var-get($theme, 'item-active-icon-color'); |
| 280 | + color: var-get($theme, 'item-active-hover-icon-color'); |
280 | 281 | } |
281 | 282 | } |
282 | 283 |
|
|
285 | 286 | } |
286 | 287 |
|
287 | 288 | @if $bootstrap-theme { |
288 | | - background: var-get($theme, 'item-active-background'); |
289 | 289 | position: relative; |
290 | 290 | box-shadow: inset 0 0 0 rem(1px) var-get($theme, 'border-color'); |
291 | 291 | z-index: 1; |
|
311 | 311 |
|
312 | 312 | &:hover { |
313 | 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 | + } |
314 | 324 | } |
315 | 325 | } |
316 | 326 |
|
|
319 | 329 | font-weight: 600; |
320 | 330 | } |
321 | 331 | } |
322 | | - |
323 | | - @if $indigo-theme { |
324 | | - &:hover, |
325 | | - &:focus-within { |
326 | | - background: var-get($theme, 'item-hover-background'); |
327 | | - } |
328 | | - } |
329 | 332 | } |
330 | 333 |
|
331 | 334 | %tabs-header-item:focus, |
332 | 335 | %tabs-header-item--selected:focus { |
333 | 336 | @if $bootstrap-theme { |
334 | 337 | 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); |
337 | 343 | z-index: 1; |
338 | 344 |
|
339 | 345 | &::after { |
|
0 commit comments