+ Start a Discussion
mukesh guptamukesh gupta 

Hide Lightning Component Closed button

Hi Team,

I want to hide Liightning componet Close Button(Top right corner) or cross button.User-added image 
when i click on quick action then one of lightning component assosciated with it and open, but need to remove close button.

Please suggest

 
VinayVinay (Salesforce Developers) 
Hi Mukesh,

This is standard dialogue modal and you cannot remove.

https://developer.salesforce.com/docs/component-library/bundle/lightning:overlayLibrary/documentation

You might need to build in custom component.  Below is the sample example reference.

https://salesforce.stackexchange.com/questions/230667/lightning-component-quick-action-hide-modal

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Suraj Tripathi 47Suraj Tripathi 47

Hi Mukesh,

Please remove the below slds from your component.

modal-header slds-modal__header

Please mark it as the Best Answer if your queries are solved.

Thank You

mukesh guptamukesh gupta
Hi Suraj,

this is standard button on component so we can't remove from code. if you have any option please let me know.

REgards
Mukesh