Skip to content

Commit

Permalink
Correctly set BottomSheetItem text color
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Aug 19, 2024
1 parent 47fb137 commit 71fb235
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme
@Composable
fun BottomSheetItem(imageVector: ImageVector, @StringRes titleRes: Int, onClick: () -> Unit) {
Button(
colors = ButtonDefaults.textButtonColors(),
colors = ButtonDefaults.textButtonColors(contentColor = SwissTransferTheme.colors.primaryTextColor),
modifier = Modifier
.height(56.dp)
.fillMaxWidth(),
Expand All @@ -60,7 +60,6 @@ fun BottomSheetItem(imageVector: ImageVector, @StringRes titleRes: Int, onClick:
Spacer(modifier = Modifier.width(Margin.Large))
Text(
text = stringResource(id = titleRes),
color = SwissTransferTheme.colors.primaryTextColor,
style = SwissTransferTheme.typography.bodyRegular,
)
}
Expand Down

0 comments on commit 71fb235

Please sign in to comment.