Summary
T393567: UserLinkRenderer: Add hook to allow modifying the HTML fragment generated for the username is adding a hook to allow modifying the HTML fragment for username. We can prepend to this fragment with the HTML needed for the user info card button.
User story
- as a user opted into the user info card feature, I should see the button icon for this tool on page load, without a layout shift
Technical notes
- Use an OOUI buttons that is infusable by the client side JS for the user info card
- Vary the icon based on whether the account is permanent or temporary
Acceptance criteria
- Component code updated
- Relevant component code is tested
- Documentation updated