Skip to content

Commit 2e4ad96

Browse files
committed
PR feedback
1 parent 768acfb commit 2e4ad96

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

feature/settings/src/commonMain/kotlin/com/tunjid/heron/settings/ui/SettingsItemRow.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import androidx.compose.animation.fadeOut
2424
import androidx.compose.animation.shrinkOut
2525
import androidx.compose.animation.slideInVertically
2626
import androidx.compose.animation.slideOutVertically
27-
import androidx.compose.foundation.clickable
2827
import androidx.compose.foundation.layout.Arrangement
2928
import androidx.compose.foundation.layout.Column
3029
import androidx.compose.foundation.layout.ColumnScope
@@ -120,7 +119,11 @@ fun ExpandableSettingsItemRow(
120119
.then(
121120
modifier
122121
.fillMaxWidth()
123-
.clickable { isExpanded = !isExpanded },
122+
.toggleable(
123+
value = isExpanded,
124+
onValueChange = { isExpanded = it },
125+
role = Role.Button,
126+
),
124127
),
125128
) {
126129
SettingsItemRow(

0 commit comments

Comments
 (0)