@@ -12,6 +12,7 @@ const { vars, v, styles } = cssVariables(
12
12
{
13
13
...transparentHoverTemplate ,
14
14
accentColor : ( theme ) => theme . color . background . table . header ,
15
+ accentHintColor : ( theme ) => 'transparent' ,
15
16
} ,
16
17
'tab'
17
18
)
@@ -40,7 +41,7 @@ const TabContainer = styled.button<TabContainerProps>`
40
41
text-align: center;
41
42
user-select: none;
42
43
border: none;
43
- border-bottom: 2px solid transparent ;
44
+ border-bottom: 2px solid ${ v . accentHintColor } ;
44
45
transition: background-color 0.3s ease, color 0.3s ease,
45
46
border-color 0.3s ease;
46
47
background: ${ v . backgroundColor } ;
@@ -61,6 +62,7 @@ export interface TabProps {
61
62
backgroundColor ?: string
62
63
hoverColor ?: string
63
64
accentColor ?: string
65
+ accentHintColor ?: string
64
66
}
65
67
66
68
export const Tab : PC < 'a' , TabProps > = forwardRefWithGenerics (
@@ -73,6 +75,7 @@ export const Tab: PC<'a', TabProps> = forwardRefWithGenerics(
73
75
disabled = false ,
74
76
hoverColor,
75
77
accentColor,
78
+ accentHintColor,
76
79
style,
77
80
as = 'a' ,
78
81
...rest
@@ -102,6 +105,7 @@ export const Tab: PC<'a', TabProps> = forwardRefWithGenerics(
102
105
computedHoverColor &&
103
106
readableColor ( computedHoverColor , solvedTheme ) ,
104
107
[ vars . accentColor ] : computedAccentColor ,
108
+ [ vars . accentHintColor ] : accentHintColor ,
105
109
...style ,
106
110
} }
107
111
{ ...rest }
0 commit comments