nested component styling based on parent