fix: add contentDescription to icon buttons for accessibility
This commit is contained in:
parent
df961e8d94
commit
21df900bc7
|
|
@ -143,7 +143,7 @@ fun SignUpScreen(
|
|||
IconButton(onClick = viewModel::togglePasswordVisibility) {
|
||||
Icon(
|
||||
if (state.isPasswordVisible) Icons.Filled.VisibilityOff else Icons.Filled.Visibility,
|
||||
contentDescription = null
|
||||
contentDescription = if (state.isPasswordVisible) "Hide password" else "Show password"
|
||||
)
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@ private fun PhotoStep(
|
|||
} else {
|
||||
Icon(
|
||||
Icons.Filled.Person,
|
||||
contentDescription = null,
|
||||
contentDescription = "Profile photo",
|
||||
modifier = Modifier.size(64.dp),
|
||||
tint = AuthMuted
|
||||
)
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ fun EditProfileContent(
|
|||
} else {
|
||||
Icon(
|
||||
Icons.Filled.Person,
|
||||
contentDescription = null,
|
||||
contentDescription = "Profile photo",
|
||||
modifier = Modifier.size(56.dp),
|
||||
tint = SettingsMuted
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue