Hacker News new | ask | show | jobs
by mannylee1 4989 days ago
Love the way that works. The only problem with it is that a another, non-related, CSS class still needs to be used. If the element doesn't call for another class you could select the elements directly, but that kinda defeats the point of OOCSS.
1 comments

True. I'm just advocating for removing the pattern-level classes. The component-level and context-level classes should still remain. Component-level would be `.dropdown` and context-level would be `.user-dropdown` or `.explore-page .dropdown`. Those should be selected and javascript'ed.

But that way all of the purely presentational classes are kept completely in the CSS where they belong.