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)
Attachment actions
Unintended behavior
View staffing
Description
Jetpack Compose component used: AppBar
Android Studio Build: #AI-222.4345.14.2221.9189903
Kotlin version: 1.7.10
Steps to Reproduce or Code Sample to Reproduce:
1. Try to apply containerColor to a MediumTopAppBar using e.g.
colors = TopAppBarDefaults.mediumTopAppBarColors(containerColor = MaterialTheme.colors.primary)
2. containerColor is only applied to the upper row of the MediumTopAppBar
3. Is this happening because appBarContainerColor is only set to the modifier of the upper row in TwoRowsTopAppBar, whereas it should be set on both?
With material3:1.0.0-alpha04 it is working as expected, and containerColor is applied to both rows of the MediumTopAppBar, which makes sense when looking at the implementation for alpha04, because both rows in the TwoRowsTopAppBar are wrapped in a Surface having appBarContainerColor as it's color.
It looks to me that this diff is causing what I'm experiencing: