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