What I want to do is change its markup, so I have more freedom styling avatars
- Add a data-attribute containing the letter for non-image avatars. This way I can use
content: attr() in a CSS pseudo-element
- Wrap the
innerHTML in a span, so I have more freedom styling it
- Remove
.toUpperCase(), and use text-transform: uppercase instead since it's more of a style choice
I noticed avatars are not a Component, but they are generated in a helper function. The data-attribute is something I can already pass to the helper function.
I've already looked at this extension. Is it possible to change all avatars sidewide though?