Skip to content

Commit

Permalink
DateBox: Placeholder alignment is not correct on iOS (T1256510) (#28926)
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeniyKiyashko authored Feb 6, 2025
1 parent 0001447 commit 9cb35af
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@
}
}

.dx-device-ios .dx-datebox.dx-texteditor-empty .dx-texteditor-input {
min-height: $fluent-datebox-input-min-height;
}

.dx-texteditor {
&.dx-datebox-native {
.dx-texteditor-input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
$fluent-datebox-overlay-item-margin: 16px !default;
$fluent-datebox-overlay-item-margin-adaptive: 18px !default;
$fluent-datebox-popup-content-margin: 0 34px !default;
$fluent-datebox-input-min-height: 33px !default;
12 changes: 10 additions & 2 deletions packages/devextreme-scss/scss/widgets/material/dateBox/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,16 @@
}
}

.dx-device-ios .dx-datebox.dx-texteditor-empty .dx-texteditor-input {
min-height: $material-datebox-input-min-height;
.dx-device-ios .dx-datebox {
&.dx-texteditor-empty {
.dx-texteditor-input {
height: $datebox-input-min-height-device-ios;
}
}

input[type="date"] {
line-height: $datebox-input-line-height-device-ios;
}
}

.dx-texteditor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,13 @@
$material-datebox-overlay-item-margin: 16px !default;
$material-datebox-overlay-item-margin-adaptive: 18px !default;
$material-datebox-popup-content-margin: 0 34px !default;
$material-datebox-input-min-height: 33px !default;
$datebox-input-min-height-device-ios: $material-base-inline-widget-height !default;
$datebox-input-line-height-device-ios: null !default;

@if $size == "default" {
$datebox-input-line-height-device-ios: normal !default;
}

@else if $size == "compact" {
$datebox-input-line-height-device-ios: 1.1667 !default;
}

0 comments on commit 9cb35af

Please sign in to comment.