molily: Wie kann man dies korrekt mit CSS realisieren?

Beitrag lesen

Hallo,

http://www.w3.org/TR/wai-aria/roles#presentation

Wie verhält es sich denn mit Kindelementen, die ggfl. eine eigene Rolle hätten?

Siehe Link:

»For any element with a role of presentation and which is not focusable, the user agent MUST NOT expose the implicit native semantics of the element (the role and its states and properties) to accessibility APIs. However, the user agent MUST expose content and descendant elements that do not have an explicit or inherited role of presentation. Thus, the presentation role causes a given element to be treated as having no role or to be removed from the accessibility tree, but does not cause the content contained within the element to be removed from the accessibility tree.«

Also müsste man die role-Angabe da in jedem Element neu wiederholen?

Wenn du die Kinder ebenfalls »neutralisieren« willst, musst du ihnen einzeln role="presentation" zuweisen.

Mathias