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

Destructive Action Button Color #1794

Merged
merged 2 commits into from May 7, 2020

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented Apr 16, 2020

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for changelog and subsystem label(s) applied

Destructive actions are currently blue, friendly looking buttons. They should not be blue.

image

Closing issues

closes #1748

Copy link
Member

@rocketeerbkw rocketeerbkw left a comment

Choose a reason for hiding this comment

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

A whole new component for a delete button feels wrong. The two buttons have the same functionality just with different colors.

I don't know what the "standard" is but material design, for example, uses variant and color to control styling. I think here we can add a color prop that defaults to blue and can accept red.

Also, there is another delete button in the billing modifiers

@shreddedbacon
Copy link
Member Author

@rocketeerbkw I've added variant as a prop. Defaults to blue.

@rocketeerbkw rocketeerbkw added this to the v1.5.0 milestone Apr 23, 2020
@Schnitzel Schnitzel merged commit f405f65 into uselagoon:master May 7, 2020
@tobybellwood tobybellwood added the 1-api-auth API & Authentication subsystem label May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-api-auth API & Authentication subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI - Destructive Actions should have a different Color
4 participants