petal_components icon indicating copy to clipboard operation
petal_components copied to clipboard

Modal content padding attribute

Open rupurt opened this issue 2 years ago • 1 comments

Problem

When I use the modal Then I would like to control the content padding So that I can create more interesting designs

https://github.com/petalframework/petal_components/blob/12a47d927d87e271345e2e1ce0c43a4fca88fe66/lib/petal_components/modal.ex#L59

Suggested Solution

Add new attribute similar to size

prop content_padding, :string

rupurt avatar Aug 03 '22 23:08 rupurt

@rupurt thanks for your patience. We're looking into options of making petal components more extendable (perhaps something like daisyUI does) and should help solve issues like these. Hopefully will have something up and running over the next few weeks or so.

nhobes avatar Oct 16 '22 22:10 nhobes

Closing this now as you should be able to do this now with the inclusion of configurability and make css overrides in your app.css file.

https://petal.build/blog/Petal-Components-v1-0-released-Configurability-is-here

nhobes avatar Jul 26 '23 01:07 nhobes