Перейти к содержимому

Workaround - Increase Width of a Specific LWC Quick Action Modal Salesforce | LWC Stack ☁️⚡️

Salesforce Bolt

0:00 / 0:00

Workaround - Increase Width of a Specific LWC Quick Action Modal Salesforce | LWC Stack ☁️⚡️

6 761 просмотр · 4 года назад
Salesforce Bolt
24,8 тыс. подписчиков
6 761 просмотр · 4 года назад
Few months back I have created a video on how you may use Lightning Web Component Quick Action in Salesforce. Link :    • EP-26 | Quick Actions with Lightning Web C...   After that I created a blog on increasing the width of that Quick Action Modal by overriding the standard CSS. Link : https://www.salesforcebolt.com/2021/0... That's working as expected, the only problem is with overriding css is that once it's loaded it will override other similar css also in the org. For example if you are having 3 LWC Quick Actions in your org and one of them is having the custom css overriding functionality in it. So once you will open that Quick Action, it will load the css and the remaining 2 QA will also have the same css. To avoid this issue and use custom css in a specific LWC Quick Action I have created this workaround. To do that we will create a custom LWC with modal header, body and footer and then embed it in an Aura Component. And then the Aura Component will contain the custom css for that specific modal. #QuickAction #Salesforce #LWC Join me on Instagram :   / iamkapilbatra   Blog : https://www.salesforcebolt.com/2022/0... Website : https://www.salesforcebolt.com​​ LinkedIn :   / salesforcebolt   Twitter :   / salesforcebolt​​   Facebook :   / iamsalesforcebolt