Closed Bug 874140 Opened 11 years ago Closed 11 years ago

(Australis) The "Restore Defaults" button should have visibility:hidden instead of hidden="true"

Categories

(Firefox :: Toolbars and Customization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 28

People

(Reporter: jaws, Assigned: mconley)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Australis:M6])

Attachments

(1 file, 1 obsolete file)

D'oh, sorry about that. It's slightly unintuitive that element.hidden does not set visibility: hidden.
Assignee: nobody → mconley
No problem, it's an easy mistake to make. I wish we had something similar to .collapsed but I don't think we do.
Status: NEW → ASSIGNED
Whiteboard: [Australis:M?] → [Australis:M6]
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #755609 - Flags: review?(jaws)
Comment on attachment 755609 [details] [diff] [review]
Patch v1

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

You can continue to use the .hidden setter and getter. All of the changes in CustomizeMode.jsm can be reverted.

::: browser/base/content/browser.css
@@ +663,5 @@
>    max-height: 0;
>  }
> +
> +#customization-reset-button[hidden="true"] {
> +  visibility: hidden;

display: -moz-box;
Attachment #755609 - Flags: review?(jaws)
Comment on attachment 755609 [details] [diff] [review]
Patch v1

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

This is fine to land once you make these changes and revert CustomizeMode.jsm.

::: browser/base/content/browser.css
@@ +663,5 @@
>    max-height: 0;
>  }
> +
> +#customization-reset-button[hidden="true"] {
> +  visibility: hidden;

To be clear, keep the visibility: hidden; and add the display: -moz-box;.
Attachment #755609 - Flags: review+
D'oh, yep - this is wayyy simpler. Thanks.
Attachment #755609 - Attachment is obsolete: true
Attachment #755636 - Flags: review+
Landed on UX as https://hg.mozilla.org/projects/ux/rev/efe1213b8bb8
Whiteboard: [Australis:M6] → [Australis:M6][fixed-in-ux]
Per https://firefox-ux.etherpad.mozilla.org/Australis-pretesting-UXreview , should we be disabling instead of hiding it after all? :-(
https://hg.mozilla.org/mozilla-central/rev/efe1213b8bb8
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:M6][fixed-in-ux] → [Australis:M6]
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: