Theme highlight color when selecting text to quote on Dark color palettes

סיכום מבוסס בינה מלאכותית

A user, LlamaSensei, reported an issue with text selection visibility when quoting posts using the Material Dark color palette on their forum. The highlight color was nearly indistinguishable from the background, making it hard to see selected text. After testing, they confirmed the issue didn’t occur on Meta’s default Dark theme, narrowing it down to their installed Graceful theme. awesomerobot, the theme developer, acknowledged they had overridden the browser’s default highlight colors — a decision they reconsidered — and promptly removed the override. After updating the theme, LlamaSensei confirmed the issue was resolved and expressed gratitude for the fast fix. The problem was specific to the Graceful theme’s CSS and not a general Discourse or browser issue. david helped by verifying the behavior on Meta’s Dark theme, which worked correctly, confirming the issue was theme-specific. This thread highlights how custom theme CSS can unintentionally break standard UI behaviors — like text selection — and how quick developer responses can resolve such issues effectively.

We are using the Material Dark color palette on our website & have an issue with highlighting texts in posts & replies that I cannot seem to resolve. I’ve tried on a few dark color palettes to the same effect. Below is 2 sets of text. The one below is selected so that the user can “quote” that text. It’s almost impossible to see any difference between it & the non-selected text.

Any thoughts? I can’t seem to find anything here on the forums. I’ve played with the color palette to no avail.

image

Can you reproduce the same thing using the “dark” theme here on meta? It seems to work ok for me (Chrome on macOS):

Good Call. I’m not able to reproduce the issue on these forums.

So I have the Graceful theme installed on my forum. When I change to the default Dark theme, the issue disappears. Has to be something in the theme.

That’s accurate, I’m overriding the browser’s highlight colors in the theme… which in retrospect is probably not a good idea. I just removed it… so if you update the theme it should be resolved.

Holy moly! That was a quick response!

The problem is resolved. Thank you so much. I was racking my brain over this.