Skip to content

Commit

Permalink
fix(Radio): Fix display problems that may arise misplaced
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyao27 committed Sep 19, 2019
1 parent ce70c86 commit c9749a0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/fluent-ui/src/Radio/Radio.styled.ts
Expand Up @@ -7,11 +7,10 @@ const root = (theme: Theme): Style => ({
height: 20,
borderRadius: '50%',
position: 'relative',
display: 'inline-flex',
justifyContent: 'center',
alignItems: 'center',
display: 'inline-block',
border: '2px solid',
cursor: 'pointer',
overflow: 'hidden',
transition: theme.transitions!.radio!,
backgroundColor: theme.colors!.white!.default,
// checked false
Expand Down Expand Up @@ -53,13 +52,16 @@ const circle = (theme: Theme): Style => ({
borderRadius: '50%',
transition: theme.transitions!.radio,
backgroundColor: theme.colors!.black!.default,
width: 0,
height: 0,
position: 'absolute',
left: '50%',
top: '50%',
width: 12,
height: 12,
marginLeft: -6,
marginTop: -6,
opacity: 0
})
const circleChecked: Style = {
width: 12,
height: 12,
opacity: 1
}
const circleDisabled = (theme: Theme): Style => ({
Expand Down

0 comments on commit c9749a0

Please sign in to comment.