[RFC][fields] HTML structure of the input #10699
Labels
component: pickers
This is the name of the generic UI component, not the React module!
feature: Keyboard editing
Related to the pickers keyboard edition
RFC
Request For Comments
Current structure
The field currently has a single HTML
<input />
tag that contains the whole value (the whole date forDateField
/TimeField
.... and the whole date range forSingleInputDateRangeField
, ...)The limitation on accessibility are forcing us to consider other approaches and the resulting trade-offs
Possible structures
One
<input />
👎 Poor accessibility
👎 A lot of very custom JS behavior to handle our section-based editing
👎 The value in the input is not exactly the expect one (can have RTL UTF-8 characters or the one for no leading-zero)
One
<input />
per section👎 Can't benefit from customization of
TextField
(people that want to customize all their input throughout their application would have to re-do the customization on our fake textfield)👎 Can't select the whole value to copy / paste (to be checked more thoroughly)
One
<span />
per section withcontenteditable={true}
After looking at the examples on MDN, not sure this brings any major benefit, but to be tested.
👎 Can't benefit from customization of
TextField
(people that want to customize all their input throughout their application would have to re-do the customization on our fake textfield)👎 Can't select the whole value to copy / paste (to be checked more thoroughly)
The text was updated successfully, but these errors were encountered: