Changed CSS attribute type to added in onComponentTag as suggested by @l0rdn1kk0n.