Collapsed comments leak text hidden in details blocks
Bug Report
Platform
This is observed on the main site
- Operating System:
- Browser:
What is happening and/or broken?
The summary in the collapse state of a comment shows text that's "hidden" by the details/summary block. I noticed this in the Advent of Code thread because there's a lot of summary usage.
Example: This is the comment collapsed: Vs expanded:
Link to the comment shown above
What is expected to happen?
Whatever's hidden in the details block was intended for people to have to click through to read, so it shouldn't leak in the comment summary.
How can it be fixed?
Process the comment text to show only the "summary" part of the block and hide the details, or replace them with a "details hidden" annotation