-
Apologies if I am missing something totally obvious but can we control the width of a Sidemodal easily? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @jhanley87 You aren't missing anything, we have only 1 size out the box for side modals right now. The idea being is that we want uniform side modals in our products, but allow customization of components via the Customization Provider. What you have done though, is alerted me to a bug in Side Modal where, even with the Customization Provider you can't customize the width. I'll put up a PR shortly to address that and follow up with an exammple on how to use it once it's merged. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @jhanley87 This addition is now released. I have created a Codesandbox demonstrating how you can adjust the side modal width using the customization provider. https://codesandbox.io/s/custom-side-modals-6miwun?file=/src/index.tsx You can either change the width of all side modals in your app by targeting the element name provided by Paste.
Or create one off side modal by providing your own custom element name for the
Which can then be targets as a custom element name on the customization provider
If you inspect any Paste component in the browser you will see a |
Beta Was this translation helpful? Give feedback.
Hi @jhanley87
This addition is now released. I have created a Codesandbox demonstrating how you can adjust the side modal width using the customization provider.
https://codesandbox.io/s/custom-side-modals-6miwun?file=/src/index.tsx
You can either change the width of all side modals in your app by targeting the element name provided by Paste.
Or create one off side modal by providing your own custom element name for the
SideModal