aria-actions on ancestors
What authors expect and how it could work
w3c/aria#2883 · ARIA WG, TPAC 2026, Dublin · James Craig (@cookiecrook)
The problem
Works: on the link
<li>
<a href="…"
aria-actions="fave-1 del-1">ARIA</a>
<button id="fave-1">Favorite</button>
<button id="del-1">Delete</button>
</li>
Doesn't work: on the row
<tr aria-actions="fave-1 del-1">
<th><a href="…">ARIA</a></th>
<td>1.2</td> …
<td>
<button id="fave-1">Favorite</button>
<button id="del-1">Delete</button>
</td>
</tr>
Native example
UIKit
myView.isAccessibilityElement = true
myView.accessibilityCustomActions = [
UIAccessibilityCustomAction(name: "Favorite") { _ in
viewModel.favoriteItem()
return true
},
UIAccessibilityCustomAction(name: "Delete") { _ in
viewModel.deleteItem()
return true
}
]
SwiftUI
HStack {
// item content
}
.accessibilityElement()
.accessibilityAction(named: Text("Favorite")) {
viewModel.favoriteItem()
}
.accessibilityAction(named: Text("Delete")) {
viewModel.deleteItem()
}
Demo: aria-actions test case
Options
- 1.No change in PR #1805
- 2.Actions either from the element, or the first ancestor with actions
- 3.Inherit and concatenate actions from current element and all ancestors
- 4.2 or 3, plus an explicit override (
aria-actions=""is currently a placeholder/promise, not an override) - 5.Something else?
Discussion
- If concatenated, determine order and confirm de-duplication
- Should this land in PR #1805 or a follow-up?