[BUG]: Label descriptions within details elements flagging rule #1557
Labels
engine
Issues in the accessibility-checker-engine component
false-positive
Rules incorrectly reporting a violation
priority-2 (med)
Ready for QA
user-reported
Issues identified outside of the core team
Project
a11y checker extension
Browser
Chrome
Operating system
MacOS
Description
Description
When using a
<details>
element that contains a label with a child element in it's content, the label description rule is flagged when the details is closed. When opened, the rule is not flagged.Expectation
If the label is accessible when the details element is expanded, it should be accessible when the element is collapsed.
Steps to reproduce
for
referencing an input element<p>label</p>
CodeSandbox: https://codesandbox.io/s/eloquent-hofstadter-mm8r9n
The text was updated successfully, but these errors were encountered: