Instantly share code, notes, and snippets.
Use the ::part selector
::part
sl-dialog::part(close-button) { display: none; }