Use new warning class instead of element style