Hi, I want to change the extensions icons of sidebar-revamp but the image is in the html and I can’t get it to work.
You must log in or register to comment.
I’d probably just make the img use a variable if one is set, and then set the variable for the shadow root host based on its extensionId attribute:
.button-background > img{ content: var(--my-custom-image,none); } moz-button[extensionId="some-extension-id"]{ --my-custom-image: url("image.png"); }
Thanks. 😄👍 💙