diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-03-04 17:33:20 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-03-04 17:33:20 +0000 |
commit | d03ff78cd7dfae00ec3b9423dd5447827794cdb3 (patch) | |
tree | f9850e2b4cc258fb0bdd27bf8ef0ed225b68ed89 | |
parent | 93f0ae12e7922676c5010cdc5d10f3da59640c42 (diff) | |
parent | 674dbacb3d1403457bf3cba31a9f6fca93e5951d (diff) | |
download | support-androidx-compose-material3-release.tar.gz |
Merge "Merge cherrypicks of ['android-review.googlesource.com/2986771'] into androidx-compose-material3-release." into androidx-compose-material3-releaseandroidx-compose-material3-release
-rw-r--r-- | compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/Button.kt | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/Button.kt b/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/Button.kt index 3f19f2dcdc1..2b9e035866d 100644 --- a/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/Button.kt +++ b/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/Button.kt @@ -664,7 +664,7 @@ object ButtonDefaults { disabledContentColor = fromToken(FilledTonalButtonTokens.DisabledLabelTextColor) .copy(alpha = FilledTonalButtonTokens.DisabledLabelTextOpacity) ).also { - defaultElevatedButtonColorsCached = it + defaultFilledTonalButtonColorsCached = it } } @@ -728,12 +728,10 @@ object ButtonDefaults { */ @Composable fun textButtonColors( - containerColor: Color = Color.Transparent, - contentColor: Color = TextButtonTokens.LabelTextColor.value, - disabledContainerColor: Color = Color.Transparent, - disabledContentColor: Color = TextButtonTokens.DisabledLabelTextColor - .value - .copy(alpha = TextButtonTokens.DisabledLabelTextOpacity), + containerColor: Color = Color.Unspecified, + contentColor: Color = Color.Unspecified, + disabledContainerColor: Color = Color.Unspecified, + disabledContentColor: Color = Color.Unspecified, ): ButtonColors = MaterialTheme.colorScheme.defaultTextButtonColors.copy( containerColor = containerColor, contentColor = contentColor, |