Asking for feedback: Tag Reveal Component in Topic Lists - Expand/Collapse tags in topic lists

  • I think you need to review the CSS.

    • you should probably not add discourse-tag to the toggle button, it’s not a tag.
    • don’t use box class on it as well, it messes up the list style (I used “-box”)
    • toggle_tag_style setting has only “box” value, maybe you could add “none”, so it can fit better in list/bullet style.
    • starts simple and you can adjust as you want
      .reveal-tag-action {
        color: var(--primary-500);
      
        &.-box {
          background-color: var(--primary-50);
          outline: 1px solid var(--primary-200);
          padding-inline: 8px;
        }
      }
      
      /* Hides the last separator before the toggle button */
      .discourse-tags__tag-separator:has(+ .reveal-tag-action) {
        visibility: hidden;
      }
      

    Bs1rdLFyIU

    Box style in site and them settings:
    chrome_raXs2Gc1sd

Will give more feedback on the CSS you inject. Time to sleep for now.