UX: Fix date input display in iOS (#14307)
This commit is contained in:
parent
6c7f4e15b6
commit
33fb3b7ec8
|
@ -3,6 +3,7 @@
|
||||||
onChange=(action "onChangeRanges" (hash prop="from"))
|
onChange=(action "onChangeRanges" (hash prop="from"))
|
||||||
showTime=showFromTime
|
showTime=showFromTime
|
||||||
class="from"
|
class="from"
|
||||||
|
placeholder=(i18n "dates.from_placeholder")
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{date-time-input
|
{{date-time-input
|
||||||
|
@ -13,4 +14,5 @@
|
||||||
showTime=showToTime
|
showTime=showToTime
|
||||||
clearable=clearable
|
clearable=clearable
|
||||||
class="to"
|
class="to"
|
||||||
|
placeholder=(i18n "dates.to_placeholder")
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{{#unless timeFirst}}
|
{{#unless timeFirst}}
|
||||||
{{date-input
|
{{date-input
|
||||||
date=date
|
date=date
|
||||||
|
placeholder=placeholder
|
||||||
relativeDate=relativeDate
|
relativeDate=relativeDate
|
||||||
onChange=(action "onChangeDate")
|
onChange=(action "onChangeDate")
|
||||||
useGlobalPickerContainer=useGlobalPickerContainer
|
useGlobalPickerContainer=useGlobalPickerContainer
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
{{#if timeFirst}}
|
{{#if timeFirst}}
|
||||||
{{date-input
|
{{date-input
|
||||||
date=date
|
date=date
|
||||||
|
placeholder=placeholder
|
||||||
relativeDate=relativeDate
|
relativeDate=relativeDate
|
||||||
onChange=(action "onChangeDate")
|
onChange=(action "onChangeDate")
|
||||||
useGlobalPickerContainer=useGlobalPickerContainer
|
useGlobalPickerContainer=useGlobalPickerContainer
|
||||||
|
|
|
@ -93,6 +93,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="reviewable-filter date-range">
|
<div class="reviewable-filter date-range">
|
||||||
|
{{i18n "review.date_filter"}}
|
||||||
{{date-time-input-range
|
{{date-time-input-range
|
||||||
from=filterFromDate
|
from=filterFromDate
|
||||||
to=filterToDate
|
to=filterToDate
|
||||||
|
|
|
@ -30,8 +30,14 @@
|
||||||
&:focus {
|
&:focus {
|
||||||
@include default-focus;
|
@include default-focus;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
// iOS doesn't display the placeholder attribute for date inputs
|
||||||
|
.ios-device &:after {
|
||||||
|
font-size: var(--font-0);
|
||||||
|
color: var(--primary-medium);
|
||||||
|
content: attr(placeholder);
|
||||||
|
}
|
||||||
|
}
|
||||||
.pika-single {
|
.pika-single {
|
||||||
margin-left: -1px;
|
margin-left: -1px;
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.reviewable-filter {
|
.reviewable-filter {
|
||||||
margin: 0 0 0.5em 0;
|
|
||||||
|
|
||||||
.filter-label {
|
.filter-label {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,6 +132,8 @@ en:
|
||||||
previous_month: "Previous Month"
|
previous_month: "Previous Month"
|
||||||
next_month: "Next Month"
|
next_month: "Next Month"
|
||||||
placeholder: date
|
placeholder: date
|
||||||
|
from_placeholder: "from date"
|
||||||
|
to_placeholder: "to date"
|
||||||
share:
|
share:
|
||||||
topic_html: 'Topic: <span class="topic-title">%{topicTitle}</span>'
|
topic_html: 'Topic: <span class="topic-title">%{topicTitle}</span>'
|
||||||
post: "post #%{postNumber}"
|
post: "post #%{postNumber}"
|
||||||
|
@ -411,6 +413,7 @@ en:
|
||||||
|
|
||||||
review:
|
review:
|
||||||
order_by: "Order by"
|
order_by: "Order by"
|
||||||
|
date_filter: "Posted between"
|
||||||
in_reply_to: "in reply to"
|
in_reply_to: "in reply to"
|
||||||
explain:
|
explain:
|
||||||
why: "explain why this item ended up in the queue"
|
why: "explain why this item ended up in the queue"
|
||||||
|
|
Loading…
Reference in New Issue