@@ -31,12 +31,24 @@ $theme: $bootstrap;
3131}
3232
3333[part = ' tab-header' ] {
34+ border : none ;
35+
3436 & :hover {
37+ border : none ;
38+ background : var-get ($theme , ' item-background' );;
39+
3540 & ::before {
3641 box-shadow :
3742 inset 0 var (--_border-size ) 0 0 var-get ($theme , ' border-color--hover' ), /* Top */
3843 inset calc (var (--_border-size ) * -1 ) 0 0 0 var-get ($theme , ' border-color--hover' ), /* Left */
39- inset var (--_border-size ) 0 0 0 var-get ($theme , ' border-color--hover' ), /* Right */
44+ inset var (--_border-size ) 0 0 0 var-get ($theme , ' border-color--hover' ); /* Right */
45+ background : var-get ($theme , ' item-hover-background' );
46+ }
47+
48+ & :hover:focus-within {
49+ & ::before {
50+ box-shadow : none ;
51+ }
4052 }
4153 }
4254
@@ -55,7 +67,6 @@ $theme: $bootstrap;
5567 width : 100% ;
5668 height : 100% ;
5769 box-shadow : inset 0 0 0 rem (2px ) var-get ($theme , ' item-hover-color' );
58- border-radius : var-get ($theme , ' border-radius' );
5970 z-index : 2 ;
6071 }
6172 }
@@ -64,9 +75,9 @@ $theme: $bootstrap;
6475:host ([selected ]) {
6576 [part = ' tab-header' ] {
6677 position : relative ;
67- background : var-get ($theme , ' item-active-background' );
6878
6979 & ::before {
80+ background : var-get ($theme , ' item-active-background' );
7081 box-shadow :
7182 inset 0 var (--_border-size ) 0 0 var-get ($theme , ' border-color' ), /* Top */
7283 inset calc (var (--_border-size ) * -1 ) 0 0 0 var-get ($theme , ' border-color' ), /* Left */
@@ -77,12 +88,19 @@ $theme: $bootstrap;
7788 border-top-color : var-get ($theme , ' border-color' );
7889 border-inline-color : var-get ($theme , ' border-color' );
7990 border-bottom-color : var-get ($theme , ' item-background' );
91+ background : var-get ($theme , ' item-background' );
8092 }
8193
8294 & :focus ,
83- & :focus-within
84- {
95+ & :focus-within {
8596 background : var-get ($theme , ' item-active-background' );
97+ border : none ;
98+ }
99+
100+ & :focus-within {
101+ & ::before {
102+ box-shadow : none ;
103+ }
86104 }
87105 }
88106}
0 commit comments