Skip to content

Commit

Permalink
OudsButton text is now horizontally centered (​CMP-BTN 004)
Browse files Browse the repository at this point in the history
  • Loading branch information
florentmaitre committed Dec 31, 2024
1 parent 2fd0bbf commit 61cbf0e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)
}
}
Expand Down

0 comments on commit 61cbf0e

Please sign in to comment.