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(button): danger and success variant #100

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

Conversation

lekoaf
Copy link
Member

@lekoaf lekoaf commented Jun 10, 2021

Adds a "danger" variant which signifies a dangerous action, such as deleting a user.

Adds a "success" variant which signifies a positive action.

The change affects

  • Button
  • IconButton
  • IconTextButton

This change also affects a number of snapshots. This because a primary button uses textPrimary and elementPrimary to change the color between for instance the normal and hover state. textError and elementError however had the exact same color.

Had to add textSuccess since this color didn't exist at all, which seems like an error due to the fact that all other element... has an equivalent text....

prc_success_danger_button

@lekoaf lekoaf requested review from Tigge and boilund June 10, 2021 11:52
@lekoaf lekoaf changed the title feat(button): danger variant feat(button): danger and success variant Jun 11, 2021
Adds a "danger" variant which signifies a dangerous
action, such as deleting a user.

Adds a "success" variant which signifies a positive
action.

The change affects

- Button
- IconButton
- IconTextButton

This change also affects a number of snapshots. This because
a primary button uses `textPrimary` and `elementPrimary` to
change the color between for instance the normal and hover state.
`textError` and `elementError` however had the exact same color.

Had to add `textSuccess` since this color didn't exist at all,
which seems like an error due to the fact that all other `element...`
has an equivalent `text...`.
@lekoaf
Copy link
Member Author

lekoaf commented Jun 11, 2021

I'm not sure if adding a color is classified as a breaking change or not. Let me know please.

@lekoaf
Copy link
Member Author

lekoaf commented Jun 11, 2021

Got some ideas how to refactor the repetitive CSS too, but thought I'd do that in a separate PR instead.

@Tigge Tigge force-pushed the main branch 7 times, most recently from 92874f3 to 4adee08 Compare October 18, 2022 05:51
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.

1 participant