Preview it and click on “nominal voltage”, a panel appears. Now clicking the “x” on the panel doesn’t close it despite having the same interaction as the link named “clicking here works to close the panel”
The interaction is not targeted to sibling or nested so it should work globally. It has to be said that eventually the interaction should actually be targeted to sibling from the “x” so that I can have several of these panels working together. But I couldn’t get it to work at all
There are some bugs but I just had to put it together quickly to show the issue.
Now on to the Interactions setup. Lets assign the “show filter options” interaction to the “filter item” class. In the “show filter options” interaction, remove the second trigger that shows and hides the close button.
And now assign the interaction “filter panel close but” to the “close-button filter ops” with the following interaction settings:
The button will always be visible on the panel, but hidden when the parent “filter ops and close” class is set to display none.