arya2004/cmt-autofill

Improve Form Accessibility (a11y)

开放

#15 创建于 2025年10月2日

 (1 条评论) (0 个反应) (1 位负责人)JavaScript (11 个派生)auto 404
good first issuehacktoberfesthacktoberfest-acceptedhtmljavascript

仓库指标

星标
 (6 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Add <label> elements and improve form markup for screen readers.

File to modify: popup.html

How to do it: Wrap each input in a <label> with descriptive text.

<template id="authorFormTemplate">
  <div class="author-form">
    <label>Email: <input type="email" class="author-email" placeholder="Email"></label>
    <label>First Name: <input type="text" class="author-first-name" placeholder="First Name"></label>
    <label>Last Name: <input type="text" class="author-last-name" placeholder="Last Name"></label>
    <label>Organization: <input type="text" class="author-organization" placeholder="Organization"></label>
    <label>Country: 
      <select class="author-country"></select>
    </label>
    <button type="button" class="remove-author-btn">Remove</button>
  </div>
</template>

贡献者指南