Closed Bug 1421853 Opened 7 years ago Closed 7 years ago

subviewbutton in sidebarMenu-popup does not have checkmark

Categories

(Firefox :: Theme, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 59
Tracking Status
firefox57 --- unaffected
firefox58 --- unaffected
firefox59 --- fixed

People

(Reporter: magicp.jp, Assigned: Paolo)

References

Details

Attachments

(2 files)

Steps to reproduce:
1. Launch the latest Nightly
2. Open Bookmarks sidebar (Ctrl + B)
3. Open sidebar menu

Actual Results:
Checkmark is not shown even if .subviewbutton[checked="true"].

Expected Results:
Checkmark should be shown.

Regression range:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=f673da3cfce0dae5731a4e3d06954a0a622166ea&tochange=0ee02ed83f71b4c4d2ed2d142eea26c5ff15081c
Blocks: 1414244
Has Regression Range: --- → yes
Has STR: --- → yes
Flags: needinfo?(paolo.mozmail)
Flags: needinfo?(paolo.mozmail)
Comment on attachment 8934581 [details]
Bug 1421853 - subviewbutton in sidebarMenu-popup does not have checkmark.

https://reviewboard.mozilla.org/r/205472/#review211446

With the minor change below, r=me.

::: browser/themes/shared/sidebar.inc.css:105
(Diff revision 1)
> +#sidebarMenu-popup > .subviewbutton[checked="true"] {
> +  list-style-image: none;
> +  background: url(chrome://browser/skin/check.svg) center left 7px / 11px 11px no-repeat transparent;

It seems like most of this rule except the background position is duplicated on both sides of the if/else, and could be factored out into a separate rule above this %ifndef/else block. That would leave only the background position stuff in the platform-specific rules (and the margin/padding stuff for osx), which will make this easier to read, also because it'll make the non-rtl and rtl bits obvious mirrors of each other (ie center left / center right, respectively).
Attachment #8934581 - Flags: review?(gijskruitbosch+bugs) → review+
Yes, I think this is easier to read, even if it duplicates the rule. I moved the background-size to its own line since it can't be specified in the shorthand without the position. I also swapped the order of the rules so the positions are all close to each other.

Let me know if you have any comments, I'll land this later today.
Yep, looks good to me.
Assignee: nobody → paolo.mozmail
Status: NEW → ASSIGNED
Pushed by paolo.mozmail@amadzone.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e262daafc582
subviewbutton in sidebarMenu-popup does not have checkmark. r=Gijs
https://hg.mozilla.org/mozilla-central/rev/e262daafc582
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
I have reprodcued this bug with Nightly 59.0a1 (2017-11-29)on Windows 10, 64 Bit!

This bug's fix is verified with Latest Latest Nightly !

Build ID  : 20180106220101
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
QA Whiteboard: [bugday-20180103]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: