add conditional for style directive