Dialog close button needs dialog-button class

This is for #5558 

cc @WebsiteDeveloper