Closed
Bug 1296395
Opened 9 years ago
Closed 9 years ago
Remove unnecessary #addon-bar rules from /browser/themes/
Categories
(Firefox :: Theme, defect)
Firefox
Theme
Tracking
()
RESOLVED
FIXED
Firefox 51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: jaws, Assigned: torroid, Mentored)
Details
(Whiteboard: [good first bug][lang=css])
Attachments
(1 file, 2 obsolete files)
1.28 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
The #addon-bar is always hidden, but we have some rules in /browser/themes that specify properties that only make sense if the element is visible.
Comment 1•9 years ago
|
||
Hi, I would like to work on this bug, So all that needs to be done is remove the #addon-bar rules from all the css files present under /browser/themes right?
Reporter | ||
Comment 2•9 years ago
|
||
Not necessarily all of them. You will have to use your judgement to determine if they are needed. The addon-bar should remain hidden, so don't remove anything that hides it, but you can remove everything else that would style it.
I usually wait to assign the bug until a patch has been uploaded to the bug.
Assignee | ||
Comment 3•9 years ago
|
||
I hope its the right file and the right place.
I had a doubt whether to keep the transition or not, I've removed it though.
Flags: needinfo?(jaws)
Attachment #8783022 -
Flags: review?(jaws)
Reporter | ||
Comment 4•9 years ago
|
||
Comment on attachment 8783022 [details] [diff] [review]
Removed unnecessary styling for hidden addon bar
Review of attachment 8783022 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for the patch. This is not going to work right though.
In this rule,
> #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
> overflow: -moz-hidden-unscrollable;
> max-height: 4em;
> transition: min-height 170ms ease-out, max-height 170ms ease-out;
> }
these three properties are applied to all toolbars with the exception of the menubar, tab strip, nav-bar, and addon-bar. This is the right thing to do because we're not applying these styles to the addon-bar.
However, in this rule,
> #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
> background-clip: padding-box;
> background-image: linear-gradient(@toolbarHighlight@, @toolbarHighlight@);
> }
We are applying a linear-gradient to the addon-bar which is unnecessary. This selector can be changed to:
> #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#addon-bar) {
> background-clip: padding-box;
> background-image: linear-gradient(@toolbarHighlight@, @toolbarHighlight@);
> }
for example.
Attachment #8783022 -
Flags: review?(jaws) → review-
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → glenn28f
Status: NEW → ASSIGNED
Flags: needinfo?(jaws)
Reporter | ||
Updated•9 years ago
|
Attachment #8783022 -
Attachment is obsolete: true
Reporter | ||
Comment 6•9 years ago
|
||
Comment on attachment 8784377 [details] [diff] [review]
Removed unnecessary #addon-bar rules from /browser/themes/
Review of attachment 8784377 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, just one more tweak. Can you also update your commit message to have the bug number at the beginning and put r=jaws at the end?
"Bug 1296395 - Remove unnecessary styling for hidden addon bar. r=jaws"
::: browser/themes/linux/browser.css
@@ +67,4 @@
> background-image: linear-gradient(@toolbarHighlight@, @toolbarHighlight@);
> }
>
> +#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):-moz-lwtheme:not(#addon-bar) {
We usually put psuedo-classes at the end of the selector, so this should be:
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#addon-bar):-moz-lwtheme
Attachment #8784377 -
Flags: review?(jaws) → review-
Assignee | ||
Comment 7•9 years ago
|
||
Changed the commit message and put the pseudo-classes at the end of the selector.
Attachment #8785360 -
Flags: review?(jaws)
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8785360 [details] [diff] [review]
Removed unnecessary styling for hidden addon bar.
Review of attachment 8785360 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, thanks and congratulations on fixing your first bug in Firefox! I'll mark this as checkin-needed, and in a day or two it should get checked in to the Mozilla source code repository. A couple days after that the changes should appear in Firefox Nightly. I'll see if I can find another bug that you can work on :)
Attachment #8785360 -
Flags: review?(jaws) → review+
Reporter | ||
Updated•9 years ago
|
Attachment #8784377 -
Attachment is obsolete: true
Reporter | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 9•9 years ago
|
||
Thank you! I'm glad I could fix it. I'd definitely like to work on another bug.
Comment 10•9 years ago
|
||
Pushed by ntim.bugs@gmail.com:
https://hg.mozilla.org/integration/fx-team/rev/47da2b6ea281
Remove unnecessary styling for hidden addon bar. r=jaws
Keywords: checkin-needed
Comment 11•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
You need to log in
before you can comment on or make changes to this bug.
Description
•