diff --git a/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/CheckBoxLine.kt b/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/CheckBoxLine.kt index 7371e61..8ff062d 100644 --- a/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/CheckBoxLine.kt +++ b/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/CheckBoxLine.kt @@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.offset import androidx.compose.foundation.text.ClickableText import androidx.compose.material.Checkbox import androidx.compose.material.CheckboxDefaults +import androidx.compose.material.ripple.LocalRippleTheme import androidx.compose.material.ripple.rememberRipple import androidx.compose.runtime.* import androidx.compose.ui.Modifier @@ -18,6 +19,7 @@ import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.dp import com.fintecsystems.xs2awizard.components.XS2AWizardViewModel import com.fintecsystems.xs2awizard.components.mutateInteractionSource +import com.fintecsystems.xs2awizard.components.theme.NoRippleTheme import com.fintecsystems.xs2awizard.components.theme.XS2ATheme import com.fintecsystems.xs2awizard.form.CheckBoxLineData import com.fintecsystems.xs2awizard.helper.MarkupParser @@ -74,17 +76,19 @@ fun CheckBoxLine(formData: CheckBoxLineData, viewModel: XS2AWizardViewModel) { }, ) { - Checkbox( - checked = checkBoxValue, - onCheckedChange = ::onCheckedChange, - interactionSource = interactionSource, - enabled = enabled, - colors = CheckboxDefaults.colors( - checkedColor = XS2ATheme.CURRENT.tintColor, - uncheckedColor = XS2ATheme.CURRENT.unselectedColor, - checkmarkColor = XS2ATheme.CURRENT.onTintColor + CompositionLocalProvider(LocalRippleTheme provides NoRippleTheme) { + Checkbox( + checked = checkBoxValue, + onCheckedChange = ::onCheckedChange, + interactionSource = interactionSource, + enabled = enabled, + colors = CheckboxDefaults.colors( + checkedColor = XS2ATheme.CURRENT.tintColor, + uncheckedColor = XS2ATheme.CURRENT.unselectedColor, + checkmarkColor = XS2ATheme.CURRENT.onTintColor + ) ) - ) + } if (!formData.label.isNullOrEmpty()) { val annotatedString = MarkupParser.parseMarkupText(formData.label)