a11y: use different content description when the red dot is displayed
Closes #6395
This commit is contained in:
parent
0c333235f8
commit
9912d763d4
1 changed files with 10 additions and 1 deletions
|
|
@ -237,6 +237,7 @@ private fun SpaceFilterButton(
|
|||
else -> Unit
|
||||
}
|
||||
}
|
||||
|
||||
val isSelected = spaceFiltersState is SpaceFiltersState.Selected
|
||||
IconButton(
|
||||
onClick = ::onClick,
|
||||
|
|
@ -320,7 +321,15 @@ private fun AccountIcon(
|
|||
Avatar(
|
||||
avatarData = avatarData,
|
||||
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) {
|
||||
RedIndicatorAtom(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue