@@ -12,46 +12,47 @@ $fd-icon-tab-bar-icon-circle-size-compact: 2rem !default;
12
12
$fd-icon-tab-bar-multi-click-button-size : 1.5rem !default ;
13
13
$fd-icon-tab-bar-tablist-border : var (--sapContent_HeaderShadow );
14
14
$fd-icon-tab-bar-filter-container-top-offset : 1.625rem !default ;
15
- $fd-icon-tab-bar-overflow-button-border-radius : 0.75 rem !default ;
16
- $fd-icon-tab-bar-overflow-button-focus-offset : 0.125 rem !default ;
15
+ $fd-icon-tab-bar-overflow-button-border-radius : var ( --fdIcon_Tab_Bar_Overflow_Button_Border_Radius ) !default ;
16
+ $fd-icon-tab-bar-overflow-button-focus-offset : var ( --fdIcon_Tab_Bar_Overflow_Button_Focus_Offset ) !default ;
17
17
$fd-icon-tab-bar-filter-container-top-offset-compact : 1.375rem !default ;
18
18
$fd-icon-tab-bar-dnd-separator-bar-horizontal-offset : -0.5rem !default ;
19
19
$fd-icon-tab-bar-dnd-separator-bar-vertical-offset : 0.125rem !default ;
20
20
$fd-icon-tab-bar-dnd-separator-circle-horizontal-offset : -0.7rem !default ;
21
21
$fd-icon-tab-bar-dnd-separator-circle-vertical-offset : -0.0625rem !default ;
22
22
$fd-icon-tab-bar-dnd-separator-circle-size : 0.5rem !default ;
23
+ $fd-icon-tab-bar-focus-offset : var (--fdIcon_Tab_Bar_Focus_Offset ) !default ;
23
24
24
25
$fd-icon-tab-bar-responsive-paddings : (
25
- ' sm' : (' padding' : 0 1rem ),
26
- ' md' : (' padding' : 0 2rem ),
27
- ' lg' : (' padding' : 0 2rem ),
28
- ' xl' : (' padding' : 0 3rem ),
26
+ ' sm' : (' padding' : 0 1rem ),
27
+ ' md' : (' padding' : 0 2rem ),
28
+ ' lg' : (' padding' : 0 2rem ),
29
+ ' xl' : (' padding' : 0 3rem ),
29
30
' xxl' : (' padding' : 0 3rem )
30
31
);
31
32
32
33
$fd-icon-tab-bar-semantic-values : (
33
- ' negative' : (
34
+ ' negative' : (
34
35
' icon' : ' \e1ec ' ,
35
36
' iconColor' : var (--sapNegativeElementColor ),
36
37
' color' : var (--fdIcon_Tab_Bar_Semantic_Color_Negative ),
37
38
' badgeColor' : var (--fdIcon_Tab_Bar_Semantic_Badge_Color_Negative ),
38
39
' backgroundColor' : var (--fdIcon_Tab_Bar_Semantic_Background_Color_Negative )
39
40
),
40
- ' positive' : (
41
+ ' positive' : (
41
42
' icon' : ' \e1c1 ' ,
42
43
' iconColor' : var (--sapPositiveElementColor ),
43
44
' color' : var (--fdIcon_Tab_Bar_Semantic_Color_Positive ),
44
45
' badgeColor' : var (--fdIcon_Tab_Bar_Semantic_Badge_Color_Positive ),
45
46
' backgroundColor' : var (--fdIcon_Tab_Bar_Semantic_Background_Color_Positive )
46
47
),
47
- ' critical' : (
48
+ ' critical' : (
48
49
' icon' : ' \e053 ' ,
49
50
' iconColor' : var (--sapCriticalElementColor ),
50
51
' color' : var (--fdIcon_Tab_Bar_Semantic_Color_Critical ),
51
52
' badgeColor' : var (--fdIcon_Tab_Bar_Semantic_Badge_Color_Critical ),
52
53
' backgroundColor' : var (--fdIcon_Tab_Bar_Semantic_Background_Color_Critical )
53
54
),
54
- ' informative' : (
55
+ ' informative' : (
55
56
' icon' : ' \e289 ' ,
56
57
' iconColor' : var (--sapInformativeElementColor ),
57
58
' color' : var (--fdIcon_Tab_Bar_Semantic_Color_Informative ),
@@ -137,13 +138,22 @@ $fd-icon-tab-bar-semantic-values: (
137
138
}
138
139
}
139
140
140
- @mixin fd-tabs-focus ($outlineColor : var (--sapContent_FocusColor ), $offset : false) {
141
- outline-color : $outlineColor ;
142
- outline-style : var (--sapContent_FocusStyle );
143
- outline-width : var (--sapContent_FocusWidth );
141
+ @mixin fd-tabs-focus ($outlineColor : var (--sapContent_FocusColor ), $offset : false, $placement : " after" ) {
142
+ & ::#{$placement } {
143
+ content : ' ' ;
144
+ position : absolute ;
145
+ top : 0 ;
146
+ left : 0 ;
147
+ right : 0 ;
148
+ bottom : 0 ;
149
+ display : block ;
150
+ border : var (--sapContent_FocusWidth ) var (--sapContent_FocusStyle ) $outlineColor ;
144
151
145
- @if $offset {
146
- outline-offset : 0.0625rem ;
152
+ @if $offset {
153
+ @include fd-set-equal-positions ($fd-icon-tab-bar-focus-offset );
154
+ }
155
+
156
+ @content ;
147
157
}
148
158
}
149
159
@@ -269,10 +279,6 @@ $fd-icon-tab-bar-semantic-values: (
269
279
min-height : 2.75rem ;
270
280
position : relative ;
271
281
overflow-x : hidden ;
272
-
273
- & --left-offset {
274
- @include fd-set-padding-left (3.5rem );
275
- }
276
282
}
277
283
278
284
& __panel {
@@ -292,6 +298,8 @@ $fd-icon-tab-bar-semantic-values: (
292
298
293
299
@include fd-focus () {
294
300
.#{$block } __tab-container {
301
+ position : relative ;
302
+
295
303
@include fd-tabs-focus ();
296
304
}
297
305
@@ -327,27 +335,6 @@ $fd-icon-tab-bar-semantic-values: (
327
335
}
328
336
}
329
337
330
- & .#{$block } __item--overflow {
331
- position : absolute ;
332
- top : 50% ;
333
- transform : translateY (-50% );
334
- margin : 0 ;
335
-
336
- & -left {
337
- @include fd-set-position-left (0 );
338
- }
339
-
340
- .#{$block } __popover {
341
- position : relative ;
342
-
343
- & -body {
344
- @include fd-set-margin-right (-0.25rem );
345
-
346
- margin-top : 0.375rem ;
347
- }
348
- }
349
- }
350
-
351
338
& --dnd-preview {
352
339
@include fd-flex-center () {
353
340
flex-direction : column ;
@@ -497,14 +484,34 @@ $fd-icon-tab-bar-semantic-values: (
497
484
}
498
485
}
499
486
487
+ @include fd-hover () {
488
+ .#{$block } __tag {
489
+ color : var (--fdIcon_Tab_Bar_Label_Hover_Color );
490
+ }
491
+ }
492
+
500
493
@include fd-focus () {
501
494
box-shadow : none ;
502
495
outline : none ;
503
496
504
- .#{$block } __tag ,
505
- .#{$block } __icon ,
497
+ .#{$block } __icon {
498
+ @include fd-tabs-focus (var (--sapContent_FocusColor ), true) {
499
+ border-radius : var (--fdIcon_Tab_Bar_Icon_Focus_Radius );
500
+
501
+ @include fd-set-equal-positions (var (--fdIcon_Tab_Bar_Icon_Focus_Offset ));
502
+ }
503
+ }
504
+
505
+ .#{$block } __tag {
506
+ @include fd-tabs-focus (var (--sapContent_FocusColor ), true) {
507
+ border-radius : var (--fdIcon_Tab_Bar_Text_Focus_Radius );
508
+ };
509
+ }
510
+
506
511
.#{$block } __container--filter {
507
- @include fd-tabs-focus ();
512
+ @include fd-tabs-focus (var (--sapContent_FocusColor ), true, " before" ) {
513
+ border-radius : var (--fdIcon_Tab_Bar_Text_Focus_Radius );
514
+ };
508
515
}
509
516
}
510
517
@@ -530,6 +537,11 @@ $fd-icon-tab-bar-semantic-values: (
530
537
531
538
& __tag {
532
539
@extend %fd-icon-tab-bar-text ;
540
+
541
+ position : relative ;
542
+ font-weight : var (--fdIcon_Tab_Bar_Label_Font_Weight );
543
+ color : var (--fdIcon_Tab_Bar_Label_Color );
544
+ font-size : var (--fdIcon_Tab_Bar_Label_Font_Size );
533
545
}
534
546
535
547
& __counter {
@@ -546,11 +558,14 @@ $fd-icon-tab-bar-semantic-values: (
546
558
547
559
@include fd-icon-selector () {
548
560
font-size : 1.25rem ;
549
- color : var (--sapContent_IconColor );
561
+ color : var (--fdIcon_Tab_Bar_Inactive_Tab_Icon_Color );
562
+
563
+ @include fd-inline-flex-center ();
550
564
}
551
565
566
+ position : relative ;
552
567
border-radius : 50% ;
553
- border : $fd-icon-tab-bar-border-thickness solid var (--fdIcon_Tab_Bar_Icon_Border_Color );
568
+ border : var ( --fdIcon_Tab_Bar_Icon_Border_Weight ) solid var (--fdIcon_Tab_Bar_Icon_Border_Color );
554
569
}
555
570
556
571
& __details {
@@ -573,8 +588,9 @@ $fd-icon-tab-bar-semantic-values: (
573
588
@include fd-ellipsis ();
574
589
575
590
line-height : 0.875rem ;
576
- font-size : var (--sapFontSmallSize );
577
- color : var (--sapContent_LabelColor );
591
+ font-weight : var (--fdIcon_Tab_Bar_Label_Font_Weight );
592
+ font-size : var (--fdIcon_Tab_Bar_Label_Font_Size );
593
+ color : var (--fdIcon_Tab_Bar_Label_Color );
578
594
}
579
595
580
596
& __separator {
@@ -668,6 +684,8 @@ $fd-icon-tab-bar-semantic-values: (
668
684
var (--sapButton_Hover_TextColor ),
669
685
var (--sapButton_Hover_TextColor )
670
686
);
687
+
688
+ box-shadow : var (--fdIcon_Tab_Bar_Overflow_Button_Hover_Box_Shadow );
671
689
}
672
690
673
691
@include fd-active () {
@@ -844,6 +862,7 @@ $fd-icon-tab-bar-semantic-values: (
844
862
}
845
863
846
864
height : $fd-icon-tab-bar-icon-separator-size ;
865
+ padding : 0 0.5rem ;
847
866
848
867
[class *= ' sap-icon' ] {
849
868
width : $fd-icon-tab-bar-icon-separator-size ;
@@ -1071,8 +1090,6 @@ $fd-icon-tab-bar-semantic-values: (
1071
1090
}
1072
1091
1073
1092
.#{$block } __label {
1074
- color : map_get ($set-params , ' color' );
1075
-
1076
1093
& ::before {
1077
1094
@extend %semantic-icon-base ;
1078
1095
@@ -1202,6 +1219,12 @@ $fd-icon-tab-bar-semantic-values: (
1202
1219
1203
1220
.#{$block } __item {
1204
1221
color : var (--sapShell_Navigation_TextColor );
1222
+
1223
+ & --overflow {
1224
+ .#{$block } __overflow {
1225
+ border-color : transparent ;
1226
+ }
1227
+ }
1205
1228
}
1206
1229
1207
1230
.#{$block } __tab {
@@ -1227,6 +1250,8 @@ $fd-icon-tab-bar-semantic-values: (
1227
1250
1228
1251
@include fd-focus () {
1229
1252
.#{$block } __tab-container {
1253
+ position : relative ;
1254
+
1230
1255
@include fd-tabs-focus (var (--sapShell_Navigation_TextColor ), true);
1231
1256
1232
1257
.#{$block } __tag {
@@ -1379,3 +1404,31 @@ $fd-icon-tab-bar-semantic-values: (
1379
1404
}
1380
1405
}
1381
1406
}
1407
+
1408
+ .#{$block } ,
1409
+ .#{$block } --filter ,
1410
+ .#{$block } --icon ,
1411
+ .#{$block } --icon-only ,
1412
+ .#{$block } --navigation ,
1413
+ .#{$block } --navigation-flat ,
1414
+ .#{$block } --process {
1415
+ .#{$block } __item {
1416
+ & --overflow {
1417
+ margin : 0 ;
1418
+
1419
+ & :last-of-type {
1420
+ @include fd-set-margin-left (auto );
1421
+ }
1422
+
1423
+ .#{$block } __popover {
1424
+ position : relative ;
1425
+
1426
+ & -body {
1427
+ @include fd-set-margin-right (-0.25rem );
1428
+
1429
+ margin-top : 0.375rem ;
1430
+ }
1431
+ }
1432
+ }
1433
+ }
1434
+ }
0 commit comments