Re:State of React and CSS
by talmand on Monday April 04, 2016 @05:56PM
(#11426046)
That's the point that one should start paying attention to what they are introducing into the global scope.
But it depends on the CSS. A global button class will not overwrite the properties of a button class descending from a higher level class. It will only introduce new properties that are not already defined in the button that's inside the parent scope.
There are advantages to having base styles in a global class, but I agree they can get unwieldy if one doesn't have discipline with them.
But it depends on the CSS. A global button class will not overwrite the properties of a button class descending from a higher level class. It will only introduce new properties that are not already defined in the button that's inside the parent scope.
There are advantages to having base styles in a global class, but I agree they can get unwieldy if one doesn't have discipline with them.