spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Feat]: Default-values for slider / sider-handle

Open spdev3000 opened this issue 3 years ago • 8 comments

Code of conduct

  • [X] I agree to follow this project's code of conduct.

Impacted component(s)

Slider, SliderHandle

Description of the requested feature

We'd like to have a feature implemented in Slider or SliderHandle to provide a default-value. If the user would then double click on the slider or the handle the value would reset to the provided default-value.

Mockups or screenshots

No response

Implementation notes or ideas

I tested also detecting a double click on the slider track. This might be possible to let the user even reset a slider when not double clicking on the slider handle. We need to consider resetting values also for keyboard-users. Maybe we can use Escape key when the handle has focus to reset to default value (if given).

spdev3000 avatar Jan 21 '22 10:01 spdev3000

Please also consider touch users, screen reader users and voice recognition users when thinking about how this should work.

jnurthen avatar Jul 29 '22 15:07 jnurthen

@jnurthen do you have concerns about accessibility with the core spec?

If so, is there an alternative input to a double-click that you would recommend replacing the Spectrum behavior with?

hunterloftis avatar Jul 29 '22 17:07 hunterloftis

I have concerns - it doesn't appear to take account of any input mechanisms other than pointers

jnurthen avatar Jul 29 '22 17:07 jnurthen

I filed https://jira.corp.adobe.com/browse/SDS-12156

jnurthen avatar Jul 29 '22 18:07 jnurthen

Thanks @jnurthen!

hunterloftis avatar Jul 29 '22 18:07 hunterloftis

related to #586

najikahalsema avatar Oct 26 '22 19:10 najikahalsema

Erroneously closed.

Westbrook avatar Jan 19 '24 18:01 Westbrook

Needs some testing on touch users, screen reader users and voice recognition

Rajdeepc avatar Feb 01 '24 11:02 Rajdeepc