Merge pull request #4996 from element-hq/feature/fga/a11y_main_action_button

misc (a11y) : mark MainActionButton icon as decorative
This commit is contained in:
ganfra 2025-07-08 13:12:04 +02:00 committed by GitHub
commit b535efd885
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,6 @@ fun MainActionButton(
onClick: () -> Unit,
modifier: Modifier = Modifier,
enabled: Boolean = true,
contentDescription: String = title,
) {
val ripple = ripple(bounded = false)
val interactionSource = remember { MutableInteractionSource() }
@ -58,8 +57,8 @@ fun MainActionButton(
horizontalAlignment = Alignment.CenterHorizontally,
) {
Icon(
contentDescription = null,
imageVector = imageVector,
contentDescription = contentDescription,
tint = if (enabled) LocalContentColor.current else ElementTheme.colors.iconDisabled,
)
Spacer(modifier = Modifier.height(14.dp))