Closed
Bug 803880
Opened 12 years ago
Closed 12 years ago
vertical separator between buttons in social toolbar cause hovered buttons to appear to have a double wide right border
Categories
(Firefox :: Theme, defect)
Tracking
()
RESOLVED
FIXED
Firefox 19
People
(Reporter: asa, Assigned: dao)
Details
Attachments
(2 files, 1 obsolete file)
12.37 KB,
image/jpeg
|
Details | |
973 bytes,
patch
|
jaws
:
review+
Gavin
:
approval-mozilla-aurora+
Gavin
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
We've got a vertical separator line between each of the buttons in the social toolbar. When you hover over one of the buttons, the button border on the left side overlaps the separator and the effect is a slightly darkened left border. That's not terribly ugly, but the right border is another story. The right border looks doubled up, two pixels wide, because the button's hovered border is one pixel off from the vertical separator's dark line.
If we can make the hover state's right border overlap the separator line like the left border does, that could mask this hack a bit better. If we can't do that, maybe we can make the separators to the right and left of the currently hovered button disappear on hover and pressed state.
It seems like we don't have a proper widget here and it would be nice to figure out how to get this right. I'm OK with refining the hack, but we probably want to make a better widget here if we're going to support this in the long run.
Comment 1•12 years ago
|
||
This patch turns off the separator for the hovered button and the adjacent button so there is no double border. Thanks for filing this bug Asa :)
Updated•12 years ago
|
Hardware: x86_64 → All
Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 673755 [details] [diff] [review]
Patch
>+@navbarLargeIcons@ > #social-toolbar-item > .toolbarbutton-1:hover:not(:first-child)::before,
>+@navbarLargeIcons@ > #social-toolbar-item > .toolbarbutton-1:hover + .toolbarbutton-1:not(:first-child)::before {
>+ display: none;
>+}
In the second selector, a .toolbarbutton-1 next to .toolbarbutton-1:hover can never be :first-child, so there's no point in adding :not(:first-child) to the selector.
You can also avoid this whole rule by not adding the border in the first place where you don't want it.
Attachment #673755 -
Flags: review?(felipc) → review-
Assignee | ||
Updated•12 years ago
|
Component: SocialAPI → Theme
Assignee | ||
Comment 3•12 years ago
|
||
This should do it, I think. Jared, can you verify? I'm on Linux right now.
Assignee: jaws → dao
Attachment #673755 -
Attachment is obsolete: true
Attachment #673777 -
Flags: review?(jaws)
Comment 4•12 years ago
|
||
Comment on attachment 673777 [details] [diff] [review]
patch v2
Review of attachment 673777 [details] [diff] [review]:
-----------------------------------------------------------------
Yeah this fixes it. Thanks!
Attachment #673777 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
Updated•12 years ago
|
tracking-firefox17:
--- → +
tracking-firefox18:
--- → +
Comment 7•12 years ago
|
||
Comment on attachment 673777 [details] [diff] [review]
patch v2
[Triage Comment]
let's get this polish fix into 17 (first social release)
Attachment #673777 -
Flags: approval-mozilla-beta+
Attachment #673777 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 8•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/f3d7a94306ee
https://hg.mozilla.org/releases/mozilla-beta/rev/6621681b8f0d
status-firefox17:
--- → fixed
status-firefox18:
--- → fixed
Comment 9•12 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Firefox/17.0
Verified on Firefox 17 beta 6 that the double wide right border created on the social toolbar by the vertical separator between buttons and mouse hover is gone.
Comment 10•12 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; rv:18.0) Gecko/20100101 Firefox/18.0
Verified as fixed on Firefox 18 beta 3 - on mouse hover there is no double wide right border created on the social toolbar by the vertical separator between buttons.
You need to log in
before you can comment on or make changes to this bug.
Description
•