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.

  • @MrOtherGuyM
    link
    11 day ago

    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");
    }
    
    • @GodieOP
      link
      11 day ago

      Thanks. 😄👍 💙