From 61cbf0eeddf9069a748384d120a0514b9006ce38 Mon Sep 17 00:00:00 2001 From: Florent Maitre Date: Tue, 31 Dec 2024 17:01:53 +0100 Subject: [PATCH] =?UTF-8?q?OudsButton=20text=20is=20now=20horizontally=20c?= =?UTF-8?q?entered=20(=E2=80=8BCMP-BTN=20004)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/orange/ouds/core/component/button/OudsButton.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/orange/ouds/core/component/button/OudsButton.kt b/core/src/main/java/com/orange/ouds/core/component/button/OudsButton.kt index 1787876b..f5fc3b6e 100644 --- a/core/src/main/java/com/orange/ouds/core/component/button/OudsButton.kt +++ b/core/src/main/java/com/orange/ouds/core/component/button/OudsButton.kt @@ -57,6 +57,7 @@ import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.invisibleToUser import androidx.compose.ui.semantics.semantics import androidx.compose.ui.semantics.stateDescription +import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.tooling.preview.PreviewParameter import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp @@ -253,7 +254,8 @@ private fun OudsButton( Text( modifier = modifier, text = text, - style = OudsTypographyKeyToken.Label.Strong.Large.value + style = OudsTypographyKeyToken.Label.Strong.Large.value, + textAlign = TextAlign.Center ) } }