File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
packages/fluent-ui/src/Radio Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,10 @@ const root = (theme: Theme): Style => ({
7
7
height : 20 ,
8
8
borderRadius : '50%' ,
9
9
position : 'relative' ,
10
- display : 'inline-flex' ,
11
- justifyContent : 'center' ,
12
- alignItems : 'center' ,
10
+ display : 'inline-block' ,
13
11
border : '2px solid' ,
14
12
cursor : 'pointer' ,
13
+ overflow : 'hidden' ,
15
14
transition : theme . transitions ! . radio ! ,
16
15
backgroundColor : theme . colors ! . white ! . default ,
17
16
// checked false
@@ -53,13 +52,16 @@ const circle = (theme: Theme): Style => ({
53
52
borderRadius : '50%' ,
54
53
transition : theme . transitions ! . radio ,
55
54
backgroundColor : theme . colors ! . black ! . default ,
56
- width : 0 ,
57
- height : 0 ,
55
+ position : 'absolute' ,
56
+ left : '50%' ,
57
+ top : '50%' ,
58
+ width : 12 ,
59
+ height : 12 ,
60
+ marginLeft : - 6 ,
61
+ marginTop : - 6 ,
58
62
opacity : 0
59
63
} )
60
64
const circleChecked : Style = {
61
- width : 12 ,
62
- height : 12 ,
63
65
opacity : 1
64
66
}
65
67
const circleDisabled = ( theme : Theme ) : Style => ( {
You can’t perform that action at this time.
0 commit comments