Replies: 1 comment 2 replies
-
@nichoth I don't know about @claviska , but personally these little style choices start to get out of hand depending how granular they get to be. For something like this, it's pretty easy to hide the close button by targeting it with and do something like this: sl-dialog::part(close-button) {
display: none;
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the docs, we see
That works, but I would like to prevent the user from clicking the "close" button as well, by totally removing the 'x' button. The context — this is a choice that must be made, and clicking 'x' is a habitual action, and implies that the choice is reversible or not important.
The suggested solution is to add an attribute like
cannot-close
that removes the 'x' button.Beta Was this translation helpful? Give feedback.
All reactions