Status Update
Comments
ad...@gmail.com <ad...@gmail.com> #2
Seeing the same issue in ModalBottomSheet from material3-android -> 1.4.0-alpha05
.
gr...@google.com <gr...@google.com>
se...@google.com <se...@google.com> #4
This is due to new motionScheme property. Previously the bug was fixed by using tween animation and starting from 1.4 spring is used again.
ko...@google.com <ko...@google.com> #5
We can either use an "effects" motion, which is not bouncy and will not cause the animation values over or under 1 and -1.
But I recall we have taken care of this problem specifically for this this component at
A few questions for the reporter:
- Can you provide some code to replicate it.
- Did you make changes to the MotionScheme default values? Did you pick
standard
orexpressive
as a motion scheme in the MaterialTheme?
Thanks
Description
Versioning and Device Details
Jetpack Compose version: Compose BOM "2024.10.00" Jetpack Compose component used: ModalBottomSheet Android Studio Build: Build #AI-241.19072.14.2412.12360217, built on September 12, 2024 Kotlin version: 1.9.25
Device Model: Pixel 8 Pro and emulators Android Version: 15 TalkBack Version: TfPu_release_14_1-2024_03_14_2316_TB4D_0_0_3
Issue Description
It's ocurring from Material3 1.3.0
Expected behavior:
With talkback enabled. If the modal bottom sheet has a explicit button to hide it, I think the scrim should not take the focus in order to show the action to hide it. In this case it's redundant. Maybe should exist an option to focus on modal's scrim or not when accessibility service is enabled.
Actual behavior:
With talback enabled. When the user is navigating over the different elements, both the button of the modal and the scrim are exposing the same action: hide the modal.
Sample Code:https://github.com/adrianlazaro8/ModalScrimA11yFocusIssue
Steps to Reproduce or Code Sample to Reproduce:
Maybe should exist an option to focus on modal's scrim or not when accessibility service is enabled.