Closed Bug 973704 Opened 12 years ago Closed 12 years ago

Australis: disabled="false" buttons don't get appropriate hover/active styles

Categories

(Firefox :: Theme, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 30
Tracking Status
firefox29 --- verified
firefox30 --- verified

People

(Reporter: mozilla, Assigned: Gijs)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Australis:P3-])

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 (Beta/Release) Build ID: 20131022185104 Steps to reproduce: Create a toolbaritem containing a toolbarbutton and customise it to the nav-bar. Hover over button. Press button. Actual results: Nothing. Expected results: The button should show hover styling when the mouse is over it (including in the overflow panel) and active styling when it is pressed.
(In reply to Ian Nartowicz from comment #0) > User Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 > Firefox/17.0 (Beta/Release) > Build ID: 20131022185104 > > Steps to reproduce: > > Create a toolbaritem containing a toolbarbutton and customise it to the > nav-bar. > Hover over button. > Press button. Did you add the toolbarbutton-1 class to the toolbarbutton?
Component: Untriaged → Theme
Flags: needinfo?(mozilla)
Also, you marked this bug as "Australis" but also reported the version you're using as 17. Can you clarify?
Yes, tested on 29, reported on 17ESR. The toolbarbutton has class toolbarbutton-1 as well as others. It is a button from a longstanding addon called Torrent Status.
Flags: needinfo?(mozilla)
Found it! I had assumed that being inside a toolbaritem was the problem, but not so. It is caused by an attribute disabled="false". Works OK in 28, not in 29.
(In reply to Ian Nartowicz from comment #4) > Found it! I had assumed that being inside a toolbaritem was the problem, > but not so. It is caused by an attribute disabled="false". Works OK in 28, > not in 29. Updating some fields, please doublecheck that I've understood correctly. :-)
Summary: Australis: widgets inside a toolbaritem are not styled → [Linux] Australis: disabled="false" buttons don't get appropriate hover/active styles
Whiteboard: [Australis:P3-]
Version: 17 Branch → Trunk
I wonder if I'm observing the same bug: Similar button setup, but the button is "disabled = true" after adding it to the nav-bar with addWidgetToArea(). Button is NOT disabled properly until Firefox is restarted.
I think what I reported is Linux-only. It is down to the assumption that a disabled widget does not have a disabled attribute, so any disabled attribute with any value (even "false") may get treated as a disabled widget. Linux didn't used to do this, but in Australis the Firefox CSS has been used to override the OS theming. Sounds like you're seeing something else. Does the button actually have the expected attribute when you've added it? Or does it not get the attribute until after the restart?
I'm on Linux as well, the attribute is not set until I restart Firefox. The "disabled" property is also "undefined" immediately after the button is added.
(In reply to Alexander Dietrich from comment #8) > I'm on Linux as well, the attribute is not set until I restart Firefox. > > The "disabled" property is also "undefined" immediately after the button is > added. This is a separate bug. Please file it with more detailed steps to reproduce.
Search/replace to the rescue... Note that I've only updated the generic toolbarbutton styles, not the ones for specific buttons/menuitems, because there we control the state and this shouldn't be an issue (and I don't think those styles were changed for Australis)
Attachment #8383128 - Flags: review?(MattN+bmo)
Assignee: nobody → gijskruitbosch+bugs
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #8383128 - Flags: review?(MattN+bmo) → review?(jaws)
Comment on attachment 8383128 [details] [diff] [review] only style disabled='true' as disabled, not disabled='false', after Australis restyle, We also do things like :not([disabled]) on Windows, so I'd rather not let these get out of sync.
Attachment #8383128 - Flags: review?(jaws)
Now with windows and OS X goodness. Still only through corrective use of search/replace.
Attachment #8384702 - Flags: review?(jaws)
Attachment #8383128 - Attachment is obsolete: true
Summary: [Linux] Australis: disabled="false" buttons don't get appropriate hover/active styles → Australis: disabled="false" buttons don't get appropriate hover/active styles
Comment on attachment 8384702 [details] [diff] [review] only style disabled='true' as disabled, not disabled='false', after Australis restyle, Review of attachment 8384702 [details] [diff] [review]: ----------------------------------------------------------------- r=me (don't forget to update the commit message to say r=jaws)
Attachment #8384702 - Flags: review?(jaws) → review+
OS: Linux → All
Hardware: x86 → All
Whiteboard: [Australis:P3-] → [Australis:P3-][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3-][fixed-in-fx-team] → [Australis:P3-]
Target Milestone: --- → Firefox 30
Comment on attachment 8384702 [details] [diff] [review] only style disabled='true' as disabled, not disabled='false', after Australis restyle, [Approval Request Comment] Bug caused by (feature/regressing bug #): Australis User impact if declined: non-disabled buttons will look/behave disabled Testing completed (on m-c, etc.): on m-c, locally Risk to taking this patch (and alternatives if risky): low, CSS-only fix String or IDL/UUID changes made by this patch: none
Attachment #8384702 - Flags: approval-mozilla-aurora?
Attachment #8384702 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: