Ensure that style is updated when the effective appearance changes