Post

The above looks fine in a simple example, but when you have a bunch of other classes and attributes can start to get quite busy

0 reposts0 likes

In more complex cases, I prefer to use a list, so that you have one set of classes common to all states, and other lists for different conditions. E.g. this snippet from core components. This way you might need to explicitly write the opposite of though.