Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gerjanvangeest
Copy link
Member

What I did

Copy link

changeset-bot bot commented Jan 16, 2025

🦋 Changeset detected

Latest commit: d0c4c31

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lion/ui Minor

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

@gerjanvangeest gerjanvangeest force-pushed the feat/alertdialog branch 4 times, most recently from 060dd38 to f388b28 Compare January 16, 2025 13:09

```js preview-story
export const alertDialog = () => {
const placementModeGlobalConfig = { placementMode: 'global', isAlertDialog: true };
Copy link
Member

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:
Copy link
Member

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.

Suggested change
Hello! You can close this notification here:
Are you sure you want to perform this action?

>
</button>
</div>
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants