react-component/steps

Change icon background color

abdennour opened this issue · 4 comments

The default icon back color is blue #2db7f5 .
And the current props are :

Step.propTypes = {
  className: _react.PropTypes.string,
  prefixCls: _react.PropTypes.string,
  style: _react.PropTypes.object,
  wrapperStyle: _react.PropTypes.object,
  tailWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]),
  status: _react.PropTypes.string,
  iconPrefix: _react.PropTypes.string,
  icon: _react.PropTypes.node,
  adjustMarginRight: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]),
  stepLast: _react.PropTypes.bool,
  stepNumber: _react.PropTypes.string,
  description: _react.PropTypes.any,
  title: _react.PropTypes.any
};

No props seems related to icon color . Is it required enhancement or already exist ? Where is if it iswas existed .

You can change it by writing you owner style:

@primary-color: #2db7f5;

Let's say: it is a great component..
If i found time , i will create pull-request for that .

IMO, i do not agree with add props. If we add props.iconColor, then here will be more style props.

Just use Steps.Step[icon] to customized node, we don't need a API for icon color.