mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Improve accessibility.
This commit is contained in:
+4
-1
@@ -61,11 +61,14 @@ fun SelectedRoom(
|
|||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
val actionRemove = stringResource(id = CommonStrings.action_remove)
|
val actionRemove = stringResource(id = CommonStrings.action_remove)
|
||||||
|
val a11yRoomName = stringResource(id = CommonStrings.common_room_name)
|
||||||
Box(
|
Box(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.width(AvatarSize.SelectedRoom.dp)
|
.width(AvatarSize.SelectedRoom.dp)
|
||||||
.clearAndSetSemantics {
|
.clearAndSetSemantics {
|
||||||
contentDescription = roomInfo.name ?: "#"
|
contentDescription = roomInfo.name
|
||||||
|
?: roomInfo.canonicalAlias?.value
|
||||||
|
?: a11yRoomName
|
||||||
// Note: this does not set the click effect to the whole Box
|
// Note: this does not set the click effect to the whole Box
|
||||||
// when talkback is not enabled
|
// when talkback is not enabled
|
||||||
onClick(
|
onClick(
|
||||||
|
|||||||
Reference in New Issue
Block a user