-
Notifications
You must be signed in to change notification settings - Fork 2
/
Button.js
42 lines (41 loc) · 963 Bytes
/
Button.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import styled from 'styled-components';
/**
* @component
* Basic unstyled button (also including several resets for leaky data.govt styles)
*
*/
export default styled.button`
border: none;
margin: 0;
padding: 0;
width: auto;
overflow: visible;
background-color: transparent;
cursor: pointer;
position: relative;
font: inherit;
display: inline;
color: ${(props) => props.theme.colors.black};
border-radius: 0;
line-height: 1.15;
font-size: ${(props) => props.theme.sizes[1]};
&:hover{
color: ${(props) => props.theme.colors.hover};
background-color: transparent;
opacity: 1;
}
&:active{
color: ${(props) => props.theme.colors.hover};
background-color: transparent;
}
&:visited{
color: ${(props) => props.theme.colors.hover};
background-color: transparent;
opacity: 1;
}
&:focus{
color: ${(props) => props.theme.colors.hover};
box-shadow: none;
border-radius: 0;
}
`;