False positive for rule element_orientation_unlocked #2131
Labels
engine
Issues in the accessibility-checker-engine component
false-positive
Rules incorrectly reporting a violation
user-reported
Issues identified outside of the core team
Describe the bug
Using my own website as a means to quickly test a pattern, I got an unexpected violation from the checker.
It seems that an element used purely for decoration is being flagged as a violation under the element_orientation_unlocked rule. This seems unnecessarily strict.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I wouldn't expect any error to be flagged here at all, since the element that it's highlighting is an empty generic div that is merely a decorative flourish to my page header area, which i've also set to aria-hidden=true (which is rather unnecessary tbh - but just done in the off chance a screen reader wouldn't immediately move pass this 'blank' area)
Screenshots
To call this out, i've modified the style of this element to be red (adjusting the
::after
pseudo element's background color - not pictured in the screenshot).Desktop (please complete the following information):
Additional context
While I think the intent of this check is good, it seems its overly strict if it's calling out decorative items such as this as being "violations".
Per the rational I can gather from the learn more doc on this:
i'd suggest that more nuance is needed, as while i can understand the intent behind this (prevent door-slam scenarios), this isn't anywhere close to what's happening on my site w/this decorative div.
Thanks!
Definition of Done
The text was updated successfully, but these errors were encountered: