fix: add contentDescription to icon buttons for accessibility

This commit is contained in:
null 2026-06-18 02:46:10 -05:00
parent df961e8d94
commit 21df900bc7
3 changed files with 3 additions and 3 deletions

View File

@ -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"
)
}
},

View File

@ -386,7 +386,7 @@ private fun PhotoStep(
} else {
Icon(
Icons.Filled.Person,
contentDescription = null,
contentDescription = "Profile photo",
modifier = Modifier.size(64.dp),
tint = AuthMuted
)

View File

@ -201,7 +201,7 @@ fun EditProfileContent(
} else {
Icon(
Icons.Filled.Person,
contentDescription = null,
contentDescription = "Profile photo",
modifier = Modifier.size(56.dp),
tint = SettingsMuted
)