miljodir / md-components

Design-komponenter for Miljødirektoratet (CSS og React)
https://miljodir.github.io/md-components
MIT License
3 stars 2 forks source link

MdModal enable className customization #104

Closed kajsaeggum closed 8 months ago

kajsaeggum commented 8 months ago

Describe your changes

Reverted size-prop changes from last pr and moved className-prop to inner wrapper instead. That way it's possible to set any custom width/height on the modal from an outside class. Or use it to change the background color, layout style etc. on the modal.

Marked as minor relase instead of patch, since this change removes the possibility to set a custom css class om the outer container, which could possibly be a breaking change if anyone has made use of that functionality. We're assuming this will not cause much trouble though, since its the actual modal-element inside that one would want to change anything on...

Checklist before requesting a review

github-actions[bot] commented 8 months ago

Please set a versioning label of either major, minor, or patch to the pull request.