PM-9901: Use sensitive text font for passwords (#3952)

This commit is contained in:
David Perez 2024-09-20 14:52:57 -05:00 committed by GitHub
parent 05d6c2f61e
commit f68b4df9f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,7 @@ import com.x8bit.bitwarden.R
import com.x8bit.bitwarden.ui.platform.base.util.tabNavigation
import com.x8bit.bitwarden.ui.platform.components.util.nonLetterColorVisualTransformation
import com.x8bit.bitwarden.ui.platform.components.util.rememberVectorPainter
import com.x8bit.bitwarden.ui.platform.theme.LocalNonMaterialTypography
/**
* Represents a Bitwarden-styled password field that hoists show/hide password state to the caller.
@ -77,7 +78,7 @@ fun BitwardenPasswordField(
modifier = modifier
.tabNavigation()
.focusRequester(focusRequester),
textStyle = MaterialTheme.typography.bodyLarge,
textStyle = LocalNonMaterialTypography.current.sensitiveInfoSmall,
label = { Text(text = label) },
value = value,
onValueChange = onValueChange,