mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 08:18:39 +08:00

Why this change? Prior to this change, we placed the identifier for the tag using CSS classes like `sidebar-section-link-<tag name>`. However, we found that it wasn't obvious that an identifier for the tag exists since it is first buried in the CSS classes and second there isn't a way to describe what the identifier is. Using data attributes, it makes it more obvious that an identifier exists and what the identifier represents. Follow-up to 53eb49de72718196e534d2f92edd4fe418682d51