# List item styling for starred emails

**URL:** <https://community.getmailspring.com/t/list-item-styling-for-starred-emails/7120>\
**Category:** Feature Suggestions\
**Tags:** interface\
**Created:** [September 28, 2023, 9:23pm UTC](https://community.getmailspring.com/t/list-item-styling-for-starred-emails/7120 "2023-09-28T21:23:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelBradetLegris](https://community.getmailspring.com/user_avatar/community.getmailspring.com/michaelbradetlegris/32/7657_2.png) [@MichaelBradetLegris](https://community.getmailspring.com/u/MichaelBradetLegris)\
**Post date:** [September 28, 2023, 9:23pm UTC](https://community.getmailspring.com/t/list-item-styling-for-starred-emails/7120/1 "2023-09-28T21:23:57Z")

</div>

In Outlook, when an email is starred/flagged, the background of email in the list changes to a light yellow, making it more obvious that the mail is in fact starred.

Would it be possible to add a similar styling option for this in Mailspring? There are already styling options opened, unopened, and focused emails.

Currently, a “focused” class is added to the “list-item” element when it is focused. Would it be possible to also add a “starred” or “flagged” class to the list-item? That way custom templates could color accordingly.

 ![image](https://community.getmailspring.com/uploads/default/original/2X/7/7d385134e53b354e26ce2283e38cb334f4cc4d96.png)

 ![image](https://community.getmailspring.com/uploads/default/original/2X/e/ec76977a5a9cfc4ee15e6a1c9f3567df79a9752d.png)

---

<div class="post-metadata">

**Author:** ![zarino](https://community.getmailspring.com/user_avatar/community.getmailspring.com/zarino/32/6327_2.png) [@zarino](https://community.getmailspring.com/u/zarino)\
**Post date:** [September 29, 2023, 7:39am UTC](https://community.getmailspring.com/t/list-item-styling-for-starred-emails/7120/2 "2023-09-29T07:39:43Z")

</div>

Apologies, I haven’t actually tried this out, but if you’re ok with forking and customising your current Mailspring theme, would something like `.list-item:has(.thread-icon-star)` work as a CSS selector for adding the highlighted background?

---

<div class="post-metadata">

**Author:** ![MichaelBradetLegris](https://community.getmailspring.com/user_avatar/community.getmailspring.com/michaelbradetlegris/32/7657_2.png) [@MichaelBradetLegris](https://community.getmailspring.com/u/MichaelBradetLegris)\
**Post date:** [September 29, 2023, 12:21pm UTC](https://community.getmailspring.com/t/list-item-styling-for-starred-emails/7120/3 "2023-09-29T12:21:23Z")

</div>

Thanks for this, I had completely forgotten about that selector. I have not used much CSS in the last few years. Unfortunately, it wasn’t working when I tried it. It looks like mailspring is using Electron 17, which uses Chrome 98, which does not support that selector. They would need to upgrade to Electron 21 at least, and that sounds like a massive annoyance.

> **[:has() CSS relational pseudo-class | Can I use... Support tables for HTML5,...](https://caniuse.com/css-has)**
>
> "Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.

> **[Electron 17.0.0 | Electron](https://www.electronjs.org/blog/electron-17-0)**
>
> Electron 17.0.0 has been released! It includes upgrades to Chromium 98, V8 9.8, and Node.js 16.13.0. Read below for more details!

> **[Electron 21.0.0 | Electron](https://www.electronjs.org/blog/electron-21-0)**
>
> Electron 21.0.0 has been released! It includes upgrades to Chromium 106, V8 10.6, and Node.js 16.16.0. Read below for more details!
