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) {
|
IconButton(onClick = viewModel::togglePasswordVisibility) {
|
||||||
Icon(
|
Icon(
|
||||||
if (state.isPasswordVisible) Icons.Filled.VisibilityOff else Icons.Filled.Visibility,
|
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 {
|
} else {
|
||||||
Icon(
|
Icon(
|
||||||
Icons.Filled.Person,
|
Icons.Filled.Person,
|
||||||
contentDescription = null,
|
contentDescription = "Profile photo",
|
||||||
modifier = Modifier.size(64.dp),
|
modifier = Modifier.size(64.dp),
|
||||||
tint = AuthMuted
|
tint = AuthMuted
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ fun EditProfileContent(
|
||||||
} else {
|
} else {
|
||||||
Icon(
|
Icon(
|
||||||
Icons.Filled.Person,
|
Icons.Filled.Person,
|
||||||
contentDescription = null,
|
contentDescription = "Profile photo",
|
||||||
modifier = Modifier.size(56.dp),
|
modifier = Modifier.size(56.dp),
|
||||||
tint = SettingsMuted
|
tint = SettingsMuted
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue