I was implementing a collapsible tree menu with accordions and noticed that nested expand/collapse icons were all synchronized with the root accordion item's expand/collapse icon.
What do you think about this fix?
Previously, accordions inside an accordion item would have all expand/collapse
icons set to expand when the root accordion item was expanded.
This was caused by the root accordion's CSS rules applying to the
sub-accordions.
To avoid this, the CSS rotate rules for the icon must select the immediate
item title's icon more explicitly.
Thanks @samuelbrian for reporting, finding a fix and submitting this PR! :)
I have merged it in and improve the CSS targeting, to make it easier to override.
Now released in version 1.45.7.
Hi,
I was implementing a collapsible tree menu with accordions and noticed that nested expand/collapse icons were all synchronized with the root accordion item's expand/collapse icon.
What do you think about this fix?
Previously, accordions inside an accordion item would have all expand/collapse icons set to expand when the root accordion item was expanded. This was caused by the root accordion's CSS rules applying to the sub-accordions. To avoid this, the CSS rotate rules for the icon must select the immediate item title's icon more explicitly.