A11Y: Add button role to the reply-to-tab anchor on desktop (#26321)

This commit is contained in:
Kris 2024-03-22 10:58:14 -04:00 committed by GitHub
parent 9cadc402e6
commit 113b4246e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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"