PM-26187: Add autofill help call-to-action (#5942)

This commit is contained in:
David Perez
2025-09-26 14:42:51 -05:00
committed by GitHub
parent 617be1fd95
commit eab2c17614
8 changed files with 158 additions and 47 deletions

View File

@@ -36,10 +36,10 @@ fun BitwardenActionCardSmall(
actionIcon: VectorPainter,
actionText: String,
callToActionText: String,
callToActionTextColor: Color = BitwardenTheme.colorScheme.text.primary,
colors: CardColors = bitwardenCardColors(),
onCardClicked: () -> Unit,
modifier: Modifier = Modifier,
callToActionTextColor: Color = BitwardenTheme.colorScheme.text.primary,
colors: CardColors = bitwardenCardColors(),
trailingContent: (@Composable BoxScope.() -> Unit)? = null,
) {
Card(
@@ -67,13 +67,13 @@ fun BitwardenActionCardSmall(
) {
Text(
text = actionText,
style = BitwardenTheme.typography.bodyLarge,
style = BitwardenTheme.typography.titleMedium,
color = BitwardenTheme.colorScheme.text.primary,
)
Spacer(modifier = Modifier.height(8.dp))
Text(
text = callToActionText,
style = BitwardenTheme.typography.labelLarge,
style = BitwardenTheme.typography.bodyMedium,
color = callToActionTextColor,
)
}

View File

@@ -1123,4 +1123,6 @@ Do you want to switch to this account?</string>
<string name="select_account">Select account</string>
<string name="import_restricted_unable_to_import_credit_cards">Import restricted, unable to import cards from this account.</string>
<string name="verify_your_master_password">Verify your master password</string>
<string name="having_trouble_with_autofill">Having trouble with autofill?</string>
<string name="access_help_and_troubleshooting_documentation_here">Access help and troubleshooting documentation here</string>
</resources>