Slider
スライダー
スライダーは、バーの上のつまみを動かして、1つの値や範囲を選びます。
実際の例
価格フィルターには2つのつまみがあるよ。一つは一番低い価格、もう一つは一番高い価格を決めるよ。
主な部分
- 01可視ラベル
- 02Interaction target
- 03Current state
- 04Keyboard behavior
以下の場合に使用します
正確な数字を入力するよりも、大まかなまたは相対的な選択が重要な場合に使用します。
以下の場合は使用しないでください
正確な値の場合、現在の数値を表示し、キーボードをサポートしてください。それ以外の場合は、スライダーを避けてください。
コードで使用する名前
<input type="range"> 出荷前に
Give assistive tools the control’s name (accessible name), purpose (role), value, and state. Check keyboard use, visible focus, target size, disabled and busy states, feedback, and recovery.
Outcome:Complete the task with スライダー (Slider)。 User context:価格フィルターには2つのつまみがあるよ。一つは一番低い価格、もう一つは一番高い価格を決めるよ。 Recommended pattern:スライダー (Slider)。 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 スライダー (Slider) is used now. Definition: スライダーは、バーの上のつまみを動かして、1つの値や範囲を選びます。 Release checks: Give assistive tools the control’s name (accessible name), purpose (role), value, and state. Check keyboard use, visible focus, target size, disabled and busy states, feedback, and recovery. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.