Closed Bug 842163 Opened 11 years ago Closed 11 years ago

Show a focus ring around <input type=range>

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: mounir, Assigned: jwatt)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Currently, when the <input type='range'> is focused, there is no user feedback. I think we should have a focus ring like for other form controls.
Yeah, I agree. We want to fix this before shipping.
Assignee: nobody → jwatt
Attached patch patch (obsolete) — Splinter Review
Attachment #718531 - Flags: review?(mounir)
Attached patch patchSplinter Review
Attachment #718531 - Attachment is obsolete: true
Attachment #718531 - Flags: review?(mounir)
Attachment #718533 - Flags: review?(mounir)
Comment on attachment 718533 [details] [diff] [review]
patch

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

::: layout/style/forms.css
@@ +731,5 @@
>  }
>  
> +input[type="range"]:-moz-focusring {
> +  /* Don't specify the outline-color, we should always use initial value. */
> +  outline: 1px dotted;

Could you combine that with the [type='image'] rule?

Also, open a follow-up to make sure we have a better handling for native theming.
Attachment #718533 - Flags: review?(mounir) → review+
https://hg.mozilla.org/mozilla-central/rev/ce21cc142877
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
(In reply to Mounir Lamouri (:mounir) from comment #4)
> Also, open a follow-up to make sure we have a better handling for native
> theming.

bug 845808
How is the focus ring meant to be styled? I've tried input[type="range"]:-moz-focusring {outline:...} and it only adds outline and does not replace the default 1px dotted outline.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: