Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 7c01d75

Browse files
committed
explore antd
1 parent e43011d commit 7c01d75

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

components/Button/styles/index.js

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,30 @@
1-
import styled from 'styled-components'
1+
import styled, { injectGlobal } from 'styled-components'
22

33
import { Button } from 'antd'
44

5-
const MButton = styled(Button)`color: tomato;`
5+
const MButton = styled(Button)`
6+
color: tomato;
7+
&:hover {
8+
color: tomato;
9+
border-color: tomato;
10+
}
11+
&:focus {
12+
color: tomato;
13+
border-color: tomato;
14+
}
15+
&:active {
16+
color: tomato;
17+
border-color: tomato;
18+
}
19+
`
20+
21+
/* eslint-disable no-unused-expressions */
22+
// TODO: move to global
23+
injectGlobal`
24+
.ant-btn-clicked:after {
25+
border: 0 solid tomato;
26+
}
27+
`
28+
/* eslint-enable no-unused-expressions */
629

730
export default MButton

0 commit comments

Comments
 (0)