A11Y: announce "link copied!" confirmation for screen readers (#29058)
This commit is contained in:
parent
488dc1784b
commit
0aeeb67cac
|
@ -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",
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue