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

EuiConfirmModal--option to set confirm button to red #520

Closed
gchaps opened this issue Mar 15, 2018 · 1 comment · Fixed by #546
Closed

EuiConfirmModal--option to set confirm button to red #520

gchaps opened this issue Mar 15, 2018 · 1 comment · Fixed by #546
Assignees

Comments

@gchaps
Copy link
Contributor

gchaps commented Mar 15, 2018

Confirmation modals are often used for delete actions. For this use case, it would be nice if we had an option to set the confirm button (Delete) to red.

@cchaos
Copy link
Contributor

cchaos commented Mar 16, 2018

I agree. I'm having a hard time deciding how to approach it though. The idea of "confirm" to me is an affirmative or non-destructive action so I'm not sure if we should add a prop to this or create a new component called EuiDestroyModal or whatever...

@cchaos cchaos self-assigned this Mar 20, 2018
cchaos pushed a commit to cchaos/eui that referenced this issue Mar 20, 2018
Defaults to ‘confirm’ (positive/neutral), but can be ‘destroy’.
cchaos pushed a commit to cchaos/eui that referenced this issue Mar 20, 2018
Defaults to ‘confirm’ (positive/neutral), but can be ‘destroy’.
cchaos pushed a commit to cchaos/eui that referenced this issue Mar 22, 2018
Defaults to ‘confirm’ (positive/neutral), but can be ‘destroy’.
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 a pull request may close this issue.

2 participants