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

Commit 77ecd8de authored by Pat Manning's avatar Pat Manning
Browse files

Hide DragHandle from A11Y focus for bottom sheets.

Fix: 375132312
Test: Manual. Using TalkBack
Flag: EXEMPT Bugfix.
Change-Id: I24d3abeb9d71827bdb066627a8466a0efa99f41c
parent eadefe1e
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.outlineVariant,
        shape = MaterialTheme.shapes.extraLarge,