Skip to content

Commit

Permalink
Updated the Radio button click area for acessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
janewaitara committed Jul 21, 2023
1 parent 82eda7e commit 9e6dd8a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mumbicodes.projectie.presentation.allProjects.components

import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
Expand All @@ -8,6 +9,7 @@ import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.tooling.preview.Preview
import com.mumbicodes.projectie.presentation.theme.Space36dp
import com.mumbicodes.projectie.presentation.theme.Space4dp
Expand All @@ -21,7 +23,12 @@ fun DefaultRadioButton(
modifier: Modifier = Modifier,
) {
Row(
modifier = modifier.height(Space36dp),
modifier = modifier
.height(Space36dp)
.clip(MaterialTheme.shapes.small)
.clickable {
onSelect()
},
verticalAlignment = Alignment.CenterVertically,
) {

Expand Down

0 comments on commit 9e6dd8a

Please sign in to comment.