V
V
Vladimir Golub2019-10-04 12:05:46
React
Vladimir Golub, 2019-10-04 12:05:46

How to apply styles to elements in another element (react-jss)?

So apply styles if an element is nested within another ?

block: {
        display: 'none'
    },

    blockOpen: {
        display: 'block',

        [`& ${ title }`]: {
            color: 'red'
        }
    },

    title: {
        margin: 0,
    },

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question