trendmicro-frontend / react-dropdown

React Dropdown component
https://trendmicro-frontend.github.io/react-dropdown
MIT License
115 stars 21 forks source link

Trouble with dropdown CSS #20

Closed sudeeptarlekar closed 5 years ago

sudeeptarlekar commented 5 years ago

Hi,

I installed and added drop-down with the guidelines told in the Readme, but while rendering dropdown CSS is not getting applied correctly. I checked Webpack logs and found out that only react-dropdown.css is getting compiled. Not able to figure out why CSS is not getting applied.

Can someone here help me out?

Thanks in advance

SS of react-dropdown react-dropdown

SS of webpack screenshot from 2018-11-30 16-22-22

roth1002 commented 5 years ago

@sudeeptarlekar

Did you directly import react-dropdown.css ?

I used this dropdown as below:

import '@trendmicro/react-dropdown/dist/react-dropdown.css';
import Dropdown from '@trendmicro/react-dropdown';

export default Dropdown;
export {
    DropdownToggle,
    DropdownMenu,
    DropdownSubMenu,
    MenuItem,
    DropdownButton
} from '@trendmicro/react-dropdown';

and import this everywhere if you want to use it.

roth1002 commented 5 years ago

I closed this issue. If need to reopen, do it