label-topic-tag-"tag with spaces" CSS class with spaces not joined by hyphens
I just noticed "green card" has a border around it, maybe there could be other tags too?
Original topic: https://tildes.net/~news/4jq
Tested it myself: https://tildes.net/~test/39s
It seems that a CSS class gets added to each
li along the lines of
label-topic-tag-<insert-tag>, so for "green card" it'll be:
label-topic-tag-green card as a class, which includes the
card class which has the border.
I think this is where it happens: https://gitlab.com/tildes/tildes/blob/master/tildes/tildes/models/topic/topic.py#L157-159
Underscores are replaced with spaces.