diff --git a/components/tabs/style/index.less b/components/tabs/style/index.less index d6ffe501c0..4947f57a33 100644 --- a/components/tabs/style/index.less +++ b/components/tabs/style/index.less @@ -171,7 +171,7 @@ &&-active &-btn { color: @tabs-highlight-color; - text-shadow: 0 0 0.25px currentColor; + text-shadow: 0 0 0.25px currentcolor; } &&-disabled { diff --git a/components/timeline/TimelineItem.tsx b/components/timeline/TimelineItem.tsx index 81e316f4e6..fbc9441f24 100644 --- a/components/timeline/TimelineItem.tsx +++ b/components/timeline/TimelineItem.tsx @@ -38,14 +38,12 @@ export default defineComponent({ [`${prefixCls.value}-item-head-custom`]: dot, [`${prefixCls.value}-item-head-${color}`]: true, }); + const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color; return (
  • {label &&
    {label}
    }
    -
    +
    {dot}
    {slots.default?.()}
    diff --git a/components/timeline/demo/color.vue b/components/timeline/demo/color.vue index a1fff0084b..3a89f2b860 100644 --- a/components/timeline/demo/color.vue +++ b/components/timeline/demo/color.vue @@ -40,5 +40,20 @@ Set the color of circles. `green` means completed or success status, `red` means

    Technical testing 2

    Technical testing 3 2015-09-01

    + + +

    Custom color testing

    +
    +