# Staff color applies to quoted message

**URL:** https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774
**Category:** Bug
**Created:** [14 בינואר,‏ 2017,‏ 6:46pm UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774 "2017-01-14T18:46:03Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Silvanus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/silvanus/32/62831_2.png) [@Silvanus](https://meta.discourse.org/u/Silvanus)
#### Post date: [14 בינואר,‏ 2017,‏ 6:46pm UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774/1 "2017-01-14T18:46:03Z")

</div>

A post was written by staff member. The post is a response to another post (by non-staff member) and has the “in response to X” symbol at the top right corner. (As it happens, the message is the one right above it.) Clicking the symbol opens up the message again on top of the message (showing the message to which the post is a reply to).

The post by staff member had staff color added. The _color applied (bug!) to the replied message as well_.

Screenshot:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/9/994b02e68592be3893a5ef9c139e159d13443953.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21 בדצמבר,‏ 2017,‏ 12:16am UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774/2 "2017-12-21T00:16:13Z")

</div>

This _might_ be fixed with @awesomerobot’s latest change?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21 בדצמבר,‏ 2017,‏ 12:20am UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774/6 "2017-12-21T00:20:24Z")

</div>

Wait this isn’t a proper test _because you are staff_. You need to reply as a regular user.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21 בדצמבר,‏ 2017,‏ 12:21am UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774/8 "2017-12-21T00:21:34Z")

</div>

OK _now_ we have repro @awesomerobot not sure if fixable in CSS without contortions..

---

<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: [21 בדצמבר,‏ 2017,‏ 12:29am UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774/9 "2017-12-21T00:29:31Z")

</div>

I think it is easy enough to apply a CSS fix for this.

The reverse direction is hard though cause embedded posts now don’t have the correct class applied. (which is a seperate bug)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [21 בדצמבר,‏ 2017,‏ 2:58am UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774/10 "2017-12-21T02:58:31Z")

</div>

Just pushed a quick fix by adding additional specificity.

For future reference:

- **Selecting the nested replies** : easy, because there’s `.embedded-posts` wrapping them
- **Selecting the parent post’s cooked content** : easy, because it’s wrapped by `.regular`
- **Selecting the parent post’s avatar/meta** : a little annoying, because there’s nothing distinguishing them from the `.embedded-posts` avatar/meta. At some point we should either expand the `.regular` wrapper to include the parent’s avatar/meta _and_ cooked content, or just add a `.regular` class to them.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21 בדצמבר,‏ 2017,‏ 6:53am UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774/11 "2017-12-21T06:53:18Z")

</div>

Does not seem to be working yet @sam are builds not being pushed out?

---

<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: [21 בדצמבר,‏ 2017,‏ 9:46am UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774/12 "2017-12-21T09:46:00Z")

</div>

Yeah our build was broken, I amended our internal process to remind us once an hour if the build is broken.

---

<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: [21 בדצמבר,‏ 2017,‏ 9:46am UTC](https://meta.discourse.org/t/staff-color-applies-to-quoted-message/55774/13 "2017-12-21T09:46:23Z")

</div>


