Skip to content

Commit

Permalink
customizing accessibility text
Browse files Browse the repository at this point in the history
  • Loading branch information
AkYML committed Jun 14, 2023
1 parent ac4480a commit fc2385f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package co.yml.charts.common.model

import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import co.yml.charts.common.utils.ChartConstants

/**
Expand All @@ -16,6 +18,7 @@ import co.yml.charts.common.utils.ChartConstants
*/
data class AccessibilityConfig(
val chartDescription: String = ChartConstants.CHART_DESCRIPTION,
val descriptionTextSize: TextUnit = 14.sp,
val shouldHandleBackWhenTalkBackPopUpShown: Boolean = true,
val popUpTopRightButtonTitle: String = ChartConstants.POPUP_TOP_RIGHT_BUTTON_TITLE,
val popUpTopRightButtonDescription: String = ChartConstants.POPUP_TOP_RIGHT_BUTTON_DESCRIPTION,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp

/**
* LegendsConfig data class params used in config label in graph.
Expand All @@ -19,6 +21,7 @@ import androidx.compose.ui.unit.dp
* */
data class LegendsConfig(
val legendLabelList: List<LegendLabel>,
val textSize: TextUnit = 14.sp,
val gridColumnCount: Int = 1,
val gridPaddingHorizontal: Dp = 8.dp,
val gridPaddingVertical: Dp = 8.dp,
Expand Down

0 comments on commit fc2385f

Please sign in to comment.