From 51d03d6fda77aa1b55190a918b6e9845004f1570 Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Tue, 26 Sep 2023 09:32:21 +0530 Subject: [PATCH] Use body large bold text style when icon card is selected --- .../hisp/dhis/mobile/ui/designsystem/component/InputMatrix.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputMatrix.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputMatrix.kt index 9c5f58259..41f63699f 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputMatrix.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputMatrix.kt @@ -19,6 +19,7 @@ import org.hisp.dhis.mobile.ui.designsystem.component.internal.IconCard import org.hisp.dhis.mobile.ui.designsystem.component.internal.IconCardData import org.hisp.dhis.mobile.ui.designsystem.component.internal.VerticalGrid import org.hisp.dhis.mobile.ui.designsystem.resource.provideDHIS2Icon +import org.hisp.dhis.mobile.ui.designsystem.theme.DHIS2SCustomTextStyles import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor import org.hisp.dhis.mobile.ui.designsystem.theme.TextColor @@ -170,4 +171,4 @@ private fun iconCardTextColor(enabled: Boolean) = @Composable private fun iconCardTextStyle(selected: Boolean) = - if (selected) MaterialTheme.typography.titleMedium else MaterialTheme.typography.bodyLarge + if (selected) DHIS2SCustomTextStyles.bodyLargeBold else MaterialTheme.typography.bodyLarge