Elements whose role is none or presentation must not conflict with other roles

ルールID: presentation-role-conflict
ルールセット: axe-core 4.10
ユーザーへの影響: 軽微
ガイドライン: Deque Best Practice
 

Accessibility testing for dev teams - No experience required

Find and fix up to 80% of accessibility issues with axe DevTools Pro. Get started with your free trial today. No credit card needed.

Compliance Data & Impact

User Impact

軽微
Minor
Critical

Disabilities Affected

  • 視覚障害
  • ロービジョン
  • 運動障害

Standard(s)

  • Deque Best Practice

    修正方法

    Correct markup solutions

    The presentation-role-conflict rule has two markup patterns that pass test criteria:

    <li role="none"></li>
    
    <li role="presentation"></li>
    1. Ensure that each element with role="none" or role="presentation" does not have one of the following characteristics:

    Incorrect markup solutions

    The presentation-role-conflict rule has three markup patterns that fail testing criteria:

    <li role="none" id="global-attr" aria-hidden="true"></li>
    
    <button id="natively-focusable" role="none"></button>
    
    <li role="presentation" id="tabindex" tabindex="0"></li>

    なぜ重要なのか

    There are certain cases where the semantic role of an element with role="none" or role="presentation" does not resolve to none or presentation (respectively). When this happens, the element is not removed from the accessibility tree (as expected) and screen readers are able to interact with it.

    To ensure the element remains removed from the accessibility tree, you should not add any global ARIA attributes to the element or make if focusable.

    ルールの説明

    Ensures elements which are marked to be removed from the accessibility tree are in fact removed.

    仕組みについて (簡単に言うと)

    Checks all elements with role=“none” or role=“presentation” to ensure they do not have a global ARIA attribute and are not focusable.

    リソース

    axe 4.10 ルールの一覧 を参照する

    この情報は役に立ちましたか?

    すでにフィードバックをいただきました、ありがとうございます。.

    あなたの回答は次のとおりです。

    この情報は役に立ちましたか?
    フィードバックが提出された日付/時刻: