Skip to content

Commit

Permalink
PM-18480 Update BitwardenSwitch padding (#4757)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-livefront authored Feb 20, 2025
1 parent 9d9f9e3 commit 3fb7904
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ fun BitwardenSwitch(
cardStyle = cardStyle,
onClick = onCheckedChange?.let { { it(!isChecked) } },
clickEnabled = !readOnly && enabled,
paddingTop = 6.dp,
paddingTop = 12.dp,
paddingBottom = 0.dp,
)
.semantics(mergeDescendants = true) {
Expand Down Expand Up @@ -264,7 +264,7 @@ fun BitwardenSwitch(
Spacer(modifier = Modifier.width(width = 16.dp))
Switch(
modifier = Modifier
.defaultMinSize(minHeight = 48.dp)
.height(height = 32.dp)
.testTag(tag = "SwitchToggle"),
enabled = enabled,
checked = isChecked,
Expand All @@ -274,7 +274,7 @@ fun BitwardenSwitch(
}
supportingContent
?.let { content ->
Spacer(modifier = Modifier.height(height = 6.dp))
Spacer(modifier = Modifier.height(height = 12.dp))
BitwardenHorizontalDivider(
modifier = Modifier
.fillMaxWidth()
Expand All @@ -288,7 +288,7 @@ fun BitwardenSwitch(
content = content,
)
}
?: Spacer(modifier = Modifier.height(height = cardStyle?.let { 6.dp } ?: 0.dp))
?: Spacer(modifier = Modifier.height(height = cardStyle?.let { 12.dp } ?: 0.dp))
}
}

Expand Down

0 comments on commit 3fb7904

Please sign in to comment.