Fix TimelineItem custom color, close #2479

pull/2503/head
afc163 9 years ago
parent f12bbdfdd0
commit e0c0830a04

@ -28,7 +28,10 @@ export default class TimelineItem extends React.Component {
return (
<li {...restProps} className={itemClassName}>
<div className={`${prefixCls}-item-tail`} />
<div className={dotClassName} style={{ color: /blue|red|green/.test(color) ? null : color }}>
<div
className={dotClassName}
style={{ borderColor: /blue|red|green/.test(color) ? null : color }}
>
{dot}
</div>
<div className={`${prefixCls}-item-content`}>

Loading…
Cancel
Save