Add autogenerated style name for UI based on its class name (#14670)

Change-Id: Ic2ff4c29f997c33ea952a94c17aa9e70a0339337