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(confirm-dialog): added destructive CTA button variant #1929

Conversation

ArtBlue
Copy link
Contributor

@ArtBlue ArtBlue commented Jun 26, 2023

Fixes #1919

Description

Added variant option to the confirm dialog main CTA button with the first supported variant of destructive.

Context

I allowed flexibility to add other potential variants for better scalability.

Screenshots

image

@ArtBlue ArtBlue self-assigned this Jun 26, 2023
@LuLaValva
Copy link
Member

LuLaValva commented Jun 26, 2023

Looks great, but should this be called something like confirm-cta-variant instead? That would allow for us to eventually modify styles for the reject button as well, and any additional buttons that may be added.

@ArtBlue
Copy link
Contributor Author

ArtBlue commented Jun 27, 2023

Looks great, but should this be called something like confirm-cta-variant instead? That would allow for us to eventually modify styles for the reject button as well, and any additional buttons that may be added.

Good call. Done.

@LuLaValva
Copy link
Member

Great! Sorry, one more change. Can you add this attribute to marko-tag.json?

Copy link
Member

@LuLaValva LuLaValva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, looks good. Thanks @ArtBlue

@ArtBlue ArtBlue merged commit 13f6ed9 into 12.4.0 Jun 27, 2023
@ArtBlue ArtBlue deleted the 1919-confirm-dialog-add-destructive-button-option-for-primary-cta branch June 27, 2023 19:07
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