Steps to reproduce:
- Open the UI Options demo
- Open the show preferences panel
- Using the keyboard select one of the contrast themes
- Press the "enter" key
- Notice that the panel disappears because the form submitted
It appears the issue is related to
FLUID-6539 and the buttons for the switch are triggering the form to submit. This is on the same as FLUID-6507 which submits the form when there is only one text input field.
The solution may be just to update the button type to "button".