bem-components icon indicating copy to clipboard operation
bem-components copied to clipboard

Review checkboxes and radio attr/prop usage

Open tadatuta opened this issue 9 years ago • 2 comments

It turned out that form.reset() works wrong with current way of checking/unchecking checkboxes.

Such variant was introduced in https://github.com/bem/bem-components/commit/012de48146234dc5c1ea47297687046311a0ac6b as a fix for previous change made for a11y: https://github.com/bem/bem-components/commit/db4a1385029ee328550aaacb541b41e021381fea

Is there any way to satisfy a11y and get rid of attr() setter?

tadatuta avatar Jul 25 '16 15:07 tadatuta

cc @aristov

tadatuta avatar Jul 25 '16 15:07 tadatuta

According to WAI-ARIA Authoring Practices for Checkbox widget, it should be possible to use aria-checked attribute.

narqo avatar Jul 25 '16 20:07 narqo