-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dialog): add is-alert-dialog option #2445
base: master
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: d0c4c31 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
060dd38
to
f388b28
Compare
f388b28
to
d0c4c31
Compare
|
||
```js preview-story | ||
export const alertDialog = () => { | ||
const placementModeGlobalConfig = { placementMode: 'global', isAlertDialog: true }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the best practice here would be to combine it with withModalDialog()
<demo-el-using-overlaymixin .config="${placementModeGlobalConfig}"> | ||
<button slot="invoker">Click me to open the alert dialog!</button> | ||
<div slot="content" class="demo-overlay"> | ||
Hello! You can close this notification here: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As application of the role is dependent on content, maybe the content should reflect this a bit more.
Hello! You can close this notification here: | |
Are you sure you want to perform this action? |
> | ||
⨯ | ||
</button> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a "No" and "Yes" button here?
What I did