Skip to content

Commit

Permalink
fix(radio,checkbox): fix label padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Bien committed Dec 17, 2020
1 parent 5e7d106 commit a8d0622
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SwitchBase/SwitchBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export const SwitchBase = ({
{Boolean(label) && (
<View
style={[
styles.labelWrapper,
!disabled && isPressed
? theme.border.focusOutline
: { borderWidth: 2, borderColor: 'transparent' },
Expand Down Expand Up @@ -174,6 +175,9 @@ const styles = StyleSheet.create({
height: switchSize,
marginRight: 8,
},
labelWrapper: {
paddingHorizontal: 4,
},
label: {
fontSize: 16,
},
Expand Down

0 comments on commit a8d0622

Please sign in to comment.