Skip to content

Commit

Permalink
Backport #30353 (#30361)
Browse files Browse the repository at this point in the history
Remove appearance from date inputs

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
MartijnCuppens and XhmikosR committed Apr 1, 2020
1 parent f7ed579 commit 1b575c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
9 changes: 9 additions & 0 deletions scss/_forms.scss
Expand Up @@ -59,6 +59,15 @@
}
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
&.form-control {
appearance: none; // Fix appearance for date inputs in Safari
}
}

select.form-control {
&:focus::-ms-value {
// Suppress the nested default white text on blue background highlight given to
Expand Down
12 changes: 0 additions & 12 deletions scss/_reboot.scss
Expand Up @@ -376,18 +376,6 @@ input[type="checkbox"] {
}


input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
// Remove the default appearance of temporal inputs to avoid a Mobile Safari
// bug where setting a custom line-height prevents text from being vertically
// centered within the input.
// See https://bugs.webkit.org/show_bug.cgi?id=139848
// and https://github.com/twbs/bootstrap/issues/11266
-webkit-appearance: listbox;
}

textarea {
overflow: auto; // Remove the default vertical scrollbar in IE.
// Textareas should really only resize vertically so they don't break their (horizontal) containers.
Expand Down

0 comments on commit 1b575c2

Please sign in to comment.