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.

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

Hope above information was helpful.

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

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.


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