DEV Community


Discussion on: Edit, priority element style in Vue JS, use third package.

vominhhuy profile image
Code Better #Sofast Author

We have a vue js page, template and style tag. Example


And we want to customize input in (v-text-field)
View render in HTML
with we can&#39;t handle it. And with <style lang="stylus"> it will affect to other input, because not scoped&#39;s global style.<br> Solution<br> we will set class to v-text-field, example: v-text-field(v-model=&quot;&quot;, class=&quot;<em>input</em>_text&quot;)<br> Now, we can set style for it with global style.</p> <style lang="stylus"> _input__text div input background-color: red;