[PM-6702] Fix clickable text font weight

This commit is contained in:
André Bispo
2024-06-19 16:33:05 +01:00
parent fe9c7794ce
commit 2556217432
2 changed files with 10 additions and 4 deletions

View File

@@ -130,7 +130,9 @@ fun CheckEmailScreen(
mainText = stringResource(id = R.string.follow_the_instructions_in_the_email_sent_to_x_to_continue_creating_your_account, state.email),
highlightText = state.email,
highlightSpanStyle = SpanStyle(
color = MaterialTheme.colorScheme.onSurface
color = MaterialTheme.colorScheme.onSurface,
fontSize = MaterialTheme.typography.bodyMedium.fontSize,
fontWeight = FontWeight.Bold
)
)
Text(

View File

@@ -40,6 +40,7 @@ import androidx.compose.ui.state.ToggleableState
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.input.KeyboardType
import androidx.compose.ui.unit.dp
import androidx.core.net.toUri
@@ -272,7 +273,8 @@ private fun TermsAndPrivacyText(
addStyle(
style = SpanStyle(
color = MaterialTheme.colorScheme.primary,
fontSize = MaterialTheme.typography.bodyMedium.fontSize
fontSize = MaterialTheme.typography.bodyMedium.fontSize,
fontWeight = FontWeight.Bold
),
start = startIndexTerms,
end = endIndexTerms
@@ -280,7 +282,8 @@ private fun TermsAndPrivacyText(
addStyle(
style = SpanStyle(
color = MaterialTheme.colorScheme.primary,
fontSize = MaterialTheme.typography.bodyMedium.fontSize
fontSize = MaterialTheme.typography.bodyMedium.fontSize,
fontWeight = FontWeight.Bold
),
start = startIndexPrivacy,
end = endIndexPrivacy
@@ -351,7 +354,8 @@ private fun ReceiveMarketingEmailsSwitch(
addStyle(
style = SpanStyle(
color = MaterialTheme.colorScheme.primary,
fontSize = MaterialTheme.typography.bodyMedium.fontSize
fontSize = MaterialTheme.typography.bodyMedium.fontSize,
fontWeight = FontWeight.Bold
),
start = startIndexUnsubscribe,
end = endIndexUnsubscribe