mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
misc (a11y) : mark MainActionButton icon as decorative
This commit is contained in:
+1
-2
@@ -42,7 +42,6 @@ fun MainActionButton(
|
|||||||
onClick: () -> Unit,
|
onClick: () -> Unit,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
enabled: Boolean = true,
|
enabled: Boolean = true,
|
||||||
contentDescription: String = title,
|
|
||||||
) {
|
) {
|
||||||
val ripple = ripple(bounded = false)
|
val ripple = ripple(bounded = false)
|
||||||
val interactionSource = remember { MutableInteractionSource() }
|
val interactionSource = remember { MutableInteractionSource() }
|
||||||
@@ -58,8 +57,8 @@ fun MainActionButton(
|
|||||||
horizontalAlignment = Alignment.CenterHorizontally,
|
horizontalAlignment = Alignment.CenterHorizontally,
|
||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
|
contentDescription = null,
|
||||||
imageVector = imageVector,
|
imageVector = imageVector,
|
||||||
contentDescription = contentDescription,
|
|
||||||
tint = if (enabled) LocalContentColor.current else ElementTheme.colors.iconDisabled,
|
tint = if (enabled) LocalContentColor.current else ElementTheme.colors.iconDisabled,
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.height(14.dp))
|
Spacer(modifier = Modifier.height(14.dp))
|
||||||
|
|||||||
Reference in New Issue
Block a user