Closed
Bug 659465
Opened 15 years ago
Closed 14 years ago
fix clipping and border radius of global warnings in add-ons manager
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: fryn, Unassigned)
References
Details
Attachments
(3 files)
The #view-port-container tries to clip its content using border-radius: 5px, but that doesn't totally work, because its .global-*-warning descendants use background-images and -colors.
Also, when there are multiple global-*-warnings, the non-first warnings should not have non-zero border radii.
| Reporter | ||
Comment 1•15 years ago
|
||
Attachment #534909 -
Flags: review?(bmcbride)
| Reporter | ||
Comment 2•15 years ago
|
||
Comment 3•15 years ago
|
||
Comment on attachment 534909 [details] [diff] [review]
patch :)
Well that makes a rather nice difference :)
It breaks the corners of the plugin check link in the plugins pane, however. Will attach a screenshot.
Attachment #534909 -
Flags: review?(bmcbride) → review-
Comment 4•15 years ago
|
||
| Reporter | ||
Comment 5•15 years ago
|
||
(In reply to comment #4)
> Created attachment 534994 [details]
> Screenshot of PluginCheck link
Ah, I guess there's actually a hidden node in that case :\
Hmm, I think I have a solution. Will update patch with it if it works.
| Reporter | ||
Comment 6•15 years ago
|
||
I looked at https://mxr.mozilla.org/mozilla-central/source/toolkit/themes/winstripe/mozapps/extensions/extensions.css#93 , and there doesn't seem to be a solution for this, besides what we did for bug 595656 :(
Is bug 623615 still blocking the fix of that?
Assignee: fryn → nobody
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Comment 7•15 years ago
|
||
(In reply to comment #6)
> Is bug 623615 still blocking the fix of that?
Sadly, yes - and probably will be for some time.
Adding a border radius to the .global-info-container node (the parent of the PluginCheck link) didn't fix the corners there?
| Reporter | ||
Comment 8•15 years ago
|
||
(In reply to comment #7)
> Adding a border radius to the .global-info-container node (the parent of the
> PluginCheck link) didn't fix the corners there?
It fixes the corners in that case, but we want the border-radius to apply only to the first non-hidden global-*-container and since we don't hide them using hidden="true", we can't do it robustly via CSS without enumerating every single case, which would result in a very long chain of selectors and would break whenever a change is made to any other style that affects when the global-*-containers are shown.
If we hid them using hidden="true", we could do sth like:
.view-header { border-radius: 4px; }
.view-header:not([hidden=true]) ~ .view-header { border-radius: 0; }
Comment 9•15 years ago
|
||
Oh, in that case the selector can just check the "warning" attribute on the root (<page>) element.
Note that in the plugins pane, we don't show the safemode warning (warning="safemode"). So if there's a warning shown on that pane, the warning attribute will have the value of either "updatesecurity" or "checkcompatibility".
(I'd much rather see this approach land and actually fix something, than wait hopefully for bug 623615.)
Updated•15 years ago
|
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
| Reporter | ||
Comment 11•15 years ago
|
||
(In reply to comment #9)
> Oh, in that case the selector can just check the "warning" attribute on the
> root (<page>) element.
> (I'd much rather see this approach land and actually fix something, than
> wait hopefully for bug 623615.)
I wrote "Okay! I'll give it another shot." and assigned it to myself, but then I mid-air collided with you yoinking it. :P
Comment 12•15 years ago
|
||
Epic timing is epic.
I noticed that the parent of the plugincheck link from bug 656269 has an unconditional border-radius (which is why I yoinked it) - wanna fix that up too?
Assignee: bmcbride → fryn
Comment 13•15 years ago
|
||
(In reply to comment #12)
> I noticed that the parent of the plugincheck link from bug 656269 has an
> unconditional border-radius
Oh, and gnomestripe doesn't have it at all.
Something is a bit funky there...
| Reporter | ||
Comment 14•15 years ago
|
||
(In reply to comment #13)
> (In reply to comment #12)
> > I noticed that the parent of the plugincheck link from bug 656269 has an
> > unconditional border-radius
Yes, that's part of what I was trying to show in https://bug659465.bugzilla.mozilla.org/attachment.cgi?id=534910
> Oh, and gnomestripe doesn't have it at all.
I noticed that too. Not sure if it's a bug or just weird override usage as per https://mxr.mozilla.org/mozilla-central/source/toolkit/themes/Makefile.in#49
I'll test on Ubuntu tomorrow.
Comment 16•14 years ago
|
||
Frank: Do you still intend on finishing this?
| Reporter | ||
Comment 17•14 years ago
|
||
Yes, but it's low on my list, and I'm also on PTO right now and into next week. Feel free to take it. Unassigning myself for now to avoid ambiguity.
Assignee: fryn → nobody
| Reporter | ||
Updated•14 years ago
|
Status: ASSIGNED → NEW
Comment 19•14 years ago
|
||
Bug 623615 has been fixed (via bug 716439), so this can be fixed the easy way by re-enabling the fix from bug 595656 (ie, use overflow:hidden).
Status: NEW → RESOLVED
Closed: 15 years ago → 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•