1
1
import styled from 'styled-components' ;
2
2
3
3
export const StyledErrorButton = styled . button < {
4
- activeColour : string ;
5
- inactiveColour : string ;
4
+ $ activeColour : string ;
5
+ $ inactiveColour : string ;
6
6
fontFamily : string ;
7
7
fontSize : number ;
8
8
fontWeight : string ;
9
9
fontStyle : string ;
10
10
color : string ;
11
- enabled : boolean ;
12
- margin ?: string ;
11
+ $ enabled : boolean ;
12
+ $ margin ?: string ;
13
13
} > `
14
14
align-self: flex-end;
15
- background-color: ${ ( { inactiveColour, activeColour, enabled } ) => ( enabled ? activeColour : inactiveColour ) } ;
16
- border: 2px solid ${ ( { enabled, activeColour, inactiveColour} ) => ( enabled ? activeColour : inactiveColour ) } ;
15
+ background-color: ${ ( { $ inactiveColour, $ activeColour, $ enabled } ) => ( $ enabled ? $ activeColour : $ inactiveColour) } ;
16
+ border: 2px solid ${ ( { $ enabled, $ activeColour, $ inactiveColour} ) => ( $ enabled ? $ activeColour : $ inactiveColour) } ;
17
17
font-family: Arial;
18
18
font-size: 14px;
19
19
min-height: 30px;
@@ -23,12 +23,12 @@ export const StyledErrorButton = styled.button<{
23
23
font-style: ${ ( { fontStyle } ) => fontStyle } ;
24
24
color: ${ ( { color } ) => color } ;
25
25
&:hover {
26
- background-color: ${ ( { enabled, activeColour, inactiveColour} ) => ( enabled ? activeColour : inactiveColour ) } ;
26
+ background-color: ${ ( { $ enabled, $ activeColour, $ inactiveColour} ) => ( $ enabled ? $ activeColour : $ inactiveColour) } ;
27
27
color: ${ ( { color } ) => color } ;
28
- border: 2px solid ${ ( { enabled, inactiveColour, activeColour} ) => ( enabled ? activeColour : inactiveColour ) } ;
29
- outline: ${ ( { enabled, activeColour} ) => ( enabled ? activeColour : 'transparent' ) } solid 2px;
28
+ border: 2px solid ${ ( { $ enabled, $ inactiveColour, $ activeColour} ) => ( $ enabled ? $ activeColour : $ inactiveColour) } ;
29
+ outline: ${ ( { $ enabled, $ activeColour} ) => ( $ enabled ? $ activeColour : 'transparent' ) } solid 2px;
30
30
}
31
31
&:focus {
32
- outline: ${ ( props ) => ( props . enabled ? props . activeColour : 'transparent' ) } solid 2px;
32
+ outline: ${ ( props ) => ( props . $ enabled ? props . $ activeColour : 'transparent' ) } solid 2px;
33
33
}
34
34
` ;
0 commit comments