tekvision / waiable

Rails Web Accessibility Initiative for the differently abled.
MIT License
16 stars 6 forks source link

Implement aria-required for mandetory fields #19

Open Sanghapal opened 9 years ago

Sanghapal commented 9 years ago

When a model in Rails has validates_presence implemented for certain fields, aria-required="true" must be generated for the corresponding input element generated for that implement.

jmuheim commented 9 years ago

Take a look at SimpleForm's HTML5 features:

https://github.com/plataformatec/simple_form#html-5-notice

sidnc86 commented 9 years ago

Hey thanks for sharing that! We had refered simple_form for knowing how they had implemented required="required" for the aria-required implementation. Now we have got that one fixed.

From: Joshua Muheim Sent: Wednesday, March 18, 2015 8:05 PM To: techvision/waiable Subject: Re: [waiable] Implement aria-required for mandetory fields (#19)

Take a look at SimpleForm's HTML5 features:

https://github.com/plataformatec/simple_form#html-5-notice

— Reply to this email directly or view it on GitHub.

shan9101 commented 9 years ago

Implemented aria-required property for Text field and all other sub-classes of TextField class (like email, password, File field, Datetime field, Tel field, Number field)