Skip to content

Commit

Permalink
feat(buttons): Disable ripple effect on RadioButton when onClick is n…
Browse files Browse the repository at this point in the history
…ull (#148)
  • Loading branch information
adrienmu committed May 22, 2023
1 parent e088aa3 commit fd3bdd3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ object VitaminRadioButtons {
disabledColor = if (selected) colors.disabledSelectedColor
else colors.disabledUnselectedColor
)
val indication = LocalIndication.current.takeIf { onClick != null }

Row(
modifier = modifier
.selectable(
selected = selected,
interactionSource = interactionSource,
indication = LocalIndication.current,
indication = indication,
enabled = enabled,
role = Role.RadioButton,
onClick = {
Expand Down

0 comments on commit fd3bdd3

Please sign in to comment.