.toc_close class not applied when restoring toggle state from cookie
-
Hi there,
First of all, thank you for developing this wonderful plugin.
I am using custom CSS to switch icons based on the toggle state (open/closed). I rely on the
.toc_closeclass being applied to the#ez-toc-containerwhen the TOC is closed.Here is my CSS example:
.ez-toc-title::after {
background-image: url("/angle-up.svg");
}
#ez-toc-container.toc_close .ez-toc-title::after {
background-image: url("/angle-down.svg");
}I noticed that while the plugin correctly saves the toggle state in a cookie, the
.toc_closeclass is not applied when the page loads and restores the “closed” state from that cookie.Because this class is missing on page load, my custom icon displays incorrectly (it shows the “open” icon when it should show the “closed” icon).
My Request: Could you please update the plugin so that the
.toc_closeclass is correctly applied to the#ez-toc-containerwhen restoring the “closed” state from the cookie on page load?Thank you for your time and assistance.
The topic ‘.toc_close class not applied when restoring toggle state from cookie’ is closed to new replies.