Feature/#248 slider keyboard (#257)

* Added tabIndex=0 to <svg> in Slider to allow keyboard focus

* further tests for mobile keyboard fix

* Proof of concept of way to get mobile keyboard to open for Slider component

* Added CSS to slider input box to make it invisible but still usable

* Update to hide text input and move it up to same position as slider

* Change slider text field type to 'tel" to force numeric-only keyboard on mobile

* Added focus/blur handlers and initial styling to show/hide text field component

* Update to insure text field values are updated when slider moves, and vice versa.

* Added timeout handler for Outfitting sliders to raise keyboard after 1500ms. Doesn't work 100% on iPhone.

* Changed touch/mouse down event handlers to change the display value on the parent div, then use componentDidUpdate to set focus on the text box.

* Added tap/hold mousedown/hold keyboard display - works on desktop, iOS, and Android
This commit is contained in:
Pat Nellesen
2018-05-03 18:01:55 -05:00
committed by William
parent 8787303d2a
commit baf59aafcb
2 changed files with 362 additions and 166 deletions

1
.gitignore vendored
View File

@@ -7,3 +7,4 @@ nginx.pid
/bin
env
*.swp
.project