admin管理员组文章数量:1403369
I am using the Vuetify's Stepper
ponent.
By default, the step's color is blue:
Corresponding piece of code is:
<v-stepper-step :plete="e1 > 1" step="1">Name of step 1</v-stepper-step>
Live test on Codepen.
I am using the Vuetify's Stepper
ponent.
By default, the step's color is blue:
Corresponding piece of code is:
<v-stepper-step :plete="e1 > 1" step="1">Name of step 1</v-stepper-step>
Live test on Codepen.
Share Improve this question asked Sep 19, 2018 at 7:11 Billal BEGUERADJBillal BEGUERADJ 22.8k45 gold badges123 silver badges140 bronze badges 2- Have you used a custom theme ? – laruiss Commented Sep 19, 2018 at 7:14
- No, I am not using a custom theme, all is set to the default theme @laruiss – Billal BEGUERADJ Commented Sep 19, 2018 at 7:16
2 Answers
Reset to default 6You can simply pass a color to color
attribute on v-stepper-step
ponent.
<v-stepper-step color="red">Step 1</v-stepper-step>
Custom theme colors e.g. color="success"
will work as well.
You can overwrite the default color with CSS. The element is v-stepper__step__step
.primary :
.v-stepper__step__step.primary {
background-color: red !important;
border-color: red !important;
}
本文标签: javascriptVuetify how to modify the step39s default colorStack Overflow
版权声明:本文标题:javascript - Vuetify: how to modify the step's default color? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744412931a2605048.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论