Closed Bug 594484 Opened 14 years ago Closed 14 years ago

disabled number box styling is broken

Categories

(Toolkit :: Themes, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b7

People

(Reporter: Gavin, Assigned: mstange)

Details

Attachments

(1 file, 1 obsolete file)

The text isn't greyed out, and the cursor is wrong too.

<textbox type="number" disabled="true" value="20"/>
Attached patch patch? (obsolete) — Splinter Review
This seems to fix it, but I don't really know if there's a better way to do this, or whether this is complete given the other styling in that file.
Attachment #473149 - Flags: feedback?(enndeakin)
Why does this only affect Mac?
Is this a regression?
I think you just need to remove the color and cursor properties from the .numberbox-input-box rule in numberbox.css. The correct color is already set on the textbox and just needs to be inherited down properly. For the non-disabled case, cursor:text is set by forms.css on the html:input and doesn't need to be set on the .numberbox-input-box.
Comment on attachment 473149 [details] [diff] [review]
patch?

I have no idea if this ever worked, or why it only affects Mac. Sounds like Markus' suggestion is better, though.
Attachment #473149 - Flags: feedback?(enndeakin)
Attached patch v1Splinter Review
Can you test this on Linux?
Assignee: nobody → mstange
Attachment #473149 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #475554 - Flags: review?(dao)
Works for me on Linux - cursor is "text" when enabled, normal when disabled.
Attachment #475554 - Flags: review?(dao) → review+
Attachment #475554 - Flags: approval2.0?
Attachment #475554 - Flags: approval2.0? → approval2.0+
http://hg.mozilla.org/mozilla-central/rev/8130457aed61
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Target Milestone: mozilla2.0b8 → mozilla2.0b7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: