Skip to content

Commit 42cd840

Browse files
authored
chore(app): improve customization bottom sheets content display (#967)
1 parent 42fe787 commit 42cd840

File tree

13 files changed

+44
-5
lines changed

13 files changed

+44
-5
lines changed

app/src/main/java/com/orange/ouds/app/ui/ChangeThemeSettingsDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private fun ChangeThemeSettingsDialogContent(themeState: ThemeState, onThemeSett
7474

7575
Row(
7676
modifier = Modifier
77-
.padding(all = OudsTheme.spaces.fixed.large)
77+
.padding(horizontal = OudsTheme.grids.margin, vertical = OudsTheme.spaces.fixed.large)
7878
.align(Alignment.End),
7979
horizontalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.extraSmall)
8080
) {

app/src/main/java/com/orange/ouds/app/ui/DialogContent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fun DialogContent(
4242
Text(
4343
text = title,
4444
color = OudsTheme.colorScheme.content.default,
45-
modifier = Modifier.padding(all = OudsTheme.spaces.fixed.large),
45+
modifier = Modifier.padding(horizontal = OudsTheme.grids.margin, vertical = OudsTheme.spaces.fixed.large),
4646
style = OudsTheme.typography.heading.medium
4747
)
4848
Column(modifier = Modifier.padding(contentPadding)) {

app/src/main/java/com/orange/ouds/app/ui/components/badge/BadgeDemoScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ private fun BadgeDemoBottomSheetContent(state: BadgeDemoState) {
108108
onSelectionChange = { status = statuses[it] }
109109
)
110110
CustomizationTextField(
111+
applyTopPadding = true,
111112
label = stringResource(R.string.app_components_badge_count_label),
112113
value = TextFieldValue(count.toString(), TextRange(count.toString().length)),
113114
onValueChange = { value ->

app/src/main/java/com/orange/ouds/app/ui/components/button/ButtonDemoScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ private fun ButtonDemoBottomSheetContent(state: ButtonDemoState) {
8888
onSelectionChange = { id -> layout = ButtonDemoState.Layout.entries[id] }
8989
)
9090
CustomizationTextField(
91+
applyTopPadding = true,
9192
label = stringResource(R.string.app_components_common_label_label),
9293
value = label,
9394
onValueChange = { value -> label = value },

app/src/main/java/com/orange/ouds/app/ui/components/chip/ChipDemoScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ fun ChipDemoBottomSheetContent(state: ChipDemoState) {
4848
onSelectionChange = { id -> layout = ChipDemoState.Layout.entries[id] }
4949
)
5050
CustomizationTextField(
51+
applyTopPadding = true,
5152
label = stringResource(R.string.app_components_common_label_label),
5253
value = label,
5354
onValueChange = { value -> label = value },

app/src/main/java/com/orange/ouds/app/ui/components/controlitem/ControlItemDemoScreen.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ private fun ControlItemErrorCustomization(state: ControlItemDemoState) {
135135
private fun ControlItemErrorMessageCustomization(state: ControlItemDemoState) {
136136
with(state) {
137137
CustomizationTextField(
138+
applyTopPadding = true,
138139
label = stringResource(R.string.app_components_common_errorMessage_label),
139140
value = errorMessage,
140141
onValueChange = { value -> errorMessage = value },
@@ -147,6 +148,7 @@ private fun ControlItemErrorMessageCustomization(state: ControlItemDemoState) {
147148
private fun ControlItemLabelCustomization(state: ControlItemDemoState) {
148149
with(state) {
149150
CustomizationTextField(
151+
applyTopPadding = true,
150152
label = stringResource(R.string.app_components_common_label_label),
151153
value = label,
152154
onValueChange = { value -> label = value }
@@ -158,6 +160,7 @@ private fun ControlItemLabelCustomization(state: ControlItemDemoState) {
158160
private fun ControlItemDescriptionCustomization(state: ControlItemDemoState) {
159161
with(state) {
160162
CustomizationTextField(
163+
applyTopPadding = true,
161164
label = stringResource(R.string.app_components_controlItem_description_label),
162165
value = description.orEmpty(),
163166
onValueChange = { value -> description = value }

app/src/main/java/com/orange/ouds/app/ui/components/link/LinkDemoScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ private fun LinkDemoBottomSheetContent(state: LinkDemoState) {
8080
onSelectionChange = { id -> layout = LinkDemoState.Layout.entries[id] }
8181
)
8282
CustomizationTextField(
83+
applyTopPadding = true,
8384
label = stringResource(R.string.app_components_common_label_label),
8485
value = label,
8586
onValueChange = { value -> label = value }

app/src/main/java/com/orange/ouds/app/ui/components/radiobutton/RadioButtonItemDemoScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ private fun RadioButtonItemDemoBottomSheetContent(state: RadioButtonItemDemoStat
6565
},
6666
controlItemCustomization(9) {
6767
CustomizationTextField(
68+
applyTopPadding = true,
6869
label = stringResource(R.string.app_components_radioButton_radioButtonItem_extraLabel_label),
6970
value = extraLabel.orEmpty(),
7071
onValueChange = { value -> extraLabel = value }

app/src/main/java/com/orange/ouds/app/ui/components/tag/InputTagDemoScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ private fun InputTagDemoBottomSheetContent(state: InputTagDemoState) {
4646
onCheckedChange = { enabled = it },
4747
)
4848
CustomizationTextField(
49+
applyTopPadding = true,
4950
label = stringResource(R.string.app_components_common_label_label),
5051
value = label,
5152
onValueChange = { value -> label = value }

app/src/main/java/com/orange/ouds/app/ui/components/tag/TagDemoScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ private fun TagDemoBottomSheetContent(state: TagDemoState) {
143143
onSelectionChange = { id -> size = OudsTagSize.entries[id] }
144144
)
145145
CustomizationTextField(
146+
applyTopPadding = true,
146147
label = stringResource(R.string.app_components_common_label_label),
147148
value = label,
148149
onValueChange = { value -> label = value }

0 commit comments

Comments
 (0)