Closed Bug 1391279 Opened 8 years ago Closed 8 years ago

Fix identity block spacing

Categories

(Firefox :: Theme, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 57
Iteration:
57.2 - Aug 29
Tracking Status
firefox57 --- verified
firefox58 --- verified

People

(Reporter: daleharvey, Assigned: daleharvey)

References

Details

(Whiteboard: [reserve-photon-visual])

Attachments

(2 files, 1 obsolete file)

No description provided.
Assignee: nobody → dharvey
Whiteboard: [photon-visual]
Status: NEW → ASSIGNED
Iteration: --- → 57.2 - Aug 29
Flags: qe-verify+
Priority: -- → P1
QA Contact: ovidiu.boca
Whiteboard: [photon-visual] → [reserve-photon-visual]
Blocks: 1363502
So #identity-box here has 8px for both start padding and end padding + margin. Measuring with th a ruler this comes out to 9px of empty space in each case For the (i) its 16px wide but 14px visible, for the end margin / padding it seems like its just an invisble 1px as part of the calculated area of the text, not certain we want to give them 7px margins to account for that
Comment on attachment 8898358 [details] Bug 1391279 - Fix identity box spacing. https://reviewboard.mozilla.org/r/169726/#review175280 ::: browser/themes/shared/identity-block/identity-block.inc.css:53 (Diff revision 1) > #urlbar[pageproxystate=valid] > #identity-box.verifiedIdentity { > --urlbar-separator-color: rgba(18, 188, 0, .5); > } > > #identity-box { > padding-inline-end: 2px; Please merge this into the other #identity-box rule and fix up the end padding, because it still isn't right with this patch in the non-verifiedIdentity/chromeUI/extensionPage case. The space between the (i) and the lock icon also still seems too small.
Attachment #8898358 - Flags: review?(dao+bmo) → review-
Attached image Screen Shot 2017-08-25 at 15.21.51.png (obsolete) —
Comment on attachment 8898358 [details] Bug 1391279 - Fix identity box spacing. https://reviewboard.mozilla.org/r/169726/#review177980 ::: browser/themes/shared/identity-block/identity-block.inc.css:8 (Diff revision 2) > * License, v. 2.0. If a copy of the MPL was not distributed with this > * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ > %endif > > #identity-box { > - padding: 0 5px; > + padding-inline-end: 2px; You can probably remove this, as it gets overriden by padding: 0 8px; ::: browser/themes/shared/identity-block/identity-block.inc.css:10 (Diff revision 2) > %endif > > #identity-box { > - padding: 0 5px; > + padding-inline-end: 2px; > + margin-inline-end: 2px; > + padding: 0 8px; When hovering the identity box without a label, the end padding looks unbalanced, and doesn't seem to match the mockup: http://design.firefox.com/people/shorlander/photon/Mockups/windows-10.html ::: browser/themes/shared/identity-block/identity-block.inc.css:10 (Diff revision 2) > %endif > > #identity-box { > - padding: 0 5px; > + padding-inline-end: 2px; > + margin-inline-end: 2px; > + padding: 0 8px; This also regresses bug 1386718
Attachment #8898358 - Flags: review?(dao+bmo) → review-
Comment on attachment 8898358 [details] Bug 1391279 - Fix identity box spacing. https://reviewboard.mozilla.org/r/169726/#review177984 see my previous review comments (you seem to have fixed the last one -- good!)
Attachment #8898358 - Flags: review?(dao+bmo) → review-
Attachment #8901196 - Attachment is obsolete: true
Yup sorry was commenting on the last patch when I realised I needed to fix the awesomebar alignment So the space between the (i) is 4px which is to spec (it actually renders to 5) > You can probably remove this, as it gets overriden by padding: 0 8px; Done > When hovering the identity box without a label, the end padding looks unbalanced, > and doesn't seem to match the > mockup: http://design.firefox.com/people/shorlander/photon/Mockups/windows-10.html Yup I forgot we had a special case for that, should be fixed in all cases now
Comment on attachment 8898358 [details] Bug 1391279 - Fix identity box spacing. https://reviewboard.mozilla.org/r/169726/#review178110 ::: browser/themes/shared/identity-block/identity-block.inc.css:9 (Diff revision 4) > * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ > %endif > > #identity-box { > - padding: 0 5px; > + margin-inline-end: 4px; > + padding: 0 4px 0 8px; This is wrong for RTL. You need to use padding-inline-start and padding-inline-end.
Attachment #8898358 - Flags: review?(dao+bmo) → review-
Yeh I wondered since it was editing an existing |padding:| rule, but I guess we only use |padding| when both sides are equal?
Comment on attachment 8898358 [details] Bug 1391279 - Fix identity box spacing. https://reviewboard.mozilla.org/r/169726/#review178272 ::: browser/themes/shared/identity-block/identity-block.inc.css:10 (Diff revision 5) > %endif > > #identity-box { > - padding: 0 5px; > + margin-inline-end: 4px; > + padding-inline-end: 4px; > + padding-inline-start: 8px; nit, I'd prefer this ordering as it matches the left-to-right position of these spaces: padding-inline-start: 8px; padding-inline-end: 4px; margin-inline-end: 4px;
Attachment #8898358 - Flags: review?(dao+bmo) → review+
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
While trying to verify this bug on the latest nightly (Firefox Nightly 58.0a1) I noted down the results to see if they are the desirable ones: 1. start padding: 9px 2. end padding: 9px 3. distance between "show site information" and "verified by(lock sign)" is 5px 4. distance between "verified by(lock sign)" and "Mozilla corporation (US)" is 7px After I read all the comments above I still can't figure out if these are the expected results and if there are another areas that should be covered by the bug. Thanks.
Flags: needinfo?(dharvey)
Some of those are off by 1 than the spec, but those are rendering issues, the padding values are as to spec, and yup that is all this bug covers
Flags: needinfo?(dharvey)
Based on comment 21 I'll mark this one as verified on Nightly 58.0a1. Build ID: 20170926220106 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Verified as fixed on Firefox Nightly 58.0a1 on Windows 10 x 64, Mac OS X 10.12 and Ubuntu 16.04 x64.
Status: RESOLVED → VERIFIED
Build ID: 20171002181526 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 Verified as fixed on Firefox Beta 57.0b5 on Windows 10 x 64, Windows 7 x32, Mac OS X 10.12 and Ubuntu 16.04 x64.
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: