Skip to content

Commit

Permalink
Fix Org bottom sheet checkbox colour (#256)
Browse files Browse the repository at this point in the history
Co-authored-by: Siddharth Agarwal <[email protected]>
  • Loading branch information
siddh1004 and Siddharth Agarwal authored Jun 17, 2024
1 parent 62c396a commit fa3728a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ fun BottomSheetShell(
if (showSectionDivider) {
HorizontalDivider(
modifier = Modifier.fillMaxWidth()
.padding(top = Spacing24, start = Spacing24, end = Spacing24),
.padding(top = Spacing24, start = Spacing24, end = Spacing24, bottom = Spacing8),
color = TextColor.OnDisabledSurface,
thickness = Border.Thin,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import androidx.compose.material.icons.filled.Check
import androidx.compose.material.icons.filled.ClearAll
import androidx.compose.material.icons.filled.KeyboardArrowDown
import androidx.compose.material.ripple.rememberRipple
import androidx.compose.material3.Checkbox
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
Expand Down Expand Up @@ -264,9 +263,10 @@ fun OrgUnitSelectorItem(
modifier = clickableModifier,
) {
if (orgTreeItem.canBeSelected) {
Checkbox(
val checkBoxData = CheckBoxData(uid = orgTreeItem.uid, enabled = true, checked = orgTreeItem.selected, textInput = null)
CheckBox(
modifier = Modifier.testTag("$ITEM_CHECK_TEST_TAG${orgTreeItem.label}"),
checked = orgTreeItem.selected,
checkBoxData = checkBoxData,
onCheckedChange = { isChecked ->
onItemSelected(orgTreeItem.uid, isChecked)
},
Expand Down

0 comments on commit fa3728a

Please sign in to comment.