Closed DataTriny closed 3 weeks ago
Looks good. How strong do you feel about the indexing starting at 1 instead of 0?
As long as it is well documented, I don't think I have an issue with making it zero-based. Since zero-based indices probably feel more logical to developers, I wonder if we should update the position_in_set
property on our side. @mwcampbell?
I have no problem with making it 0-based. For a usize property, that also makes an illegal state unrepresentable.
@tronical We'll apply the offset on our end.
These two properties aren't yet implemented by AccessKit's platform adapters but I have tested that they indeed work as expected on my work-in-progress branch to add listbox support to AccessKit.
They allow assistive technologies to provide hints to users about where they are inside group widgets, to quickly tell how many choices are available (radio buttons) or their location in a potentially large list (list views, equivalent to the visual indication given by the scroll bar). They are especially useful if not elements are currently present in the tree. They correspond to ARIA's
aria-posinset
andaria-setsize
properties.Changelog: Add
accessible-position-in-set
andaccessible-size-of-set
properties