vigetlabs / ca11y

A lightweight accessible dependency-free datepicker
http://code.viget.com/ca11y
26 stars 6 forks source link

HTML5 Date Input Support #27

Closed cwmanning closed 8 years ago

cwmanning commented 8 years ago

Adds a preferNative: true default option and tests for native input[type=date] support before initializing Ca11y. Also updates the existing example and test HTML to use a date input instead of a text input.

Google Chrome example with default options, where Ca11y is disabled:

screen shot 2016-01-11 at 12 22 59 pm

Relevant links: http://caniuse.com/#feat=input-datetime https://github.com/Modernizr/Modernizr/blob/695fd5ef3cad5b867785d5cff471d52a49aa82a7/feature-detects/inputtypes.js

cwmanning commented 8 years ago

Addresses #6

greypants commented 8 years ago

:+1: ! Couple minor questions, but this is great! Thanks!

cwmanning commented 8 years ago

After some discussion, it may make more sense to punt on this as an option entirely. Maybe move relevant info into the docs, something like HTML5 Date Inputs and Ca11y.