Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a6ef1fc authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Hide DragHandle from A11Y focus for bottom sheets." into main

parents a3907fda 77ecd8de
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ import androidx.compose.ui.platform.LocalLayoutDirection
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.hideFromAccessibility
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.IntOffset
@@ -286,7 +287,10 @@ private fun DragHandle(dialog: Dialog) {
    Surface(
        modifier =
            Modifier.padding(top = 16.dp, bottom = 6.dp)
                .semantics { contentDescription = dragHandleContentDescription }
                .semantics {
                    contentDescription = dragHandleContentDescription
                    hideFromAccessibility()
                }
                .clickable { dialog.dismiss() },
        color = MaterialTheme.colorScheme.onSurfaceVariant,
        shape = MaterialTheme.shapes.extraLarge,