Closed
Bug 943765
Opened 11 years ago
Closed 11 years ago
UITour: Make highlights circle when the target is close to being square
Categories
(Firefox :: General, defect, P3)
Firefox
General
Tracking
()
VERIFIED
FIXED
Firefox 30
People
(Reporter: MattN, Assigned: MattN)
References
Details
(Keywords: polish)
Attachments
(3 files, 1 obsolete file)
41.70 KB,
image/png
|
Details | |
2.66 MB,
image/png
|
Details | |
5.57 KB,
patch
|
Unfocused
:
review+
Gavin
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Michael would like the highlights to always be circles. It seems like we can set a min-height/width that would work for the tab, new tab button and nav-bar items and then hopefully the larger items in the menu panel are already square which leads to a circle highlight.
Comment 1•11 years ago
|
||
For larger highlights
max-height:70px;
For smaller highlights
min-height:36px;
Comment 2•11 years ago
|
||
Michael, do you want it to be a circle even for the bookmark highlights? http://cl.ly/image/0c0y3v0Y0X0X If so, this would be a pretty large circle. Would you like a small circle to highlight over just the star or a large circle over the menu and star ?
Flags: needinfo?(mmaslaney)
Comment 3•11 years ago
|
||
We can do a min-height circle over the star glyph.
Flags: needinfo?(mmaslaney)
Comment 4•11 years ago
|
||
The Add-ons highlight should also be a complete circle.
Assignee | ||
Comment 5•11 years ago
|
||
How about instead of hard-coding which targets shouldn't be circles, we make highlights into a circle if their dimensions are within ±N% (e.g. 10). Is that too magical?
Assignee: mmaslaney → MattN+bmo
Comment 6•11 years ago
|
||
I believe that works.
https://www.dropbox.com/s/ubyqobbgpvl025e/UI_Highlights.zip
The above link has highlighted states for each of the four screens. All are either max-height or min-height circles, with the exception of the URL bar.
/* URL Bar: */
border-radius: 3px;
background: rgba(0,149,220,0.40);
border: 1px solid #FFFFFF;
box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.50);
Assignee | ||
Updated•11 years ago
|
Whiteboard: [can-fix-on-aurora]
Comment 7•11 years ago
|
||
Hey Matt, I wanted to be sure to clarify something about this bug. Where people are commenting about the highlight states not being circles is where a single icon is highlighted, like the menu (http://cl.ly/image/201Q1A472O1q - not a circle), Add-ons (http://cl.ly/image/403d3S0O0H0g - not a circle), or Customization (http://cl.ly/image/3p0Q2g2x003n - this one looks great).
Highlights that are pointing out more than one thing or a rectangle, like the two-button, are fine with the oblong shape. (http://cl.ly/image/3y1P0E2v2t0N) We had one giant circle over these at one point and what is there now looks much better.
If having the different shapes (perfect circle for highlighting a single icon and oblong for highlighting 2 icons) is a concern, just let us know.
Updated•11 years ago
|
Priority: P4 → P3
Assignee | ||
Comment 8•11 years ago
|
||
40% seems to work for the targets I tested (all of the current ones).
Attachment #8370573 -
Flags: review?(bmcbride)
Assignee | ||
Updated•11 years ago
|
Summary: UITour: Make highlights circles → UITour: Make highlights circle when the target is close to being square
Comment 9•11 years ago
|
||
Comment on attachment 8370573 [details] [diff] [review]
v.1 Make highlights circles using the larger dimension if the dimensions are within 40% of eachother
Review of attachment 8370573 [details] [diff] [review]:
-----------------------------------------------------------------
This isn't quite enough to make it a circle for items like the add-ons button, at least on Windows. There, the width and height are 89px - but the border radius is only 40px, so you get a circle with 4 flat sides. Should have a 100% border-radius when we know we want a circle.
Attachment #8370573 -
Flags: review?(bmcbride) → review-
Assignee | ||
Comment 10•11 years ago
|
||
Yeah, sorry I forgot about that. Would you prefer an inline style to override the border-radius in this case or shall I set some attribute and have a content stylesheet rule that sets the border-radius when that exists?
Assignee | ||
Updated•11 years ago
|
Whiteboard: [can-fix-on-aurora]
Assignee | ||
Comment 11•11 years ago
|
||
An inline style seemed to be the most straightforward way. The attribute seemed like overkill for now.
Attachment #8370573 -
Attachment is obsolete: true
Attachment #8370592 -
Flags: review?(bmcbride)
Comment 12•11 years ago
|
||
Comment on attachment 8370592 [details] [diff] [review]
v.2 Add border-radius: 100%; style
Review of attachment 8370592 [details] [diff] [review]:
-----------------------------------------------------------------
That works. Ship it!
Attachment #8370592 -
Flags: review?(bmcbride) → review+
Assignee | ||
Comment 13•11 years ago
|
||
status-firefox29:
--- → affected
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 8370592 [details] [diff] [review]
v.2 Add border-radius: 100%; style
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Australis UI Tour feature
User impact if declined: Highlights may not look as nice (rounded rectangles or ellipses).
Testing completed (on m-c, etc.): Manual and mochitest on m-c
Risk to taking this patch (and alternatives if risky): Low. Only impacts highlight functionality of the tour.
String or IDL/UUID changes made by this patch: None
Attachment #8370592 -
Flags: approval-mozilla-aurora?
Comment 15•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 30
Updated•11 years ago
|
Attachment #8370592 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 16•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Updated•11 years ago
|
status-firefox30:
--- → fixed
Comment 17•11 years ago
|
||
Verified as fixed on latest Nightly (build ID: 20140302030203) latest Aurora (build ID: 20140303004002).
The highlights are now shown as circles.
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in
before you can comment on or make changes to this bug.
Description
•