Repository navigation
fix(rules): naming rules read the shared hidden-control reader #993 - #998
Merged
Merged
Conversation
…he hidden-control reader #993 Signed-off-by: Nik Cubrilovic <[email protected]>
…the shared hidden-control reader #993 Signed-off-by: Nik Cubrilovic <[email protected]>
…ol reader #993 Signed-off-by: Nik Cubrilovic <[email protected]>
#993 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff (rules, shared reader, docs). I did not run the tests, and CI was still pending when I looked. I found nothing that should block the merge.
Positives: hidden elements are counted in |
This was referenced Oct 21, 2026
nc9
added a commit
that referenced
this pull request
Oct 22, 2026
…trols through the shared reader (#1002) (#1004) Closes #1002. Same shape as #998: hidden elements skipped and counted, may-hide and no-js fallbacks reported unconfirmed, visible violations still fail. Signed-off-by: Nik Cubrilovic <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #993 (partly: see "Left").
Seven naming rules now read visibility through the shared hidden-control reader (
shared/static-hidden.ts):aria-meter-name,aria-progressbar-name,aria-toggle-field-name,aria-tooltip-name,aria-treeitem-name,input-image-alt,link-text(empty links; a hidden generic-text link is skipped too).hidden,aria-hidden,display: none, closed dialog): skipped, counted inhiddenWithoutNameon the pass.no-jsfallback on a page with an unread stylesheet:<check>-unconfirmed(script-state reason for no-js).hasNoJsClassbails out before splitting the class (perf test on a 20000-element DOM), and theas Tcast insortUnnamedControlsis gone (ControlItemtype).solutiontext updated per rule, CHANGELOG bullet added.Left:
frame-title,object-alt,empty-heading(read some hidden state themselves; not moved). #988 untouched.Tests:
packages/rules/tests/naming-rules-hidden-993.test.ts(73 tests: per rule hidden, no-js with unread styles, unsettled style, visible-fails, plus the bail-out), existing hidden-control tests still pass.tsgo --noEmitclean,tangly check --strictpasses.Docs changed in this PR. Squirrel agent skill: no change needed.