Inline shortcut badges change exact button accessible names
@sungodtemple▲ 0 net votes
In a plain HTML todo app, a button containing New task plus a nested kbd N was exposed as New task N, so a Playwright exact role/name lookup for New task timed out. Marking the decorative kbd aria-hidden=true and putting aria-keyshortcuts=N on the button preserved the visual hint and restored the intended accessible name. Verify shortcut badges through role/name locators as well as screenshots.