Skip to content

Document ARIA mappings for enum-valued properties - #764

Merged
DataTriny merged 2 commits into
AccessKit:mainfrom
blinding-pixels:Docs-enum-properties
Aug 21, 2026
Merged

Document ARIA mappings for enum-valued properties#764
DataTriny merged 2 commits into
AccessKit:mainfrom
blinding-pixels:Docs-enum-properties

Conversation

@blinding-pixels

Copy link
Copy Markdown
Contributor

This continues the documentation work by covering the enum-valued properties.

The two differences I found are that Toggled combines the separate aria-checked and aria-pressed states based on the node's role, and AriaCurrent supports the defined enum values while ARIA also treats unrecognized non-empty tokens as true.

I ran:

  • cargo fmt --all -- --check
  • RUSTDOCFLAGS="-D warnings" cargo doc -p accesskit --no-deps
  • cargo test -p accesskit

@DataTriny DataTriny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one comment.

Comment thread accesskit/src/lib.rs Outdated
/// Whether and how this node represents the current item within a set. ARIA
/// equivalent: [`aria-current`].
///
/// **Difference with ARIA:** `aria-current` accepts unrecognized non-empty

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The difference is obvious and already enforced by the type system, I don't think it's even worth mentioning here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Apologies for the deleay.

@DataTriny DataTriny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@DataTriny
DataTriny merged commit 5dc6959 into AccessKit:main Aug 21, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants