# Styling on assignment comments changed to look public

**URL:** https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804
**Category:** UX
**Tags:** assign
**Created:** [December 13, 2022, 2:16pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804 "2022-12-13T14:16:21Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [December 13, 2022, 2:16pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/1 "2022-12-13T14:16:21Z")

</div>

In the last few days, it seems that the styling on assignment comments changed to not be grey anymore.

Every time, it scares me that I’ve accidentally responded publicly with something I meant to be private:

 ![Selection_635](https://global.discourse-cdn.com/meta/original/4X/8/c/b/8cb317508c6bd9d02cb0c8b4612bdf1c062e51c2.png)

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [December 13, 2022, 3:04pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/4 "2022-12-13T15:04:11Z")

</div>

I don’t know this plugin, but after installing it and using it, it seems that there is no assigment-specific class to this message. Only general classes.

You can circumvent your issue with this CSS rule:

```css
.small-action .small-action-custom-message {
    color: var(--primary-700);
}

```

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [December 13, 2022, 3:28pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/5 "2022-12-13T15:28:22Z")

</div>

> [@Canapin](#):
>
> it seems that there is no assigment-specific class to this message.

🤷‍♀️ they used to be grey. Something changed, and I didn’t do it. I can certainly patch my instance, but probably the fix should be systemic.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [December 13, 2022, 3:38pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/6 "2022-12-13T15:38:09Z")

</div>

Probably from this commit from 8 days ago then:  
[https://github.com/discourse/discourse/commit/6d1de26279de1dcf728d24f838217d0300b938cf#diff-6da83680c0c7a3be72a1d9003c857fcae8c83d8312f3fbcbb452e4f85d68dc21R1186](https://github.com/discourse/discourse/commit/6d1de26279de1dcf728d24f838217d0300b938cf#diff-6da83680c0c7a3be72a1d9003c857fcae8c83d8312f3fbcbb452e4f85d68dc21R1186)

`.small-action .small-action-desc`, which is a parent of `.small-action-custom-message`, changed from `color: var(--primary-medium);` (grey) to `color: var(--primary-700);` (also grey) but `color: var(--primary);` (almost black) was also added specifically in `.small-action-custom-message` and overrides any parent color.

What an unreadable sentence. 😅

---

<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: [December 13, 2022, 4:12pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/7 "2022-12-13T16:12:13Z")

</div>

Very good point, thanks for mentioning it. At the moment small post text has one style for everything (assigns, closed topic messages, etc)… but we should follow the pattern set by whispers. When it’s publicly visible it should be standard text, but when visibility is limited it should be lighter and italic. I can look into making this adjustment.

Perhaps we should also include the eye slash for extra reassurance, which is also used in whispers:  
 ![Screenshot 2022-12-13 at 11.10.14 AM](https://global.discourse-cdn.com/meta/original/4X/4/b/c/4bc4e1170ad1d44ba147574f16e06069405aae28.png)

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [December 13, 2022, 6:57pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/8 "2022-12-13T18:57:27Z")

</div>

> [@awesomerobot](#):
>
> we should follow the pattern set by whispers.

I like that as a guiding principle here, and therefore this makes sense to me too:

> [@awesomerobot](#):
>
> Perhaps we should also include the eye slash for extra reassurance, which is also used in whispers:  
> ![Screenshot 2022-12-13 at 11.10.14 AM](https://global.discourse-cdn.com/meta/original/4X/4/b/c/4bc4e1170ad1d44ba147574f16e06069405aae28.png)

---

<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: [February 7, 2023, 6:15pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/14 "2023-02-07T18:15:01Z")

</div>

Good news! We’ve made some updates that will change the text styling depending on assignment visibility. If you’re on the latest version of Discourse and the assign plugin, assigns will get a `.private-assign` class if assigns are not public. By default this changes any associated message to be styled like a whisper:

When assigns are public:

![Screenshot 2023-02-07 at 1.12.53 PM](https://global.discourse-cdn.com/meta/original/4X/f/e/6/fe6c56520b5a6c18fd381c8a0623847f6bcfc124.png)

When they’re staff-only:

 ![Screenshot 2023-02-07 at 1.15.27 PM](https://global.discourse-cdn.com/meta/original/4X/6/a/4/6a4d6e8340a3e2771430c243edee6dd998f92fdd.png)

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [February 7, 2023, 7:23pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/15 "2023-02-07T19:23:52Z")

</div>

So all I have to do is sit back and wait for my instance to be upgraded, right? 🕶

Edit: And awesome news! Thanks!

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [February 13, 2023, 2:11pm UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/16 "2023-02-13T14:11:33Z")

</div>

My assignment comments are back to grey! Thanks so much!

---

<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: [February 16, 2023, 1:12am UTC](https://meta.discourse.org/t/styling-on-assignment-comments-changed-to-look-public/248804/17 "2023-02-16T01:12:14Z")

</div>


