Closed
Bug 1428093
Opened 7 years ago
Closed 7 years ago
Mac preferences subdialog button left/right margins 12px instead of 0
Categories
(Firefox :: Settings UI, defect)
Firefox
Settings UI
Tracking
()
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: myk, Assigned: myk)
References
Details
Attachments
(3 files)
2.89 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
2.42 KB,
patch
|
Details | Diff | Splinter Review | |
459 bytes,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
In the process of scriptifying preferences, I converted .prefWindow-dlgbuttons CSS rules to their .dialog-button-box equivalents. And on Mac I also reconciled conflicting rules setting the left/right margins for the dialog-button-box.
But I reconciled them incorrectly, retaining the rule that sets those margins to 12px, whereas the rule that sets them to 0 is the one that should have been retained. So dialog-button-box now has a different margin on Mac. This patch fixes up that visual regression.
In the process of fixing this regression, I also realized that some of the rules I converted are no longer necessary, as there are no longer any "parent" preferences dialogs; all the remaining preferences dialogs are "children" (i.e. subdialogs).
So this patch also replaces the rules that set padding for .dialog-button-box — and then override it for |.prefwindow[type="child"] .dialog-button-box — in favor of a single rule that sets padding for .dialog-button-box in subdialogs.
Attachment #8939890 -
Flags: review?(jaws)
Flags: needinfo?(jaws)
Comment 1•7 years ago
|
||
Comment on attachment 8939890 [details] [diff] [review]
remove left/right margins around subdialog buttons on Mac
Review of attachment 8939890 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/themes/osx/preferences/in-content/dialog.css
@@ +14,5 @@
> }
> +
> +.dialog-button-box {
> + margin: 0;
> + padding-top: 0 !important;
Are we sure we still need the !important here?
Attachment #8939890 -
Flags: review?(jaws) → review+
Updated•7 years ago
|
Flags: needinfo?(jaws)
Assignee | ||
Comment 2•7 years ago
|
||
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #1)
> Comment on attachment 8939890 [details] [diff] [review]
> remove left/right margins around subdialog buttons on Mac
>
> Review of attachment 8939890 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: browser/themes/osx/preferences/in-content/dialog.css
> @@ +14,5 @@
> > }
> > +
> > +.dialog-button-box {
> > + margin: 0;
> > + padding-top: 0 !important;
>
> Are we sure we still need the !important here?
Good question! I just checked, and we don't need the !important there, which also means we don't need this rule at all, since the padding: 0 rule in browser/themes/shared/incontentprefs/dialog.inc.css sets padding-top to this value.
Then I checked the margin: 0 rule, and it turns out that we don't need that one either, since 0 is the default computed margin of the box.
So I've removed both rules from this version of the patch, which is the version I'll push inbound.
Pushed by myk@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/de578768ff3b
remove left/right margins around subdialog buttons on Mac; r=jaws
![]() |
||
Comment 4•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Comment 5•7 years ago
|
||
(In reply to Myk Melez [:myk] [@mykmelez] from comment #2)
> Then I checked the margin: 0 rule, and it turns out that we don't need that
> one either, since 0 is the default computed margin of the box.
Same for padding, or was there some other rule setting a non-zero padding?
Flags: needinfo?(myk)
Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Dão Gottwald [::dao] from comment #5)
> (In reply to Myk Melez [:myk] [@mykmelez] from comment #2)
> > Then I checked the margin: 0 rule, and it turns out that we don't need that
> > one either, since 0 is the default computed margin of the box.
>
> Same for padding, or was there some other rule setting a non-zero padding?
Same for padding, it looks like. I'm not sure why I thought the padding rule was still needed, but there isn't any other rule that sets padding for that box, on any platform.
(It makes me wonder what other rules we have that are obsolete or redundant.)
Flags: needinfo?(myk)
Attachment #8941761 -
Flags: review?(dao+bmo)
Updated•7 years ago
|
Attachment #8941761 -
Flags: review?(dao+bmo) → review+
Pushed by myk@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/858276d87233
remove unnecessary dialog-button-box padding; r=dao
Comment 8•7 years ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•