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

add type (i.e. color) to popconfirm buttons #2642

Closed
wc-matteo opened this issue Mar 15, 2022 · 2 comments · Fixed by #2648
Closed

add type (i.e. color) to popconfirm buttons #2642

wc-matteo opened this issue Mar 15, 2022 · 2 comments · Fixed by #2648
Assignees
Labels
feature request New feature or request priority: high

Comments

@wc-matteo
Copy link

This function solves the problem (这个功能解决的问题)

I often use popconfirms to confirm a delete operation. It'd be nice if the button inside the popconfirm was red in this case (i.e. type="error"). I know there's the action slot, but it's much more work to setup...

Expected API (期望的 API)

positive-type / negative-type using values from n-button type (default, primary, tertiary, info, success, warning and error)

@github-actions github-actions bot added the feature request New feature or request label Mar 15, 2022
@07akioni
Copy link
Collaborator

How about adding positive-button-props?

@wc-matteo
Copy link
Author

even better! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants