Closed
Bug 1158858
Opened 10 years ago
Closed 9 years ago
Move 'suggested' and 'sponsored' labels to the top left of the tile
Categories
(Firefox :: New Tab Page, defect)
Firefox
New Tab Page
Tracking
()
People
(Reporter: emtwo, Assigned: emtwo)
References
(Blocks 1 open bug)
Details
(Whiteboard: .?)
Attachments
(9 files, 5 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Based on mocks here: https://bug1150228.bugzilla.mozilla.org/attachment.cgi?id=8592387
Updated•10 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Iteration: 40.3 - 11 May → 41.1 - May 25
Comment 1•9 years ago
|
||
dcrobot, how important is it to have the tag on the left side? It being on the left makes it more likely to cover up the beginning of the title. Ideally we don't cover up the beginning or end of a title, but I would think having the first few letters covered up makes it much harder to guess at what the word actually is.
Flags: needinfo?(athornburgh)
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
emtwo, I put together a patch so that we have patches for all sponsored suggested tiles bugs. Sorry if you had something wip!
Assignee: msamuel → edilee
Status: NEW → ASSIGNED
Mardak, I can't provide you with any proof that left is "better" than right. So, if you think it's a good idea, then let's keep the labels on the right.
Flags: needinfo?(athornburgh)
Comment 5•9 years ago
|
||
Let's hold off on this for now. We need to think more about what behavior we want to better deal with potentially overlapping or avoiding overlapping in the first place.
Updated•9 years ago
|
Assignee: edilee → nobody
Status: ASSIGNED → NEW
Comment 6•9 years ago
|
||
Looks like there is a noticeable difference for the title and the label between the mock up and implementation. Aaron, are the specs correct?
Flags: needinfo?(athornburgh)
Indeed... it looks like old styling, and not according to the spec. And yes, my specs are correct.
Flags: needinfo?(athornburgh)
Ed, on another note... maybe we ditch the favicon? That alone would free up 22 pixels for longer titles.
OR, what if we lost the ".com" and ".org" parts?
Comment 9•9 years ago
|
||
There shouldn't be a [suggested] tag for history tiles that are showing favicon or domain. Suggested/sponsored shows up for things that we have a custom title. So we just need to make sure we don't use long-ish titles, but that seems somewhat fragile.
Comment 10•9 years ago
|
||
From the design bug 1168898, sounds like we'll be moving the suggested tag to the top left of the tile outside of the title area.
Blocks: 1140185
Summary: Move 'suggested' label to the left of the base domain on the tile → Move 'suggested' label to the top left of the tile
Whiteboard: .?
Updated•9 years ago
|
Summary: Move 'suggested' label to the top left of the tile → Move 'suggested' and 'sponsored' labels to the top left of the tile
Updated•9 years ago
|
Iteration: --- → 41.3 - Jun 29
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → msamuel
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8608473 -
Attachment is obsolete: true
Attachment #8621694 -
Flags: review?(edilee)
Assignee | ||
Comment 12•9 years ago
|
||
Assignee | ||
Comment 13•9 years ago
|
||
Assignee | ||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
Marina, "Suggested" tags are gray, and "Sponsored" tags are white w/ a gray border.
Otherwise, this looks good!
Comment 16•9 years ago
|
||
dcrobot, is it okay to have the tag fade on hover? This example has 0.5 opacity so that the blue shadow/glow doesn't look completely cut off.
Attachment #8621716 -
Flags: ui-review?(athornburgh)
Comment 17•9 years ago
|
||
fyi, how things look with v1 patch on hover
Comment 18•9 years ago
|
||
A fade on hover is fine. But the blue glow was intended to show on top of the label anyway.
Comment 19•9 years ago
|
||
Comment on attachment 8621694 [details] [diff] [review]
v1: Move sponsored tag to the top left
>+++ b/browser/base/content/newtab/newTab.css
>@@ -202,37 +202,45 @@ input[type=button] {
> .newtab-sponsored {
>- border: 1px solid #dcdcdc;
>- border-radius: 2px;
>+ background-color: #E2E2E2;
>+ border: 1px solid #DCDCDC;
>+ color: #4A4A4A;
>+ border-radius: 3px;
> cursor: pointer;
> display: none;
> font-family: Arial;
>- font-size: 10px;
>+ font-size: 9px;
> height: 17px;
>- line-height: 17px;
>- margin: 5px;
>- padding: 0 4px;
>+ line-height: 6px;
>+ padding: 4px;
>+ top: -15px;
>+ left: 0;
>+ right: auto;
nit: could you keep these sorted alphabetically
Attachment #8621694 -
Flags: review?(edilee) → review+
Comment 20•9 years ago
|
||
quick hack moving tag as a sibling of .newtab-site and setting tag z-index 0 and site z-index 1 (probably don't need z-index of other items anymore)
Assignee | ||
Comment 21•9 years ago
|
||
Some changes I wanted confirmation for:
* Moving the glow around .newtab-link instead of .newtab-site so that we don't need to make .newtab-site and .newtab-sponsored siblings
* Added appropriate colour styles for sponsored vs. suggested tags.
Attachment #8621694 -
Attachment is obsolete: true
Attachment #8621876 -
Flags: review?(edilee)
Comment 22•9 years ago
|
||
Comment on attachment 8621876 [details] [diff] [review]
v2: Move sponsored tag to the top left
>+++ b/browser/base/content/newtab/grid.js
>@@ -154,25 +154,25 @@ let gGrid = {
> */
> _createSiteFragment: function Grid_createSiteFragment() {
> let site = document.createElementNS(HTML_NAMESPACE, "div");
> site.classList.add("newtab-site");
> site.setAttribute("draggable", "true");
>
> // Create the site's inner HTML code.
> site.innerHTML =
>+ '<input type="button" title="' + newTabString("pin") + '"' +
>+ ' class="newtab-control newtab-control-pin"/>' +
>+ '<input type="button" title="' + newTabString("block") + '"' +
>+ ' class="newtab-control newtab-control-block"/>' +
> '<a class="newtab-link">' +
> ' <span class="newtab-thumbnail"/>' +
> ' <span class="newtab-thumbnail enhanced-content"/>' +
> ' <span class="newtab-title"/>' +
> '</a>' +
>- '<input type="button" title="' + newTabString("pin") + '"' +
>- ' class="newtab-control newtab-control-pin"/>' +
>- '<input type="button" title="' + newTabString("block") + '"' +
>- ' class="newtab-control newtab-control-block"/>' +
> '<span class="newtab-sponsored">' + newTabString("sponsored.button") + '</span>' +
Move this newtab-sponsored to be the first sibling (before <input button>), and we won't need any of the z-index styling.
>+++ b/browser/themes/shared/newtab/newTab.inc.css
> /* LINKS */
> .newtab-link {
> border-radius: 6px;
>+ z-index: 1;
As mentioned earlier none of these z-index will be necessary. But we do need to increase the radius to correctly crop the "smaller" link (as opposed to "wider" site). See attached.
Add:
border-radius: 10px;
overflow: hidden;
This will also fix bug 1172721.
Attachment #8621876 -
Flags: review?(edilee) → review+
Comment 23•9 years ago
|
||
Here's a screenshot with the existing radius: 6px no overflow vs radius: 10px overflow: hidden
Attachment #8621716 -
Attachment is obsolete: true
Attachment #8621721 -
Attachment is obsolete: true
Attachment #8621716 -
Flags: ui-review?(athornburgh)
Comment 24•9 years ago
|
||
(In reply to Ed Lee :Mardak from comment #22)
> Move this newtab-sponsored to be the first sibling (before <input button>),
> and we won't need any of the z-index styling.
Actually, I'm not sure if the inputs need to be moved if we do this... ?
Comment 25•9 years ago
|
||
Sorry. ;) Removing z-index means we definitely want the <input button> to be after the newtab-link as before.
This bug should also fix bug 1168521 by moving the tag outside of the usual hover area.
Comment 26•9 years ago
|
||
Comment on attachment 8621876 [details] [diff] [review]
v2: Move sponsored tag to the top left
>+++ b/browser/base/content/newtab/newTab.css
>+.newtab-site[suggested=true] > .newtab-sponsored {
>+ background-color: #E2E2E2;
>+ border: none;
> }
This has a stronger css rule match.
> .newtab-sponsored:-moz-any(:hover, [active]) {
>- background-color: #3a72b1;
>+ background-color: #4A90E2;
> border: 0;
> color: white;
> }
>
>+.newtab-sponsored[active] {
>+ background-color: #000000;
>+}
>+
So these also need .newtab-site in front to override the background-color. Yay css ;)
Comment 27•9 years ago
|
||
Attachment #8621876 -
Attachment is obsolete: true
Comment 29•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Updated•9 years ago
|
Updated•9 years ago
|
QA Contact: cornel.ionce
Assignee | ||
Comment 30•9 years ago
|
||
Approval Request Comment
[Feature/regressing bug #]: bug 1168898
[User impact if declined]: Tiles with long titles will be covered by the sponsored tag
[Describe test coverage new/current, TreeHerder]: tested on nightly and locally on aurora
[Risks and why]: low risk - mostly CSS
[String/UUID change made/needed]: N/A
Attachment #8622745 -
Flags: approval-mozilla-aurora?
Comment 31•9 years ago
|
||
Comment on attachment 8622745 [details] [diff] [review]
[aurora] Move sponsored tag to top left
low risk and new feature, taking it.
Attachment #8622745 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
The labels were properly moved on the top left side of the Tile.
Tested on Windows 7 64-bit, Mac OS X 10.9.5 and Ubuntu 14.04 64-bit using:
- latest Nightly, build ID: 20150616030201;
- latest Aurora, build ID: 20150617004006.
This change causes issue 1175475.
You need to log in
before you can comment on or make changes to this bug.
Description
•