File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ export interface propsTertiaryBtn {
36
36
id ?: string
37
37
activeWhenPress ?: boolean
38
38
onClick ?: ( e : React . MouseEvent < HTMLElement > ) => void
39
+ onMouseEnter ?: ( e : React . MouseEvent < HTMLElement > ) => void
40
+ onMouseLeave ?: ( e : React . MouseEvent < HTMLElement > ) => void
39
41
}
40
42
41
43
export function BtnTertiary ( {
@@ -50,6 +52,8 @@ export function BtnTertiary({
50
52
id,
51
53
activeWhenPress = false ,
52
54
onClick,
55
+ onMouseEnter,
56
+ onMouseLeave,
53
57
} : propsTertiaryBtn ) : JSX . Element {
54
58
const gray = vars ( 'colors-neutral-gray' )
55
59
const blue = vars ( 'colors-main-deepSkyBlue' )
@@ -100,14 +104,16 @@ export function BtnTertiary({
100
104
leftIcon = { lIcon }
101
105
m = { m }
102
106
onClick = { onClick }
107
+ onMouseEnter = { onMouseEnter }
108
+ onMouseLeave = { onMouseLeave }
103
109
_hover = { {
104
110
color : `${ blue } ` ,
105
111
} }
106
112
_focusVisible = { {
107
113
boxShadow : `inset 0 0 0 2px ${ blue } , inset 0 0 0 4px ${ white } ` ,
108
114
} }
109
115
_focus = { {
110
- color : activeWhenPress ? `${ blue } ` : 'inherit' ,
116
+ color : activeWhenPress ? `${ blue } !important ` : 'inherit' ,
111
117
boxShadow : 'none' ,
112
118
} }
113
119
_active = { {
You can’t perform that action at this time.
0 commit comments