Skip to main content
Hi Guys, I'm using a custom lightining component on click of Lightning Action. It is working fine. The only issue is with the modal width. I created a static resource that increases the size of the width to 60rem and calling this css file from my component. Currently It is increasing the size of my component, But whenever I open any other action : lets say edit or delete or change record type, these actions are also opening up in the same size as defined in the css file. 

 

I only want my custom component popup to be wider and not any other action popup's. Did any of you got the same issue., Any Idea here how to solve this?

 

This is the css file I created and using it as a static resource in my lightning component. 

 

.slds-modal__container{

 

    max-width: 60rem !important;

 

    width:100% !important;

 

}
7 respuestas
  1. 26 ago 2018, 13:32
    Hi there!

     

    I have been down this path and trust me when I say this, you just CANNOT change the width of the standard modal.

     

    You can try something like this:

     

    Create a parent component and add your child component in it. Invoke the parent component in the lightning action.

     

    This thread will help you with the same: https://developer.salesforce.com/forums/?id=9060G000000BfHPQA0
0/9000