Skip to content

Commit f58caad

Browse files
authored
chore(app): fix design version tag display using a big font size (a11y)
1 parent 03f0bb2 commit f58caad

File tree

1 file changed

+3
-1
lines changed
  • app/src/main/java/com/orange/ouds/app/ui/utilities/composable

1 file changed

+3
-1
lines changed

app/src/main/java/com/orange/ouds/app/ui/utilities/composable/Screen.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import androidx.compose.foundation.layout.ColumnScope
1818
import androidx.compose.foundation.layout.PaddingValues
1919
import androidx.compose.foundation.layout.Row
2020
import androidx.compose.foundation.layout.fillMaxSize
21+
import androidx.compose.foundation.layout.fillMaxWidth
2122
import androidx.compose.foundation.layout.padding
2223
import androidx.compose.material3.ExperimentalMaterial3Api
2324
import androidx.compose.material3.Text
@@ -82,8 +83,9 @@ fun DemoScreen(
8283
init = codeSnippet
8384
)
8485
if (version != null) {
85-
Row(modifier = Modifier.padding(horizontal = OudsTheme.grids.margin), verticalAlignment = Alignment.CenterVertically) {
86+
Row(modifier = Modifier.fillMaxWidth().padding(horizontal = OudsTheme.grids.margin), verticalAlignment = Alignment.CenterVertically) {
8687
Text(
88+
modifier = Modifier.weight(1f),
8789
text = stringResource(R.string.app_components_common_version_label),
8890
style = with(OudsTheme.typography.label.strong.large) { copy(lineHeightStyle = lineHeightStyle?.copy(alignment = LineHeightStyle.Alignment.Center)) },
8991
color = OudsTheme.colorScheme.content.default

0 commit comments

Comments
 (0)