Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
recent:
androidx.compose.material3:material3:1.3.0
androidx.compose.material:material:1.8.0-alpha02
Why does material3 BottomSheetScaffold pass the modifier parameter to a child Surface element that only wraps the body content of the BottomSheetScaffold, instead of to the parent layout for the entire component?
This differs from the material BottomSheetScaffold behavior which passes the modifier to a Surface wraps the entire parent layout.
Resulted in a tricky migration from material to material3 for this component where we wrap BottomSheetScaffold inside the content body of a parent Scaffold which contains a bottom bar. But with the material3 version of BottomSheetScaffold, the padding from that parent Scaffold now can no longer be passed as a modifier directly to the child material3 BottomSheetScaffold