# Modifying style attribute dynamically on Topic List Item

**URL:** <https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415>\
**Category:** Development\
**Created:** [January 9, 2025, 11:08pm UTC](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415 "2025-01-09T23:08:10Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [January 30, 2025, 5:05pm UTC](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415/11 "2025-01-30T17:05:06Z")

</div>

> [@david](#):
>
> We could introduce specific transformers in certain places. But I don’t see us adding a general API which would allow you to attach to any element/component.

Thanks. So far so good with your current technique, I’ve tailored it for TLP and it appears to function well. I’ll revert if I find any more potential gaps.

> [@david](#):
>
> As for the style= attribute discussion, I made this PR. Will try to get it reviewed/merged:

Awesome! I should be ready for it by the time that’s merged, looking forward to it! thanks David!

---

_[View the full topic](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415)._
