r/ModSupport • u/cosmicrae • 17d ago
Why does creating a link flair in old reddit looks different than new reddit ?
The first seven in that list were created in new Reddit, the last two in old Reddit. Why are they presenting differently ? Is there a default CSS that differs based on where they were created ?
[screen snapshot](/preview/pre/link-flairs-v0-ydbxbuxc1d1i1.png?auto=webp&s=9a94247f505fffc9983500a88dae8efd88e965f2) taken from link edit page in old reddit.
Desktop {old | new} macOS
edit: they also present differently in New Reddit, when trying to create a post ...
edit2: checking new Reddit, I see no sign of CSS assigned to any of them.
6
Upvotes
4
u/cosmicrae 17d ago
I may have a partial answer, but unsure where/how to proceed: When all else fails, dig down and look at the HTML being generated. The generated HTML for new Reddit created flairs is different from the generated HTML for old Reddit created flairs.
New Reddit flair ...
<span class="bg-tone-4 inline-block truncate max-w-full text-12 font-normal align-text-bottom box-border px-[6px] rounded-5 leading-4 text-secondary border-solid border-sm border-neutral-border-weak " style="background-color: transparent;">
Old Reddit flair ...
<span class="bg-tone-4 inline-block truncate max-w-full text-12 font-normal align-text-bottom box-border px-[6px] rounded-5 leading-4 text-secondary " style="">
That says they are being stored somewhere on Reddit, with information that I (as a moderator) have no control over (I think).
Looking for thoughts/ideas where to go next.
3
u/Littux 17d ago
Here's the raw data for the flairs:
backgroundColoris set totransparentfor all the flairs except for the ones created on old reddit2
u/itskdog 💡 Top 10% Helper 💡 17d ago
Double check|cm the CSS class is blank. Even if it looks empty, there could be a space or something.
1
u/TheChrisD 16d ago
Old reddit flairs don't come with a "template". They're just raw text that happens to allow a custom CSS class to be applied.
For best cross-device compatibility and to see how most users see it, you really should only make flair in shreddit.