[FEATURE] Implement open state and group mode for details shortcode
This enables users to manually set details to open.
Additionally via group mode, you can group items to achieve real accordion like behaviour.
Details is supposed to be a simple 'javascript' free solution. It seems you are trying to implement an accordion, which already has an open state and is by default 'grouped'. Is there a reason you are trying to make 'details' behave like 'accordion' ?
That's exactly what I'm trying to do. I'd be happy to reduce the PR to only implement the configurable open state - which should be configurable even if it's not used as an accordion.
OK, I get it, as this is a more 'accessible' accordion solution, might it not be better to use aria attributes rather than data attributes?
Just found this: https://www.scottohara.me/blog/2018/09/03/details-and-summary.html which is basically exactly what you are trying to do?