Updated property trigger function to apply values directly for the styling properties