a11y: use different content description when the red dot is displayed

Closes #6395
This commit is contained in:
Benoit Marty 2026-04-23 16:41:32 +02:00 committed by Benoit Marty
parent 8c50c55a1d
commit 85f92929cd

View file

@ -237,6 +237,7 @@ private fun SpaceFilterButton(
else -> Unit else -> Unit
} }
} }
val isSelected = spaceFiltersState is SpaceFiltersState.Selected val isSelected = spaceFiltersState is SpaceFiltersState.Selected
IconButton( IconButton(
onClick = ::onClick, onClick = ::onClick,
@ -320,7 +321,15 @@ private fun AccountIcon(
Avatar( Avatar(
avatarData = avatarData, avatarData = avatarData,
avatarType = AvatarType.User, avatarType = AvatarType.User,
contentDescription = if (isCurrentAccount) stringResource(CommonStrings.common_settings) else null, contentDescription = if (isCurrentAccount) {
if (showAvatarIndicator) {
stringResource(CommonStrings.a11y_settings_with_required_action)
} else {
stringResource(CommonStrings.common_settings)
}
} else {
null
},
) )
if (showAvatarIndicator) { if (showAvatarIndicator) {
RedIndicatorAtom( RedIndicatorAtom(