Issue #3436873: Fix expanded popovers staying visible after click
The problem is caused by two issues.
- Hovers are handled only on small screens, while clicks are handled on all screen sizes.
- Keeping the menu visible is done on
:focus
, not:focus-visible
, so is triggered by a click.
Closes #3436873