Closed
Bug 1365195
Opened 8 years ago
Closed 8 years ago
[Photon] Implement new back button appearance
Categories
(Firefox :: Theme, enhancement, P1)
Firefox
Theme
Tracking
()
People
(Reporter: nhnt11, Assigned: nhnt11)
References
Details
(Whiteboard: [photon-visual][p1][57])
Attachments
(1 file)
No description provided.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Iteration: --- → 55.6 - May 29
Flags: qe-verify?
Updated•8 years ago
|
Flags: qe-verify? → qe-verify+
QA Contact: brindusa.tot
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review143424
patching file browser/themes/shared/toolbarbuttons.inc.css
Hunk #1 FAILED at 18
Please rebase. Thanks!
Attachment #8868065 -
Flags: review?(dao+bmo)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 7•8 years ago
|
||
mozreview-review |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review143584
waiting for another rebase
Attachment #8868065 -
Flags: review?(dao+bmo)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 10•8 years ago
|
||
mozreview-review |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review144016
::: browser/themes/shared/toolbarbuttons.inc.css:19
(Diff revision 6)
> --toolbarbutton-hover-background: hsla(240, 5%, 5%, .1);
> --toolbarbutton-active-background: hsla(240, 5%, 5%, .15);
>
> --toolbarbutton-inner-padding: 5px;
> +
> + --backbutton-background: hsla(0, 100%, 100%, .8);
This doesn't look right with dark OS and lightweight themes.
Attachment #8868065 -
Flags: review?(dao+bmo) → review-
Comment hidden (mozreview-request) |
Comment 12•8 years ago
|
||
mozreview-review |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review144050
::: browser/themes/shared/compacttheme.inc.css:200
(Diff revision 8)
> /* Back and forward button */
>
> +%ifdef MOZ_PHOTON_THEME
> +#back-button > .toolbarbutton-icon {
> + border-radius: var(--toolbarbutton-border-radius) !important;
> + padding: var(--toolbarbutton-inner-padding) !important;
Let's not add this. For photon, "compact" themes will just change colors, and we'll do the compact/touch switch independently from these two themes.
::: browser/themes/shared/toolbarbuttons.inc.css:394
(Diff revision 8)
> +%ifdef MOZ_PHOTON_THEME
> +#back-button:not(:active) > .toolbarbutton-icon {
> + background: var(--backbutton-background) !important;
> +}
> +
> +#back-button:hover > .toolbarbutton-icon {
This incorrectly affects the disabled back button.
Attachment #8868065 -
Flags: review?(dao+bmo) → review-
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 15•8 years ago
|
||
mozreview-review |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review144064
please see my previous review comments
Attachment #8868065 -
Flags: review?(dao+bmo) → review-
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 19•8 years ago
|
||
mozreview-review |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review144118
::: browser/themes/shared/toolbarbuttons.inc.css:288
(Diff revision 13)
> #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
> +%ifdef MOZ_PHOTON_THEME
> +#nav-bar :not(#back-button).toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-icon,
> +%else
> #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-icon,
> +%endif
We need this rule to cover the back button for compact mode. Better leave this as is and override it when needed.
::: browser/themes/shared/toolbarbuttons.inc.css:401
(Diff revision 13)
> + box-shadow: var(--backbutton-hover-box-shadow);
> + border-color: var(--backbutton-hover-border-color);
> +}
> +
> +#back-button:not([disabled]):hover:active > .toolbarbutton-icon {
> + border-color: var(--backbutton-active-border-color);
Why are these things in CSS variables? You seem to be using them only once.
Attachment #8868065 -
Flags: review?(dao+bmo) → review-
Comment 20•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review144016
> This doesn't look right with dark OS and lightweight themes.
This is still an issue.
Comment hidden (mozreview-request) |
Comment 22•8 years ago
|
||
mozreview-review |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review145128
::: browser/themes/shared/toolbarbuttons.inc.css:47
(Diff revision 14)
>
> --toolbarbutton-checkedhover-backgroundcolor: rgba(85%,85%,85%,.25);
> }
>
> +%ifdef MOZ_PHOTON_THEME
> +toolbar[brighttext]:-moz-lwtheme {
Why not just toolbar[brighttext]?
Assignee | ||
Comment 23•8 years ago
|
||
mozreview-review |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review145130
::: browser/themes/shared/toolbarbuttons.inc.css:47
(Diff revision 14)
>
> --toolbarbutton-checkedhover-backgroundcolor: rgba(85%,85%,85%,.25);
> }
>
> +%ifdef MOZ_PHOTON_THEME
> +toolbar[brighttext]:-moz-lwtheme {
Good point, thanks. I was attempting to compensate for the lwtheme version of backbutton-background that got ifdef'd out, and figured it was only needed for brighttext, but yeah, it applies to :not(-moz-lwtheme) as well.
Comment hidden (mozreview-request) |
Comment 25•8 years ago
|
||
mozreview-review |
Comment on attachment 8868065 [details]
Bug 1365195 - [Photon] Implement new back button appearance.
https://reviewboard.mozilla.org/r/139668/#review145134
::: browser/themes/shared/toolbarbuttons.inc.css:397
(Diff revision 15)
> }
>
> +%ifdef MOZ_PHOTON_THEME
> +#back-button:not([disabled]):hover > .toolbarbutton-icon {
> + background: var(--backbutton-background) !important;
> + box-shadow: 0 1px 6px hsla(0, 0%, 0%, .1);
nit: drop spaces inside hsla() (across the patch)
Attachment #8868065 -
Flags: review?(dao+bmo) → review+
Comment hidden (mozreview-request) |
Comment 27•8 years ago
|
||
Pushed by nhnt11@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/07facc83000c
[Photon] Implement new back button appearance. r=dao
Comment 28•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Comment 29•7 years ago
|
||
Comment 30•7 years ago
|
||
Tested this issue on Windows 7 x32, Windows 8 x64, Windows 10 x64 and Ubuntu 16.04 x64 with FF Nightly 57.0a1(2017-08-08)and I can confirm the fix.
You need to log in
before you can comment on or make changes to this bug.
Description
•