User tests: Successful: Unsuccessful:
Pull Request resolves # .
ARIA defines:
aria-posinset → position in the set
aria-setsize → total number of items
Both are human-relevant, not zero-based programming indexes.
So valid output should be:
| item | index | aria-posinset |
|---|---|---|
| first | 0 | 1 |
| second | 1 | 2 |
| third | 2 | 3 |
In media manager create some folders and then check the values of the a links of each tree item (directory name)
It should be telling you which item (posinset) the link is in the set (setsize)
This is an npm change so you either need to npm ci or use a pre-built package
the links are zero-based so the first link is
<a role="treeitem" aria-level="2" aria-setsize="6" aria-posinset="0" tabindex="-1"><span class="item-icon"><span class="icon-folder"></span></span><span class="item-name">banners</span></a>
and the last one will also have a posinset value of 1 less than the setsize
<a role="treeitem" aria-level="2" aria-setsize="6" aria-posinset="5" tabindex="-1"><span class="item-icon"><span class="icon-folder"></span></span><span class="item-name">banners</span></a>
the posinset correctly starts at 1 and ends with the value=setsize
<a role="treeitem" aria-level="2" aria-setsize="6" aria-posinset="1" tabindex="-1"><span class="item-icon"><span class="icon-folder"></span></span><span class="item-name">banners</span></a>
<a role="treeitem" aria-level="2" aria-setsize="6" aria-posinset="6" tabindex="-1"><span class="item-icon"><span class="icon-folder"></span></span><span class="item-name">banners</span></a>
it is debatable if we even need this as it wold normallyb only be used if the entire set is not displayed. But as we do already display the posinset it should at a minimum have the correct values
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_media NPM Change |
| Labels |
Added:
NPM Resource Changed
PR-5.4-dev
|
||