Bunlong / react-papaparse

react-papaparse is the fastest in-browser CSV (or delimited text) parser for React. It is full of useful features such as CSVReader, CSVDownloader, readString, jsonToCSV, readRemoteFile, ... etc.
https://react-papaparse.js.org
MIT License
365 stars 61 forks source link

Change color remove button #33

Closed mysticaltech closed 4 years ago

mysticaltech commented 4 years ago

Hello, thank you for this nice helper lib on top of papa parse, really practical. How can I change the color of the remove button?

I want to change the red color and disable the hover effect. I know it is SVG and that the color is set with fill attribute of path, but don't really know how to change it. Any help would be really appreciated! Thanks 🙏🏻

Bunlong commented 4 years ago

@mysticaltech react-papaparse v3.4.0 has been released with the following changes please kindly check. Thanks 🙏🏻

Minor

Example

<CSVReader
  onDrop={this.handleOnDrop}
  onError={this.handleOnError}
  style={{}}
  config={{}}
  addRemoveButton
  removeButtonColor='#659cef'
  onRemoveFile={this.handleOnRemoveFile}
>
  <span>Drop CSV file here or click to upload.</span>
</CSVReader>
mysticaltech commented 4 years ago

It works great, thank you so much, I appreciate the quick and efficient support!

Bunlong commented 4 years ago

@mysticaltech You are very welcome. Thanks!