Numeric Stepper (Visual Pattern)
数値ステッパー(視覚パターン)
Numeric Stepper は、数字が入力できて、足したり引いたりするコントロールがついたものだよ。ネイティブの number input や、ARIA spinbutton のセマンティクスを使うことがあるよ。プラスボタンとマイナスボタンだけじゃ、そのセマンティクスは作れないよ。
実際の例
チケットの数量は、数字を4と入力するか、プラスとマイナスのコントロールを押すことができます。
主な部分
- 01永続ラベル
- 02Input control
- 03Hint or format
- 04Validation message
以下の場合に使用します
ワンステップの変更が一般的な場合の数量には、このパターンを使用してください。正しい入力またはスピンボタンのセマンティクスを構築してテストしてください。
以下の場合は使用しないでください
その視覚的な名前をアクセシビリティの役割として扱ってはいけません。また、押す回数が多くなりすぎる幅広い範囲でも避けてください。
コードで使用する名前
<input type="number"> 出荷前に
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 数値ステッパー(視覚パターン) (Numeric Stepper (Visual Pattern))。 User context:チケットの数量は、数字を4と入力するか、プラスとマイナスのコントロールを押すことができます。 Recommended pattern:数値ステッパー(視覚パターン) (Numeric Stepper (Visual Pattern))。 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):単一の公式標準が全体の用語を管理するわけではありません。その意味はチーム、プラットフォーム、またはフレームワークによって変わる可能性があります。 Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
このリクエストを確認する
Review how 数値ステッパー(視覚パターン) (Numeric Stepper (Visual Pattern)) is used now. Definition: Numeric Stepper は、数字が入力できて、足したり引いたりするコントロールがついたものだよ。ネイティブの number input や、ARIA spinbutton のセマンティクスを使うことがあるよ。プラスボタンとマイナスボタンだけじゃ、そのセマンティクスは作れないよ。 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.