Closed Bug 1337378 Opened 7 years ago Closed 7 years ago

[DateTimePicker] No indicator for today in date picker

Categories

(Core :: Layout: Form Controls, defect, P1)

54 Branch
defect

Tracking

()

VERIFIED FIXED
mozilla56
Tracking Status
firefox54 --- wontfix
firefox55 --- wontfix
firefox56 --- verified

People

(Reporter: roxana.leitan, Assigned: scottwu)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170207030214

[Affected versions]:
Nightly 54.0a1

[Affected platforms]:
All platforms: Ubuntu 16.04, Mac OS X 10.11, Windows 10

[Steps to reproduce]:
1.Launch Nightly 54.0a1 with a new profile
2.Set "dom.forms.datetime" and "dom.forms.datetime.timepicker" pref to True in about:config
3.In the URL bar enter "data:text/html, <input type="time">"
4.Click on the input box to trigger picker

[Expected result]:
Date picker should be opened. Today date should have a grey background.

[Actual result]:
Date picker is opened. Today date has no background.
Updates to third STR from above:
3.In the URL bar enter "data:text/html, <input type="date">"
Component: XUL Widgets → Layout: Form Controls
Product: Toolkit → Core
[triage]
after july we will have scott back to fix this.
Priority: -- → P1
Assignee: nobody → scwwu
Status: NEW → ASSIGNED
Comment on attachment 8886915 [details]
Bug 1337378 - Show today indicator on datetime picker calendar.

https://reviewboard.mozilla.org/r/157656/#review162968

::: toolkit/themes/shared/datetimeinputpickers.css:361
(Diff revision 1)
>    border: var(--border);
>    content: "";
>  }
>  
> +.calendar-container .days-view > div.today::before {
> +  background: var(--today-fill-color);

Why can't we just set the background on the div.today directly?
Comment on attachment 8886915 [details]
Bug 1337378 - Show today indicator on datetime picker calendar.

https://reviewboard.mozilla.org/r/157656/#review162968

> Why can't we just set the background on the div.today directly?

That's what I tried first but it would fill the entire block, rather than filling a rounded rectangular box: https://bugzilla.mozilla.org/attachment.cgi?id=8887316
Comment on attachment 8886915 [details]
Bug 1337378 - Show today indicator on datetime picker calendar.

https://reviewboard.mozilla.org/r/157656/#review163766

Unfortunately, I can't test this - when I follow the STR, I get this in the popup:

http://imgur.com/qz1R4tZ
Attachment #8886915 - Flags: review?(mconley) → review+
Comment on attachment 8886915 [details]
Bug 1337378 - Show today indicator on datetime picker calendar.

https://reviewboard.mozilla.org/r/157656/#review163766

Oh! The STR is wrong and it should be `data:text/html,<input type="date">` as noted in comment 1. It appears I broke the time picker in bug 1363672.. Will fix it in another bug.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/cebef9d84892
Show today indicator on datetime picker calendar. r=mconley
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/cebef9d84892
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
We are about to go to 55 RC. Mark 55 won't fix.
Verified as fixed on latest Nightly 56.0a1 (2017-07-31) on Windows 10 x64, Mac OS X 10.12 and Ubuntu 16.04 x64.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: