Accessibility
- It is a real button named by
label, which becomescopiedLabelwhile the checkmark shows. Name what is copied ("Copy link to MA-123"), not just "Copy". - A polite status region says
copiedLabelonce, so a screen reader hears that the copy happened without having to see the icon change. - The tooltip is
NbButton's own, drawn from the samelabel, so the name and the tooltip cannot disagree and no directive has to be installed. - The defaults, "Copy" and "Copied", come from the string catalogue (
copyButtonCopy,copyButtonCopied), soprovideNbStrings()translates them. AlabelorcopiedLabelyou pass wins over the catalogue.