Skip to content

Commit

Permalink
fix(snackbar): apply the SparkTheme.shapes.small shape on snackbars (#…
Browse files Browse the repository at this point in the history
…515)

Co-authored-by: Pierre-Antoine Gonnord <pierre-antoine.gonnord@adevinta.com>
Co-authored-by: Marina Romanova <36896406+MarinaRomanova@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 10, 2023
1 parent ee6721f commit 8c050bf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.adevinta.spark.InternalSparkApi
import com.adevinta.spark.LocalLegacyStyle
import com.adevinta.spark.PreviewTheme
import com.adevinta.spark.SparkTheme
import com.adevinta.spark.components.buttons.BaseSparkButton
Expand Down Expand Up @@ -93,7 +94,7 @@ public fun SparkSnackbar(
modifier = modifier
.padding(16.dp)
.sparkUsageOverlay(),
shape = SparkTheme.shapes.extraSmall,
shape = if (LocalLegacyStyle.current) SparkTheme.shapes.extraSmall else SparkTheme.shapes.small,
actionOnNewLine = actionOnNewLine,
containerColor = colors.baseColor,
contentColor = contentColor,
Expand Down

0 comments on commit 8c050bf

Please sign in to comment.