Skip to content

Commit

Permalink
Fix: Navigation bar item's ripple
Browse files Browse the repository at this point in the history
  • Loading branch information
machiav3lli committed Nov 9, 2023
1 parent 440e553 commit 40d7e33
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.res.stringResource
Expand Down Expand Up @@ -166,6 +167,7 @@ fun RowScope.NavBarItem(
Row(
modifier = modifier
.padding(vertical = 8.dp)
.clip(MaterialTheme.shapes.extraLarge)
.clickable { onClick() }
.background(
background,
Expand Down

0 comments on commit 40d7e33

Please sign in to comment.