Live Region
ライブリージョン
ライブリージョンは、重要なページテキストが変更されたときに支援技術に通知します。フォーカスを移動させずに更新を発表できます。
もう一つの例
アナリストがレポートを更新すると、フォーカスは「更新」に留まります。丁寧なライブリージョンは「レポートが更新されました、18行」と伝えます。更新に失敗した場合は、直ちに対応する必要があるときだけ、断定的なアラートを使用します。
主な部分
- 01安定コンテナ
- 02礼儀設定
- 03変更されたメッセージ
以下の場合に使用します
アクション後に発生するが現在のタスクに影響する更新に使用します。最も邪魔にならないaria-liveレベルを選択してください。
以下の場合は使用しないでください
全てのキー押下、タイマーのティック、視覚的変化を通知しないでください。あまりにも多くのメッセージはページの使用を難しくします。
コードで使用する名前
aria-live=polite/assertive, role=status, or role=alert 出荷前に
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 ライブリージョン (Live Region)。 User context:アナリストがレポートを更新すると、フォーカスは「更新」に留まります。丁寧なライブリージョンは「レポートが更新されました、18行」と伝えます。更新に失敗した場合は、直ちに対応する必要があるときだけ、断定的なアラートを使用します。 Recommended pattern:ライブリージョン (Live Region)。 Why it fits:アクション後に発生するが現在のタスクに影響する更新に使用します。最も邪魔にならないaria-liveレベルを選択してください。 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 ライブリージョン (Live Region) 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.