mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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
Block a user