juliancwirko / react-s-alert

Alerts / Notifications for React with rich configuration options
https://www.npmjs.com/package/react-s-alert
MIT License
649 stars 75 forks source link

Alert box not hiding if appropriate style file is not loaded. #56

Open shakiba opened 6 years ago

shakiba commented 6 years ago

Alert box not hiding if appropriate style file is not loaded.

juliancwirko commented 6 years ago

s-alert-default.css is mandatory

shakiba commented 6 years ago

This is what I had and did not disappear:

import 'react-s-alert/dist/s-alert-default.css';
import 'react-s-alert/dist/s-alert-css-effects/scale.css';

<Alert effect='slide' html={true} offset={50} position='top-right' stack={ { limit: 3 } } timeout={5000} />
juliancwirko commented 6 years ago

there is 'scale' in imports and 'slide' in configuration. This is probably why. There is probably some fallback needed for such situation.