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)
Firefox
Theme
Tracking
()
VERIFIED
FIXED
Firefox 30
People
(Reporter: mozilla, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Whiteboard: [Australis:P3-])
Attachments
(1 file, 1 obsolete file)
|
15.46 KB,
patch
|
jaws
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•12 years ago
|
||
(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)
| Assignee | ||
Comment 2•12 years ago
|
||
Also, you marked this bug as "Australis" but also reported the version you're using as 17. Can you clarify?
| Reporter | ||
Comment 3•12 years ago
|
||
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)
| Reporter | ||
Comment 4•12 years ago
|
||
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.
| Assignee | ||
Comment 5•12 years ago
|
||
(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
Comment 6•12 years ago
|
||
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.
| Reporter | ||
Comment 7•12 years ago
|
||
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?
Comment 8•12 years ago
|
||
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.
| Assignee | ||
Comment 9•12 years ago
|
||
(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.
Updated•12 years ago
|
| Assignee | ||
Comment 10•12 years ago
|
||
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 | ||
Updated•12 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
| Assignee | ||
Updated•12 years ago
|
Attachment #8383128 -
Flags: review?(MattN+bmo) → review?(jaws)
Comment 11•12 years ago
|
||
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)
| Assignee | ||
Comment 12•12 years ago
|
||
Now with windows and OS X goodness. Still only through corrective use of search/replace.
Attachment #8384702 -
Flags: review?(jaws)
| Assignee | ||
Updated•12 years ago
|
Attachment #8383128 -
Attachment is obsolete: true
Updated•12 years ago
|
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 13•12 years ago
|
||
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+
| Assignee | ||
Comment 14•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
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
| Assignee | ||
Comment 16•12 years ago
|
||
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?
Updated•12 years ago
|
status-firefox29:
--- → affected
status-firefox30:
--- → fixed
Updated•12 years ago
|
Attachment #8384702 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 17•12 years ago
|
||
Updated•12 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•