Closed xelaint closed 1 month ago
a[daff-tree-item] has the aria-expanded attribute set on it. It should not have that attribute since links can't be expanded.
a[daff-tree-item]
aria-expanded
The aria-expanded should only be set on [daff-tree-item] if it's used with a <button> element.
[daff-tree-item]
<button>
Creating better accessible components.
Daffodil version: X.Y.Z Angular version: X.Y.Z For Tooling issues: - Node version: XX - Platform: Others:
:bug: Bug report
Current Behavior
a[daff-tree-item]
has thearia-expanded
attribute set on it. It should not have that attribute since links can't be expanded.Expected Behavior
The
aria-expanded
should only be set on[daff-tree-item]
if it's used with a<button>
element.Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Creating better accessible components.
Environment