# CSS failing to apply when settings changed on theme components

**URL:** https://meta.discourse.org/t/css-failing-to-apply-when-settings-changed-on-theme-components/95966
**Category:** Bug
**Created:** [August 30, 2018, 12:45am UTC](https://meta.discourse.org/t/css-failing-to-apply-when-settings-changed-on-theme-components/95966 "2018-08-30T00:45:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [August 30, 2018, 12:45am UTC](https://meta.discourse.org/t/css-failing-to-apply-when-settings-changed-on-theme-components/95966/1 "2018-08-30T00:45:00Z")

</div>

It appears there is a small bug that may have been introduced with the theme/component split.

Normally when you change a theme setting that affects the CSS, you can immediately see the change, even without refreshing. This is still working correctly with **themes**.

The bug occurs when you change a theme setting that affects the CSS on a **theme component** that has been added to a theme. The CSS does not change, even _with_ a refresh. The only way to trigger the change is to go into the CSS/HTML of the theme component and make a manual change.

I’ve created a small theme component that might help for testing. Theme-Creator does not allow you to add components to themes, so you will need to download it and try it out a test site in order to see the bug.

[https://theme-creator.discourse.org/theme/tshenry/css-setting-test](https://theme-creator.discourse.org/theme/tshenry/css-setting-test)

Please let me know if I need to clarify anything!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 30, 2018, 12:51am UTC](https://meta.discourse.org/t/css-failing-to-apply-when-settings-changed-on-theme-components/95966/2 "2018-08-30T00:51:27Z")

</div>

@Osama can you have a look at this?

---

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [August 30, 2018, 10:52am UTC](https://meta.discourse.org/t/css-failing-to-apply-when-settings-changed-on-theme-components/95966/4 "2018-08-30T10:52:03Z")

</div>

Good catch @tshenry, fixed in:

[https://github.com/discourse/discourse/pull/6340](https://github.com/discourse/discourse/pull/6340)

Thanks for reporting and for the component, it helped with debugging 🙂

---

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [August 31, 2018, 3:00pm UTC](https://meta.discourse.org/t/css-failing-to-apply-when-settings-changed-on-theme-components/95966/5 "2018-08-31T15:00:06Z")

</div>

This topic was automatically closed after 27 hours. New replies are no longer allowed.
