mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
A11Y: announce "link copied!" confirmation for screen readers (#29058)
This commit is contained in:
@@ -62,6 +62,10 @@ export const ButtonClass = {
|
||||
attributes["aria-pressed"] = attrs.ariaPressed;
|
||||
}
|
||||
|
||||
if (attrs.ariaLive) {
|
||||
attributes["aria-live"] = attrs.ariaLive;
|
||||
}
|
||||
|
||||
if (attrs.tabAttrs) {
|
||||
const tab = attrs.tabAttrs;
|
||||
attributes["aria-selected"] = tab["aria-selected"];
|
||||
|
||||
@@ -354,6 +354,7 @@ registerButton("copyLink", () => {
|
||||
icon: "d-post-share",
|
||||
className: "post-action-menu__copy-link",
|
||||
title: "post.controls.copy_title",
|
||||
ariaLive: "polite",
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user