[Vuejs]-Vue components css hierarchy

0👍

This is just a problem with overriding styles in general, not Vue.js

I recommend adding a class to the button within the Vue component, and applying styles to that. Normalize and your base styles will be just that – base styles. Then your in-component styles can override what they need to.

If you’re worried about conflicting class names between components simply add scoped in your <style> tag.

Leave a comment