Moodle  has a style class .hide which is set to display: none
and a overriding rule for the hide icon icon.hide display:in-line
I have duplicated this so the hide/show action displays when the section is not hidden