# Why the topic item visited class doesn't update?

**URL:** https://meta.discourse.org/t/why-the-topic-item-visited-class-doesnt-update/236276
**Category:** Development
**Created:** [August 16, 2022, 8:12am UTC](https://meta.discourse.org/t/why-the-topic-item-visited-class-doesnt-update/236276 "2022-08-16T08:12:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![WJsirius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wjsirius/32/264607_2.png) [@WJsirius](https://meta.discourse.org/u/WJsirius)
#### Post date: [August 16, 2022, 8:12am UTC](https://meta.discourse.org/t/why-the-topic-item-visited-class-doesnt-update/236276/1 "2022-08-16T08:12:17Z")

</div>

I want to change the visited topics on topic-item-list into lower opacity, and I use the css code below:

```css
.topic-list-item.visited >*{
  opacity: 0.7;
}

```

Then I found when I visited a topic,the topic didn’t add the `visited` class , like the picture below.  
 ![image](https://global.discourse-cdn.com/meta/original/4X/b/1/8/b1878f53cec9b515d5118cd885952fee71c7dffa.png)

And also, anyone knows about the differences between `.unseen-topic` and `.visited` ?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [August 16, 2022, 8:43am UTC](https://meta.discourse.org/t/why-the-topic-item-visited-class-doesnt-update/236276/2 "2022-08-16T08:43:12Z")

</div>

Hello,

This is working for me. I tested it on my test site and the visited class appears after I open the topic.

This is a new topic what I didn’t open yet so the `.unseen-topic` class appears.

 ![Screenshot 2022-08-16 at 10.28.31](https://global.discourse-cdn.com/meta/original/4X/0/0/d/00d1ae7296730c6b8eb7a559a98a6d8d1a02ff91.png)

I added this CSS to Common / CSS

```scss
.topic-list-item.visited {
  opacity: 0.7;
}

```

And after I opened the topic the `.visited` class will appear and the `.unseen-topic` class will disappear.

 ![Screenshot 2022-08-16 at 10.32.50](https://global.discourse-cdn.com/meta/original/4X/e/d/a/eda22c41fe62f7e19b474d0dd5ad0cb782521503.png)

As you can see the opacity is working well. 🙂

> Notice: If the previously visited topic has new replies than the `.visited` class will disappear until you see them.
