Closed
Bug 1317600
Opened 8 years ago
Closed 8 years ago
[DateTimePicker] Spinner arrow buttons shouldn't depend on find bar resources
Categories
(Toolkit :: Themes, defect, P3)
Toolkit
Themes
Tracking
()
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: scottwu, Assigned: scottwu)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
As pointed by :dao in bug 1301284:
> ::: toolkit/themes/shared/timepicker.css:63
> > +.spinner-container button.up {
> > + mask: url("chrome://global/skin/icons/find-arrows.svg#glyph-find-previous") no-repeat 50% 50%;
> > +}
> > +
> > +.spinner-container button.down {
> > + mask: url("chrome://global/skin/icons/find-arrows.svg#glyph-find-next") no-repeat 50% 50%;
> > +}
The svg is for the find bar and shouldn't be used directly here.
Updated•8 years ago
|
Component: XUL Widgets → Themes
Updated•8 years ago
|
Priority: -- → P3
Comment 1•8 years ago
|
||
Are you going to work on this? Might also be a good first bug if you provide instructions on how to fix this.
Flags: needinfo?(scwwu)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•8 years ago
|
||
I've actually got the fix when working on a different bug, but haven't got the chance to put it here. Sorry about the delay!
I created a new svg based on the resources from the visual spec. Wonder if you could take a look? Thanks!
Assignee: nobody → scwwu
Flags: needinfo?(scwwu) → needinfo?(dao+bmo)
Comment 4•8 years ago
|
||
Why are you using mask here (rather than list-style-image or background-image), and if there's a good reason for using mask, why are you specifying a fill color? Isn't that color irrelevant when using mask?
Flags: needinfo?(dao+bmo)
Assignee | ||
Comment 5•8 years ago
|
||
Yes you are right that the fill color is irrelevant in this case and I'll take it out.
Initially I tried to use background-image but I couldn't find a way to change the fill (when :hover or active), so I used mask to achieve that. Do you think there's a better approach?
Flags: needinfo?(dao+bmo)
Comment 6•8 years ago
|
||
(In reply to Scott Wu [:scottwu] from comment #5)
> Initially I tried to use background-image but I couldn't find a way to
> change the fill (when :hover or active), so I used mask to achieve that. Do
> you think there's a better approach?
We use chrome://global/skin/filters.svg#fill for that.
Here's an example: https://dxr.mozilla.org/mozilla-central/source/browser/themes/shared/downloads/downloads.inc.css#138
Flags: needinfo?(dao+bmo)
Comment hidden (mozreview-request) |
Comment 8•8 years ago
|
||
Comment on attachment 8816357 [details]
Bug 1317600 - Spinner arrow buttons no longer depend on find bar resources;
Nice!
Attachment #8816357 -
Flags: review?(dao+bmo) → review+
Comment 10•8 years ago
|
||
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/53cf106dd90c
Make date / time picker spinner arrow buttons no longer depend on find bar resources; r=dao
Keywords: checkin-needed
Comment 11•8 years ago
|
||
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/mozilla-inbound/rev/37fb958b2f9b
Make date / time picker spinner arrow buttons no longer depend on find bar resources; r=dao
![]() |
||
Comment 12•8 years ago
|
||
Please ignore the backout which will be posted here in a few minutes, this was done by mistake and the patch landed again, see comment 11. Thank you.
Comment 13•8 years ago
|
||
Backout by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ace52a373931
Backed out changeset 53cf106dd90c on suspicion of causing sanitization tests like browser_sanitize-timespans.js to fail on OS X. r=backout
Comment 14•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Updated•8 years ago
|
Blocks: datetime-bugs
Updated•8 years ago
|
No longer blocks: datetime-bugs
You need to log in
before you can comment on or make changes to this bug.
Description
•