Modern types are not supported in old browsers The situation is improving, but question any design which prioritizes form over function. Standard controls are difficult to styleĬSS styling is limited and often requires hacks, such as overlaying an input with its label’s ::before and ::after pseudo-elements. There are three primary reasons developers choose to create JavaScript-based inputs. Perhaps your control is superior to the standard date picker on desktop, iOS, and Android, but the unfamiliar UI will confuse some users. You’re also creating a different user experience. You have to consider the mouse, keyboard, touch, speech, accessibility, screen dimensions, and what happens when JavaScript fails. Writing custom input controls is difficult. If you’re writing a new JavaScript-based date entry component, please stop and step away from your keyboard!
0 Comments
Leave a Reply. |