mattermost-plugin-spoiler icon indicating copy to clipboard operation
mattermost-plugin-spoiler copied to clipboard

Can’t you use <details> tag?

Open ldidry opened this issue 5 years ago • 0 comments

The <details> tag is designed for the spoiler use case. It would be very simple to use, don’t you think.

Beside that, #15 would be very simple to solve by using <details>.

Example:

See? No spoiler (The text is even translated by the browser!)

<details>
    <p>See? No spoiler (The text is even translated by the browser!)</p>
</details>
Custom text. Click on it!

No spoiler

<details>
  <summary>Custom text. Click on it!</summary>
  <p>No spoiler</p>
</details>

ldidry avatar Sep 01 '20 09:09 ldidry