function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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

 
Banwari KevatBanwari Kevat
Hi Mukesh, Have you got any solution ? I'm also looking for teh same?
Thanks,
Banwari