Forem Creators and Builders

Julien Maury
Julien Maury

Posted on

Allow `open` attribute on tag `details`

I don't know if that's a common need, but it could make sense as the HTML markup has this attribute.

Feature request

Allow open attribute on tag details

Please describe your feature request

The idea is to override the default state of the HTML markup <detail> in our posts with the liquid tag `{% details %}.

Summary

Allow open attribute on tag details

Why is it needed?

By default, nothing changes, but if contributors want to set it as open, they can.

Current state


{% details the summary %}
the details
{% enddetails %}

Suggested solution(s)


{% details "the summary" open %}
the details
{% enddetails %}

Discussion (0)