Closed Bug 1790700 Opened 2 years ago Closed 8 months ago

Consider only showing number input up/down spinner buttons on hover or focus (and not at all on Android)

Categories

(Core :: Layout: Form Controls, defect, P3)

defect

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: twisniewski, Assigned: gregp)

References

Details

(Keywords: webcompat:platform-bug)

Attachments

(1 file)

The HTML number-type input's spinner buttons can get in the way, especially on Android, as noted at https://webcompat.com/issues/107783

Chrome on Android does not seem to show the spinners at all, which seems reasonable given how difficult it can be to even use such a small UI on a small touchscreen. On desktop it only reveals them when the input has focus, or on-hover. This all seems like a reasonable compromise to me, and should help mitigate such webcompat issues.

The severity field is not set for this bug.
:emilio, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Should be a trivial patch if we wanted to. Does this need UX input?

Severity: -- → S3
Flags: needinfo?(emilio)
Priority: -- → P3
Assignee: nobody → gregp
Status: NEW → ASSIGNED
Pushed by gp3033@protonmail.com: https://hg.mozilla.org/integration/autoland/rev/fedd91b7af1e Show <input type='number'> spin buttons only on hover/focus, also hide them on Android r=emilio

Backed out for causing reftest failures in number-spinbox-disabled.html

  • Backout link
  • Push with failures
  • Failure Log
  • Failure lines: REFTEST TEST-UNEXPECTED-FAIL | layout/reftests/forms/input/number/not-other-type-unthemed-1.html != layout/reftests/forms/input/number/not-other-type-unthemed-1a-notref.html | image comparison, max difference: 0, number of differing pixels: 0
    REFTEST TEST-UNEXPECTED-FAIL | layout/reftests/forms/input/number/number-spinbox-disabled.html != layout/reftests/forms/input/number/number-spinbox-disabled-notref.html | image comparison, max difference: 0, number of differing pixels: 0
Flags: needinfo?(gregp)
Pushed by gp3033@protonmail.com: https://hg.mozilla.org/integration/autoland/rev/8d4c98c06aec Show <input type='number'> spin buttons only on hover/focus, also hide them on Android r=emilio

Backed out changeset 8d4c98c06aec (bug 1790700) to resolve a merge back central to autoland conflict - this will be relanded after.

Pushed by imoraru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/11c91ab7be22 Show <input type='number'> spin buttons only on hover/focus, also hide them on Android r=emilio r=reland CLOSED TREE
Backout by imoraru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/269db9320df2 Backed out changeset fedd91b7af1e for causing reftest failures in /not-other-type-unthemed-1.html CLOSED TREE
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Flags: needinfo?(gregp)
Blocks: 1882931
Blocks: 1899401
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: