Fixed
Status Update
Comments
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com>
dp...@phunware.com <dp...@phunware.com> #3
Thanks for the report!
ma...@google.com <ma...@google.com>
ap...@google.com <ap...@google.com> #4
The release notes documentation has been edited to clarify this change in behavior for line height.
To support non-standard text sizes, we encourage users to follow the Material design system and use a different style = LocalTextStyle.current.copy(lineHeight = TextUnit.Unspecified)
, or create a custom Typography
entirely.
pr...@google.com <pr...@google.com> #5
deleted
Description
Jetpack Compose version: 1.1.0-alpha07 Jetpack Compose component used: Material3
As described in the Material3 Guidelines, shadow elevation should be used to separate components from patterned or busy backgrounds.
The SearchBar component already supports tonal elevation, but if we need to use it on a busy background (like over a map view, for example), that's not enough to protect the component and indicate separation.
The
Surface
component already supports ashadowElevation
parameter and some other components that useSurface
also already have that parameter that they pass down to the underlyingSurface
, like theListItem
component.Can we please do the same for the SearchBar component? Simply adding a
shadowElevation
parameter and passing it to theshadowElevation
of theSurface
is enough to fix this. I copied the SearchBar component and tested the change and it worked fine.Thanks.