Skip to content

Commit

Permalink
fix(buttons): Fix Ripple Theme on Buttons (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonPolle authored Jan 27, 2023
1 parent 1c3531a commit 696abc2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ object VitaminButtons {
colors: ButtonColors = VitaminButtonsColors.primary(),
sizes: ButtonSizes = VitaminButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.brand,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminButtonImpl(
text = text,
Expand Down Expand Up @@ -85,7 +85,7 @@ object VitaminButtons {
colors: ButtonColors = VitaminButtonsColors.primaryReversed(),
sizes: ButtonSizes = VitaminButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.brandReversed,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminButtonImpl(
text = text,
Expand Down Expand Up @@ -124,7 +124,7 @@ object VitaminButtons {
colors: ButtonColors = VitaminButtonsColors.secondary(),
sizes: ButtonSizes = VitaminButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.primary(),
ripple: RippleTheme = VitaminTheme.ripples.primary,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminButtonImpl(
text = text,
Expand Down Expand Up @@ -163,7 +163,7 @@ object VitaminButtons {
colors: ButtonColors = VitaminButtonsColors.tertiary(),
sizes: ButtonSizes = VitaminButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.tertiary,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminButtonImpl(
text = text,
Expand Down Expand Up @@ -203,7 +203,7 @@ object VitaminButtons {
colors: ButtonColors = VitaminButtonsColors.ghost(),
sizes: ButtonSizes = VitaminButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.primaryReversed,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminButtonImpl(
text = text,
Expand Down Expand Up @@ -242,7 +242,7 @@ object VitaminButtons {
colors: ButtonColors = VitaminButtonsColors.ghostReversed(),
sizes: ButtonSizes = VitaminButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.primaryReversed,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminButtonImpl(
text = text,
Expand Down Expand Up @@ -281,7 +281,7 @@ object VitaminButtons {
colors: ButtonColors = VitaminButtonsColors.conversion(),
sizes: ButtonSizes = VitaminButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.accent,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminButtonImpl(
text = text,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object VitaminIconButtons {
colors: ButtonColors = VitaminButtonsColors.primary(),
sizes: IconButtonSizes = VitaminIconButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.brand,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminIconButtonImpl(
modifier = modifier,
Expand Down Expand Up @@ -78,7 +78,7 @@ object VitaminIconButtons {
colors: ButtonColors = VitaminButtonsColors.primaryReversed(),
sizes: IconButtonSizes = VitaminIconButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.brandReversed,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminIconButtonImpl(
modifier = modifier,
Expand Down Expand Up @@ -114,7 +114,7 @@ object VitaminIconButtons {
colors: ButtonColors = VitaminButtonsColors.secondary(),
sizes: IconButtonSizes = VitaminIconButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.primary(),
ripple: RippleTheme = VitaminTheme.ripples.primary,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminIconButtonImpl(
modifier = modifier,
Expand Down Expand Up @@ -150,7 +150,7 @@ object VitaminIconButtons {
colors: ButtonColors = VitaminButtonsColors.tertiary(),
sizes: IconButtonSizes = VitaminIconButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.tertiary,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminIconButtonImpl(
modifier = modifier,
Expand Down Expand Up @@ -187,7 +187,7 @@ object VitaminIconButtons {
colors: ButtonColors = VitaminButtonsColors.ghost(),
sizes: IconButtonSizes = VitaminIconButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.primaryReversed,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminIconButtonImpl(
modifier = modifier,
Expand Down Expand Up @@ -223,7 +223,7 @@ object VitaminIconButtons {
colors: ButtonColors = VitaminButtonsColors.ghostReversed(),
sizes: IconButtonSizes = VitaminIconButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.primaryReversed,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminIconButtonImpl(
modifier = modifier,
Expand Down Expand Up @@ -259,7 +259,7 @@ object VitaminIconButtons {
colors: ButtonColors = VitaminButtonsColors.conversion(),
sizes: IconButtonSizes = VitaminIconButtonsSizes.medium(),
borders: ButtonBorders = VitaminButtonBorders.none(),
ripple: RippleTheme = VitaminTheme.ripples.accent,
ripple: RippleTheme = LocalRippleTheme.current,
onClick: () -> Unit
) = VitaminIconButtonImpl(
modifier = modifier,
Expand Down

0 comments on commit 696abc2

Please sign in to comment.