KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
245 stars 86 forks source link

How to style the component? #36

Closed meetdheeraj closed 2 years ago

meetdheeraj commented 2 years ago

I wish to change the border color and border-radius of the component but was not able to. When I add a new className to classes, your class .iciELI takes precedence over any class I wish to write to add extra CSS.

KarimMokhtar commented 2 years ago

it's not possible as the class is added after the styled component one. Screenshot from 2022-02-04 14-50-39

dzyubadmytro commented 1 year ago

@KarimMokhtar actually author is right and it works in this way.

image

dzyubadmytro commented 1 year ago

if two classes are in separate files, import the priority file second So, probably, the issue is that both library styles and user styles are imported randomly, so styles are applied randomly as well