Adjust toggle components sizing
(cherry picked from commit a9cbd23fcdcbacbdd2ca5f6bbe0bc7161e6591e3)
This commit is contained in:
@@ -351,8 +351,8 @@ export function Checkbox() {
|
|||||||
t.atoms.border_contrast_high,
|
t.atoms.border_contrast_high,
|
||||||
{
|
{
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
height: 20,
|
height: 24,
|
||||||
width: 20,
|
width: 24,
|
||||||
},
|
},
|
||||||
baseStyles,
|
baseStyles,
|
||||||
hovered ? baseHoverStyles : {},
|
hovered ? baseHoverStyles : {},
|
||||||
@@ -383,9 +383,9 @@ export function Switch() {
|
|||||||
t.atoms.border_contrast_high,
|
t.atoms.border_contrast_high,
|
||||||
{
|
{
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
height: 20,
|
height: 24,
|
||||||
width: 32,
|
width: 36,
|
||||||
padding: 2,
|
padding: 3,
|
||||||
},
|
},
|
||||||
baseStyles,
|
baseStyles,
|
||||||
hovered ? baseHoverStyles : {},
|
hovered ? baseHoverStyles : {},
|
||||||
@@ -395,8 +395,8 @@ export function Switch() {
|
|||||||
style={[
|
style={[
|
||||||
a.rounded_full,
|
a.rounded_full,
|
||||||
{
|
{
|
||||||
height: 14,
|
height: 16,
|
||||||
width: 14,
|
width: 16,
|
||||||
},
|
},
|
||||||
selected
|
selected
|
||||||
? {
|
? {
|
||||||
@@ -436,8 +436,8 @@ export function Radio() {
|
|||||||
t.atoms.border_contrast_high,
|
t.atoms.border_contrast_high,
|
||||||
{
|
{
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
height: 20,
|
height: 24,
|
||||||
width: 20,
|
width: 24,
|
||||||
},
|
},
|
||||||
baseStyles,
|
baseStyles,
|
||||||
hovered ? baseHoverStyles : {},
|
hovered ? baseHoverStyles : {},
|
||||||
@@ -447,7 +447,7 @@ export function Radio() {
|
|||||||
style={[
|
style={[
|
||||||
a.absolute,
|
a.absolute,
|
||||||
a.rounded_full,
|
a.rounded_full,
|
||||||
{height: 12, width: 12},
|
{height: 16, width: 16},
|
||||||
selected
|
selected
|
||||||
? {
|
? {
|
||||||
backgroundColor: t.palette.primary_500,
|
backgroundColor: t.palette.primary_500,
|
||||||
|
|||||||
Reference in New Issue
Block a user