Salesforce lightning Action modal size

Najax picture Najax · May 23, 2017 · Viewed 9k times · Source

I used a Lightning Component and I wanted to know how can I set the width of lightning action modal popup?

Below my code :

Markup component :

css :

.THIS{
	
}

Answer

Rita Jena picture Rita Jena · May 10, 2019

You will be having the modal code in your component & logic in controller js So, Add this code in css file, make sure you have this class named slds-modal__container in your component modal code

.THIS .slds-modal__container {
  margin: 0 auto;
  width: 50%;
  max-width: 100%;
 }