TDesign Steps步骤条怎么自定义激活状态的颜色?
我用 TDesign 的 Steps 组件,想把当前激活步骤的主色从蓝色改成紫色,但改了全局主题色没生效。试过直接覆盖 CSS 类名也不行,是不是我选错选择器了?
这是我的覆盖样式:
.t-steps__item--active .t-steps__title,
.t-steps__item--active .t-steps__description {
color: #7e22ce !important;
}
.t-steps__item--active .t-steps__inner {
border-color: #7e22ce !important;
}
直接覆盖 CSS 变量:
如果用 Vue/React 的 theme API 也可以这样: