Form Label
フォームラベル
Form Labelは、その入力欄に何を書けばいいかを伝えます。コードで、対応する入力欄としっかり結びつけます。
実際の例
チェックアウトの入力欄では、「カード名義人」を入力ボックスの上に置くよ。下にあるヒントで、どう書けばいいのか説明するんだ。
主な部分
- 01永続ラベル
- 02Input control
- 03Hint or format
- 04Validation message
以下の場合に使用します
プレースホルダーやアイコンがある場合でも、すべての入力に視覚的なラベルを付けます。
以下の場合は使用しないでください
プレースホルダーを唯一のラベルとして使用しないでください。近くのテキストだけではアクセシブルな名前を提供できません。
コードで使用する名前
<label for> / aria-labelledby 出荷前に
Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages.
Outcome:Complete the task with フォームラベル (Form Label)。 User context:チェックアウトの入力欄では、「カード名義人」を入力ボックスの上に置くよ。下にあるヒントで、どう書けばいいのか説明するんだ。 Recommended pattern:フォームラベル (Form Label)。 Why it fits:プレースホルダーやアイコンがある場合でも、すべての入力に視覚的なラベルを付けます。 Do not use it when:プレースホルダーを唯一のラベルとして使用しないでください。近くのテキストだけではアクセシブルな名前を提供できません。 Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary):この標準は、列挙された範囲のみを対象とします。視覚スタイル、製品の判断、またはVibularyの例は選びません。 Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
このリクエストを確認する
Review how フォームラベル (Form Label) is used now. Definition: Form Labelは、その入力欄に何を書けばいいかを伝えます。コードで、対応する入力欄としっかり結びつけます。 Release checks: Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.