Open syt0r opened 1 year ago
Can you provide a reproducer/example without external libraries, to make it easier for us to run it?
Here: M3FilterChipTest.zip
Here's a simple reproducer:
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.FilterChip
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.window.singleWindowApplication
fun main() = singleWindowApplication {
App2()
}
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun App2() {
Box(Modifier.fillMaxSize()) {
FilterChip(selected = false, onClick = {}, label = { Text("Test") })
}
}
Workaround for the time being: remove the Chip's elevation by passing null
to elevation:
FilterChip(
elevation = null,
// ....
)
Describe the bug Text is not highlighted when you hover mouse over material3 version of FilterChip
Affected platforms Select one of the platforms below:
Versions
Screenshots![image](https://user-images.githubusercontent.com/7478653/224801932-b6925f5f-6437-4c76-877f-b141cefd39e8.png)
Additional context