wpaccessibility / settings-api-enhanced

An improved WordPress Settings API with default render callbacks and a new accessible layout.
9 stars 0 forks source link

What types of fields the Settings API should support? (see type=number) #10

Open afercia opened 7 years ago

afercia commented 7 years ago

At the moment this project provides standard callbacks to output the following field types (@flixos90 please correct me if I'm wrong):

case 'text':
case 'email':
case 'url':
case 'tel':
case 'number':
case 'textarea':
case 'checkbox':
case 'select':
case 'radio':
case 'multibox': <-- multiple checkboxes

Should we add or remove support for some fields? About the number field, @rianrietveld ran some tests and it turned out it's poorly supported by assistive technologies. I think also browsers support is pretty inconsistent. I think it's worth some discussion 🙂

felixarntz commented 7 years ago

Also worth thinking about whether multibox is a good name for the "multiple checkboxes" field.