wix-playground / stylable-components

Fully-tested & strictly-typed component library based on React, using optional Wix styling.
MIT License
35 stars 3 forks source link

time-picker overview #364

Closed nadavwix closed 7 years ago

nadavwix commented 7 years ago

docs

implementation

style

tests

maksymc commented 7 years ago

"AM/PM button should not switch sides in RTL mode"

It should. Most of the resources that we've checked do that: ~ Booking.com ~ http://demos.telerik.com/kendo-ui/timepicker/right-to-left-support ~ native in Chrome & FF (version 57)

maksymc commented 7 years ago

"keyboard behavior is unclear in spec and missing delete/bkspace"

  1. Added delete/bkspace behavior
  2. As for "keyboard behavior is unclear" I am not sure what exactly is wrong. yes, it is complex but 70% of stuff is taken from w3 aria specs, so it should be pretty clear. Let me know if there is anything specific that is hard for you to understand.
wtfil commented 7 years ago

@nadavwix @properties, Ampm are fixed at https://github.com/wix/stylable-components/pull/458 rtl already implemented via context

Regarding mobile detection - we can not use mobile detection as is, because there are some mobile devices (Lumia) which are detected as touch devices (which is true) but they did not have the <input type='time'/> input. So I extends touch detection for this component to use native input only on touch devices which can actually show it

wtfil commented 7 years ago

@nadavov all tests for timepicker has beed refactored at https://github.com/wix/stylable-components/pull/466/files No more copy/paste and better tests titles

maksymc commented 7 years ago

segment data should be removed from state as it is derived from props

According to Fill this item is no longer relevant. Marking as done & closing the ticket.