Skip to content

Commit 62e3959

Browse files
DateBox: Placeholder alignment is not correct on iOS (T1256510) (#28925)
1 parent 44911dd commit 62e3959

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

packages/devextreme-scss/scss/widgets/fluent/dateBox/_index.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@
135135
}
136136
}
137137

138-
.dx-device-ios .dx-datebox.dx-texteditor-empty .dx-texteditor-input {
139-
min-height: $fluent-datebox-input-min-height;
140-
}
141-
142138
.dx-texteditor {
143139
&.dx-datebox-native {
144140
.dx-texteditor-input {

packages/devextreme-scss/scss/widgets/fluent/dateBox/_sizes.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
$fluent-datebox-overlay-item-margin: 16px !default;
66
$fluent-datebox-overlay-item-margin-adaptive: 18px !default;
77
$fluent-datebox-popup-content-margin: 0 34px !default;
8-
$fluent-datebox-input-min-height: 33px !default;

packages/devextreme-scss/scss/widgets/material/dateBox/_index.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,16 @@
143143
}
144144
}
145145

146-
.dx-device-ios .dx-datebox.dx-texteditor-empty .dx-texteditor-input {
147-
min-height: $material-datebox-input-min-height;
146+
.dx-device-ios .dx-datebox {
147+
&.dx-texteditor-empty {
148+
.dx-texteditor-input {
149+
height: $datebox-input-min-height-device-ios;
150+
}
151+
}
152+
153+
input[type="date"] {
154+
line-height: $datebox-input-line-height-device-ios;
155+
}
148156
}
149157

150158
.dx-texteditor {

packages/devextreme-scss/scss/widgets/material/dateBox/_sizes.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,13 @@
55
$material-datebox-overlay-item-margin: 16px !default;
66
$material-datebox-overlay-item-margin-adaptive: 18px !default;
77
$material-datebox-popup-content-margin: 0 34px !default;
8-
$material-datebox-input-min-height: 33px !default;
8+
$datebox-input-min-height-device-ios: $material-base-inline-widget-height !default;
9+
$datebox-input-line-height-device-ios: null !default;
10+
11+
@if $size == "default" {
12+
$datebox-input-line-height-device-ios: normal !default;
13+
}
14+
15+
@else if $size == "compact" {
16+
$datebox-input-line-height-device-ios: 1.1667 !default;
17+
}

0 commit comments

Comments
 (0)