yuanyan / boron

A collection of dialog animations with React.js
https://yuanyan.github.io/boron
MIT License
1.48k stars 153 forks source link

Add props to allow for custom CSS styles #20

Closed krmannix closed 8 years ago

krmannix commented 8 years ago

Proposal to add inline styles to Modal elements, which will allow for overwriting default style values.

Attempts to fix #7 and allow manual fixes to #10 and #18 by using width: '80%' or any other value for width other than the default 500px. Previously, there was code in modalFactory.js that used a prop titled customStyle that didn't actually exist. This expands on that idea by exposing 3 new props, 1 for each the styles defined individually for each Modal type (modalStyle, backdropStyle and contentStyle).

krmannix commented 8 years ago

@yuanyan looks like this first originated in #15, but wasn't documented in the README