[search addon] Add classes to styled elements in dialogs

Closes #2776