A11Y: Add button role to the reply-to-tab anchor on desktop (#26321)
This commit is contained in:
parent
9cadc402e6
commit
113b4246e6
|
@ -163,6 +163,7 @@ createWidget("reply-to-tab", {
|
|||
};
|
||||
|
||||
if (!this.attrs.mobileView) {
|
||||
result["role"] = "button";
|
||||
result["aria-controls"] = `embedded-posts__top--${attrs.post_number}`;
|
||||
result["aria-expanded"] = this.attrs.repliesAbove.length
|
||||
? "true"
|
||||
|
|
Loading…
Reference in New Issue