Fixed
Status Update
Comments
so...@google.com <so...@google.com>
ma...@google.com <ma...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 4d6ec44c5181bc5f2de9dc5db2a82b418f990dab
Author: Max Alfonso-Ying <maxying@google.com>
Date: Wed Feb 01 22:06:41 2023
Add missing text field colors to M3
Bug: b/254284181 , b/264766350
Test: updated
Relnote: "Text field colors now allow customizing input field
and placeholder text colors based on focus and error state. The
`textColor` parameter has been renamed to `unfocusedTextColor`, and
`placeholderColor` has been renamed to `unfocusedPlaceholderColor`."
Relnote: "Text field colors now allow customizing the container
color for filled text fields based on error state with the new
`errorContainerColor` param."
Relnote: "Exposed dropdown menu text field colors have been
updated with parameters to support the new prefix and suffix API."
Change-Id: I9c8b4f070921d64f8a7a3ac74074c12d7773348b
M compose/material3/material3/api/public_plus_experimental_current.txt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/OutlinedTextFieldScreenshotTest.kt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/OutlinedTextFieldTest.kt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/TextFieldScreenshotTest.kt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/TextFieldTest.kt
M compose/material3/material3/src/androidMain/kotlin/androidx/compose/material3/ExposedDropdownMenu.kt
M compose/material3/material3/src/androidMain/kotlin/androidx/compose/material3/SearchBar.kt
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/OutlinedTextField.kt
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TextField.kt
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TextFieldDefaults.kt
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TextFieldImpl.kt
https://android-review.googlesource.com/2320572
Branch: androidx-main
commit 4d6ec44c5181bc5f2de9dc5db2a82b418f990dab
Author: Max Alfonso-Ying <maxying@google.com>
Date: Wed Feb 01 22:06:41 2023
Add missing text field colors to M3
Bug:
Test: updated
Relnote: "Text field colors now allow customizing input field
and placeholder text colors based on focus and error state. The
`textColor` parameter has been renamed to `unfocusedTextColor`, and
`placeholderColor` has been renamed to `unfocusedPlaceholderColor`."
Relnote: "Text field colors now allow customizing the container
color for filled text fields based on error state with the new
`errorContainerColor` param."
Relnote: "Exposed dropdown menu text field colors have been
updated with parameters to support the new prefix and suffix API."
Change-Id: I9c8b4f070921d64f8a7a3ac74074c12d7773348b
M compose/material3/material3/api/public_plus_experimental_current.txt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/OutlinedTextFieldScreenshotTest.kt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/OutlinedTextFieldTest.kt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/TextFieldScreenshotTest.kt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/TextFieldTest.kt
M compose/material3/material3/src/androidMain/kotlin/androidx/compose/material3/ExposedDropdownMenu.kt
M compose/material3/material3/src/androidMain/kotlin/androidx/compose/material3/SearchBar.kt
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/OutlinedTextField.kt
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TextField.kt
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TextFieldDefaults.kt
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TextFieldImpl.kt
ma...@google.com <ma...@google.com>
na...@google.com <na...@google.com> #3
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.material3:material3:1.1.0-alpha07
Description
- Jetpack Compose component used: OutlinedTextField / TextFieldColors
- Android Studio Build:
Android Studio Electric Eel | 2022.1.1 Canary 10
Build #AI-221.6008.13.2211.8963757, built on August 18, 2022
macOS 12.3
- Kotlin version: 1.6.21
- Devices/Android versions reproduced on: Pixel 6
- Keyboard (i.e. Gboard, Samsung, etc): Gboard
It doesn't appear to be possible to change the color of the text in a OutlinedTextField when focused vs unfocused.
`TextFieldDefaults.outlinedTextFieldColors` provides parameters for focusedBorderColor/unfocusedBorderColor and focusedLabelColor/unfocusedLabelColor. But there doesn't seem to be a way to change the color of the text value within a OutlinedTextField depending on focused/unfocused state.