Closed Bug 872636 Opened 11 years ago Closed 11 years ago

Private browsing indicator overlaps the Australis tabstrip on OS X

Categories

(Firefox :: Theme, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 28

People

(Reporter: MattN, Assigned: MattN)

References

Details

(Whiteboard: [Australis:M7])

Attachments

(4 files)

With tabs in the titlebar of OS X (bug 865374), the private browsing indicator overlaps the tabstrip.

Shall the indicator move to the tabstrip or should we do something like the fullscreen button spacer such that the tabstrip doesn't go underneath the indicator?
Attachment #749952 - Flags: ui-review?(shorlander)
Keywords: uiwanted
Component: Private Browsing → Theme
Attached image Indicator Spacer
For now we can just leave space for it(In reply to Matthew N. [:MattN] from comment #0)
> Created attachment 749952 [details]
> Screenshot of tabstrip overlap
> 
> With tabs in the titlebar of OS X (bug 865374), the private browsing
> indicator overlaps the tabstrip.
> 
> Shall the indicator move to the tabstrip or should we do something like the
> fullscreen button spacer such that the tabstrip doesn't go underneath the
> indicator?

For now we can just leave space so they don't overlap. It will have to move down once the window controls are moved though; and we need a more general solution for all platforms.
Attachment #749952 - Flags: ui-review?(shorlander) → ui-review-
Status: NEW → ASSIGNED
Keywords: uiwanted
Attachment #749952 - Flags: ui-review-
Attachment #759057 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 759057 [details] [diff] [review]
v.1 Change offsets

Review of attachment 759057 [details] [diff] [review]:
-----------------------------------------------------------------

Generally, this looks fine, although I wish UX didn't have a completely broken DOMI so that I could understand what your display: inherit bit is doing. However, the screenshots look good, and it looks good on my mountain lion machine across all 4 permutations, so r+. More documentation for how this CSS works would be good, though.
Attachment #759057 - Flags: review?(gijskruitbosch+bugs) → review+
Whiteboard: [Australis:M6] → [Australis:M7]
Should Dao review this patch as well?  He caught a lot of problems with my changes here earlier...
Comment on attachment 759057 [details] [diff] [review]
v.1 Change offsets

>+#main-window[privatebrowsingmode=temporary][inFullscreen] .titlebar-placeholder[type="fullscreen-button"] {
>+  display: inherit;
>+}

I don't think I understand this. What does this have to do with private browsing?
(In reply to Dão Gottwald [:dao] from comment #6)
> Comment on attachment 759057 [details] [diff] [review]
> v.1 Change offsets
> 
> >+#main-window[privatebrowsingmode=temporary][inFullscreen] .titlebar-placeholder[type="fullscreen-button"] {
> >+  display: inherit;
> >+}
> 
> I don't think I understand this. What does this have to do with private
> browsing?

This makes a bit more sense with ":-moz-locale-dir(ltr)" so assume that it's appended as I will do that if you agree.

In private browsing mode in LTR on Lion+, the PB indicator is between the tabstrip and the fullscreen button in the titlebar in non-fullscreen Windows. When going fullscreen I don't think we want to move the indicator to the right to take up the space where the fullscreen button was because: 
a) it causes more shifting during the lion fullscreen transition 
b) it looks a bit unusual so close to the corner
c) if I don't use the existing placeholder to take up that space then I need to add another ruleset to adjust the offset by another 20px in fullscreen mode to take that space into account.

In non-PB windows since there is no indicator, it seemed like we should continue to let the tabstrip go to the edge of the window otherwise people will consider it a bug that there is a space for no reason.

Thoughts?
Comment on attachment 759057 [details] [diff] [review]
v.1 Change offsets

>+#main-window[privatebrowsingmode=temporary][inFullscreen] .titlebar-placeholder[type="fullscreen-button"] {
>+  display: inherit;
>+}

please document why you're doing this and use -moz-box instead of inherit
Attachment #759057 - Flags: review?(dao) → review+
OK. Changes made and comments added. Thanks.

https://hg.mozilla.org/projects/ux/rev/5c9ac2fcd9b2
Whiteboard: [Australis:M7] → [Australis:M7][fixed-in-ux]
Depends on: 898875
https://hg.mozilla.org/mozilla-central/rev/5c9ac2fcd9b2
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:M7][fixed-in-ux] → [Australis:M7]
Target Milestone: --- → Firefox 28
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: