Merge pull request #5869 from element-hq/feature/bma/roomPreviewA11y

Add accessibility to the "sending" picto.
This commit is contained in:
Benoit Marty 2025-12-09 23:05:51 +01:00 committed by GitHub
commit a4c619c601
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -243,7 +243,7 @@ private fun NameAndTimestampRow(
Icon(
modifier = Modifier.size(16.dp),
imageVector = CompoundIcons.Time(),
contentDescription = null,
contentDescription = stringResource(CommonStrings.common_sending),
tint = ElementTheme.colors.iconTertiary,
)
}
@ -252,6 +252,7 @@ private fun NameAndTimestampRow(
Icon(
modifier = Modifier.size(16.dp),
imageVector = CompoundIcons.ErrorSolid(),
// The last message contains the error.
contentDescription = null,
tint = ElementTheme.colors.iconCriticalPrimary,
)