Badge
バッジ
バッジは、他のアイテムに付けられる小さく、クリックできないマークです。これはカウント、状態、または短い信号を示すもので、ウェブ標準ではなくデザインパターンです。
実際の例
受信トレイには3件の未読高優先メッセージがあります。受信トレイのテキストとアクセシブルネームの両方が、バッジを別のキーボード操作にすることなく件数を示します。クリック可能なフィルターピルはバッジではなくチップです。
主な部分
- 01ホスト要素
- 02コンパクト値
- 03アクセシブル相当物
以下の場合に使用します
メインのラベルやアイコンに付随する小さな追加のステータスやカウントには、この用語を使用します。
以下の場合は使用しないでください
長い必要なテキスト、アクション、または色だけで示される意味をバッジに入れないでください。
コードで使用する名前
label + noninteractive status indicator 出荷前に
Before release, check the page structure, keyboard access, visible focus, contrast, and zoom. Also check loading, empty, error, success, cancel, and reduced-motion states.
Outcome:Complete the task with バッジ (Badge)。 User context:受信トレイには3件の未読高優先メッセージがあります。受信トレイのテキストとアクセシブルネームの両方が、バッジを別のキーボード操作にすることなく件数を示します。クリック可能なフィルターピルはバッジではなくチップです。 Recommended pattern:バッジ (Badge)。 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 バッジ (Badge) is used now. Definition: バッジは、他のアイテムに付けられる小さく、クリックできないマークです。これはカウント、状態、または短い信号を示すもので、ウェブ標準ではなくデザインパターンです。 Release checks: Before release, check the page structure, keyboard access, visible focus, contrast, and zoom. Also check loading, empty, error, success, cancel, and reduced-motion states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.