Extracted dialog style to a separate block (#11734)

Change-Id: I3f57188cde30122b56bb6f8cea435cd4c56b58e2