37

Tags in spoilers are always visible, even if you don't put your mouse on the spoiler (on this Code Golf answer for example). See the screenshot:

Spoiler bug


Looks a bit strange on this site too:

that needs !

  • 9
    Another side-effect of their annoying use of the color attribute to hide the spoiler. I don't see why they wouldn't just use opacity... – animuson Apr 26 '14 at 17:41
  • 2
    @animuson: In that case, “text” would be visible in >! <pre></pre> text (not that it’s common). Setting color for the element, then restoring color for its children and setting opacity could work. – user1479055 Apr 26 '14 at 19:59
  • @Charmander I'd care a lot less about that scenario since it's not valid. – animuson Apr 26 '14 at 23:10
  • This is yet another bug that would be fixed by implementing this feature request. – Ilmari Karonen Apr 28 '14 at 9:14
  • 1
    This also happens on main sites, just tested and it happens on Stack Overflow. – Shadow Wizard Dec 15 '15 at 22:55
  • 1
    @animuson funny, you're now part of "they". :) – Shadow Wizard Dec 15 '15 at 22:55
  • 3
    Anyway, good news is that this bug does not affect mobile web and apps. :) – Shadow Wizard Dec 15 '15 at 23:22
  • I just noticed this today. It still happens here on Meta.SA. – Nate Barbettini Dec 17 '15 at 16:59
  • @Pro the answer you used as example is deleted, can you find a different answer having this bug? – Shadow Wizard May 25 '16 at 13:39
  • @ShadowWizard When I come across one, I'll put it here. In the meantime, the 'live' example should be enough. – ProgramFOX May 25 '16 at 13:52
  • @Pat I was about to remove any mention of "beta sites" as well when starting the bounty, but found that the bug is different between the themes. On beta sites, the whole tag is visible, as we can see in the screenshot, while on graduated sites (like here) only its placeholder is seen. Both bugs of course, but still... the original report is about the beta sites. – Shadow Wizard Jun 1 '16 at 10:45
  • 1
    @Sha The exact same behavior happens on SO, complete tags there, so it is much broader than just beta sites. (Or, sorry, that was the image of course). Feel free to roll back. – Patrick Hofman Jun 1 '16 at 10:47
  • 1
    This has been fixed btw, needs a status-completed methinks.. – Riker Mar 20 '17 at 18:44
6
+25

That is a bug indeed, but with a simple fix.

This CSS overrides the styling on tags when inside a spoiler:

.spoiler .required-tag {
    background-color: transparent;
    border-color: transparent;
}

.spoiler .post-tag {
    background-color: transparent;
    border-color: transparent;
}

.spoiler .moderator-tag {
    background-color: transparent;
    border-color: transparent;
}

This can be simplified if there was a single .tag class.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .