@@ -31,12 +31,25 @@ $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+
46+ background : var-get ($theme , ' item-hover-background' );
47+ }
48+
49+ & :hover:focus-within {
50+ & ::before {
51+ box-shadow : none ;
52+ }
4053 }
4154 }
4255
@@ -54,8 +67,7 @@ $theme: $bootstrap;
5467 position : absolute ;
5568 width : 100% ;
5669 height : 100% ;
57- box-shadow : inset 0 0 0 rem (2px ) var-get ($theme , ' item-hover-color' );
58- border-radius : var-get ($theme , ' border-radius' );
70+ box-shadow : inset 0 0 0 rem (2px ) var-get ($theme , ' item-active-hover-color' );
5971 z-index : 2 ;
6072 }
6173 }
@@ -64,25 +76,47 @@ $theme: $bootstrap;
6476:host ([selected ]) {
6577 [part = ' tab-header' ] {
6678 position : relative ;
79+ background : var-get ($theme , ' item-background' );
6780
6881 & ::before {
6982 box-shadow :
7083 inset 0 var (--_border-size ) 0 0 var-get ($theme , ' border-color' ), /* Top */
7184 inset calc (var (--_border-size ) * -1 ) 0 0 0 var-get ($theme , ' border-color' ), /* Left */
72- inset var (--_border-size ) 0 0 0 var-get ($theme , ' border-color' ), /* Right */
85+ inset var (--_border-size ) 0 0 0 var-get ($theme , ' border-color' ); /* Right */
86+
87+ background : var-get ($theme , ' item-active-background' );
88+ border-start-start-radius : var-get ($theme , ' border-radius' );
89+ border-start-end-radius : var-get ($theme , ' border-radius' );
7390 }
7491
7592 & :hover {
7693 border-top-color : var-get ($theme , ' border-color' );
7794 border-inline-color : var-get ($theme , ' border-color' );
7895 border-bottom-color : var-get ($theme , ' item-background' );
96+ background : var-get ($theme , ' item-background' );
97+
98+ & ::before {
99+ background : var-get ($theme , ' item-active-hover-background' );
100+ }
79101 }
80102
81103 & :focus ,
82- & :focus-within
83- {
84- background : var-get ($theme , ' item-hover-background' );
85- z-index : 1 ;
104+ & :focus-within {
105+ border : none ;
106+ background : var-get ($theme , ' item-background' );
107+
108+ & ::after {
109+ border-radius : var-get ($theme , ' border-radius' ) var-get ($theme , ' border-radius' ) rem (4px ) rem (4px );
110+ }
111+ }
112+
113+ & :focus-within {
114+ & ::before {
115+ box-shadow : none ;
116+ border-bottom-left-radius : rem (4px );
117+ border-bottom-right-radius : rem (4px );
118+ background : var-get ($theme , ' item-active-hover-background' );
119+ }
86120 }
87121 }
88122}
0 commit comments