mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 22:13:48 -04:00
name is designed for a human readable description of what the thing you're copying belongs to. (while thing is supposed to describe what the value represents. For example on the reply-to email address page, thing="ID" because you're copying a uuid, and name is the actual name of the email address. So the talkback speech will read out "copy ID to clipboard for my@email.com, button". However, in our case, there's no need to add what the context is for since each copyable item on the page is something different (a sort code, a VAT number, etc). Removing the name makes the talkback just read "Copy sort code to clipboard", which is what we want. However the macro also only shows a header if the name is present, so we have to add the header manually.