adopted-ember-addons / adopted-ember-addons/ember-paper

Form elements that accept `required` don't set an A11y attribute on the child element

未关闭
#1,167 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
879
派生
327
PR 合并指标
30 天内没有已合并 PR

描述

Elements such as `` output html that shows validation messages and the label has a class of `.md-required`, but these do little for accessibility. Any form element that is required should pass through a `required` or `aria-required="true"` attribute into the element itself for A11y tools to be able to read. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-required_attribute

This should apply to Paper Input (including `textarea={{true}}`, Paper Autocomplete, Ember Select
Ideally Paper Radio Paper Switch and Paper Checkbox as well, but it seems some of that work is a work-in-progress https://github.com/miguelcobain/ember-paper/pull/692

---

For now, a workaround can be done by doing the following:

```hbs

```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。