mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
a11y: use different content description when the red dot is displayed
Closes #6395
This commit is contained in:
committed by
Benoit Marty
parent
0c333235f8
commit
9912d763d4
+10
-1
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user