misc (a11y) : mark MainActionButton icon as decorative
This commit is contained in:
parent
495fd4f359
commit
2ebc0d4482
1 changed files with 1 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue