Popup: Add classes option

Fixes gh-7686