Closed Bug 1077080 Opened 10 years ago Closed 10 years ago

submit button states in about:feedback

Categories

(Firefox for Android Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(firefox36 verified, firefox37 verified)

VERIFIED FIXED
Firefox 36
Tracking Status
firefox36 --- verified
firefox37 --- verified

People

(Reporter: vivek, Assigned: vivek, Mentored)

References

Details

(Whiteboard: [lang=html][lang=js][lang=css])

Attachments

(1 file, 1 obsolete file)

This is a follow up bug for #1007436

While giving negative feedback, Submit button should be in disabled state when there are no valid text in textbox.
Assignee: nobody → vivekb.balakrishnan
Depends on: 1007436
Whiteboard: [lang=html][lang=js][lang=css]
Attached patch 1077080.patch (obsolete) — Splinter Review
Patch to handle button states

Mock available at 
https://drive.google.com/folderview?id=0B34Nogao7VfpSENocE5veG1wTms&usp=sharing
Attachment #8502856 - Flags: review?(margaret.leibovic)
Attachment #8502856 - Flags: feedback?(alam)
Comment on attachment 8502856 [details] [diff] [review]
1077080.patch

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

::: mobile/android/themes/core/aboutFeedback.css
@@ +189,5 @@
>    color: #fff;
>  }
>  
> +.description:invalid ~ .send-feedback {
> +  background-color: #8698A8;

Does this pseduo-class apply before the user tries to submit an invalid form?

I think it might be clearer to just enable/disable the submit button, then style those enabled/disabled states.
Comment on attachment 8502856 [details] [diff] [review]
1077080.patch

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

After talking to vivek on IRC, I think this approach is fine.
Attachment #8502856 - Flags: review?(margaret.leibovic) → review+
Comment on attachment 8502856 [details] [diff] [review]
1077080.patch

i feel like the tip in the last step is a bit unnecessary but otherwise, looks good!
Attachment #8502856 - Flags: feedback?(alam) → feedback+
Keywords: checkin-needed
(In reply to Anthony Lam (:antlam) from comment #4)

> i feel like the tip in the last step is a bit unnecessary but otherwise,
> looks good!

That popup is our default form validation popup, so that's part of the platform.
Hi,

seems this patch didn't apply cleanly like:

patching file mobile/android/themes/core/aboutFeedback.css
Hunk #1 FAILED at 178
1 out of 1 hunks FAILED -- saving rejects to file mobile/android/themes/core/aboutFeedback.css.rej
Keywords: checkin-needed
Attached patch 1077080.patchSplinter Review
A new patch based on latest tree.
Attachment #8502856 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/integration/fx-team/rev/7310cc81927e
Keywords: checkin-needed
Whiteboard: [lang=html][lang=js][lang=css] → [lang=html][lang=js][lang=css][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/7310cc81927e
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [lang=html][lang=js][lang=css][fixed-in-fx-team] → [lang=html][lang=js][lang=css]
Target Milestone: --- → Firefox 36
Verified as fixed in Firefox for Android Nightly 37.0a1 (2014-12-10) and Firefox for Android Aurora 36.0a2 (2014-12-10).
Device: Nexus 4 (Android 4.4.4)
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: