Filter
フィルター
filterは、選んだ条件に合うものだけを表示する仕組みです。元のデータを書き換えません。
実際の例
タスクリストは、今週が期限でまだ終わっていない、自分のタスクを表示します。選択中のフィルターも見えたままになります。
主な部分
- 01可視ラベル
- 02Interaction target
- 03Current state
- 04Keyboard behavior
以下の場合に使用します
人々が大きなコレクションから役立つ小さなセットを頻繁に必要とする場合に使用します。
以下の場合は使用しないでください
デフォルトのフィルターを隠してはいけません。フィルターを元に戻したり、明確に削除できるようにしましょう。
コードで使用する名前
query params / predicate 出荷前に
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 フィルター (Filter)。 User context:タスクリストは、今週が期限でまだ終わっていない、自分のタスクを表示します。選択中のフィルターも見えたままになります。 Recommended pattern:フィルター (Filter)。 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 フィルター (Filter) is used now. Definition: filterは、選んだ条件に合うものだけを表示する仕組みです。元のデータを書き換えません。 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.