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 {
3636 id ?: string
3737 activeWhenPress ?: boolean
3838 onClick ?: ( e : React . MouseEvent < HTMLElement > ) => void
39+ onMouseEnter ?: ( e : React . MouseEvent < HTMLElement > ) => void
40+ onMouseLeave ?: ( e : React . MouseEvent < HTMLElement > ) => void
3941}
4042
4143export function BtnTertiary ( {
@@ -50,6 +52,8 @@ export function BtnTertiary({
5052 id,
5153 activeWhenPress = false ,
5254 onClick,
55+ onMouseEnter,
56+ onMouseLeave,
5357} : propsTertiaryBtn ) : JSX . Element {
5458 const gray = vars ( 'colors-neutral-gray' )
5559 const blue = vars ( 'colors-main-deepSkyBlue' )
@@ -100,14 +104,16 @@ export function BtnTertiary({
100104 leftIcon = { lIcon }
101105 m = { m }
102106 onClick = { onClick }
107+ onMouseEnter = { onMouseEnter }
108+ onMouseLeave = { onMouseLeave }
103109 _hover = { {
104110 color : `${ blue } ` ,
105111 } }
106112 _focusVisible = { {
107113 boxShadow : `inset 0 0 0 2px ${ blue } , inset 0 0 0 4px ${ white } ` ,
108114 } }
109115 _focus = { {
110- color : activeWhenPress ? `${ blue } ` : 'inherit' ,
116+ color : activeWhenPress ? `${ blue } !important ` : 'inherit' ,
111117 boxShadow : 'none' ,
112118 } }
113119 _active = { {
You can’t perform that action at this time.
0 commit comments