reactjs / react-tabs

An accessible and easy tab component for ReactJS.
https://reactcommunity.org/react-tabs/
MIT License
3.1k stars 447 forks source link

Concatenar classes css com props #520

Closed LeandroGazoli closed 1 year ago

LeandroGazoli commented 1 year ago

className={cx(DEFAULT_CLASS, className, { // Concatena a classe padrão com a classe existente

    [disabledClassName]: disabled,
  })}

Recomendação de alteração para concatenar classes sem perde o default

LeandroGazoli commented 1 year ago

I believe this helps a lot. In my case I made this change in my system it worked very well.

danez commented 1 year ago

We do no concatenate on purpose, because if you are not using the default css and want to use your own classnames.

We could export the default classnames as constants, so the can be concatenated in your code?