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

refactor(card): [EMU-6959] add custom button styles and remove button bg #285

Conversation

talo242
Copy link
Contributor

@talo242 talo242 commented Nov 29, 2023

What this PR does

Please include a summary of the change(s).

  1. It removes an extra background when the Card component is rendered as button:
Before After
image image
  1. It introduces the buttonWrapper classname to allow passing styles to this button component.

Why is this needed?

To give the card component more flexibility

Solves:
EMU-6959

How to test?

You can check the new updated story on Storybook

@talo242
Copy link
Contributor Author

talo242 commented Nov 29, 2023

Hey @diogomateus, there are some formatting changes that were applied automatically by my IDE. Do we have prettier configured in this repo?

@talo242 talo242 requested a review from diogomateus November 29, 2023 10:50
@diogomateus
Copy link
Collaborator

Hey @diogomateus, there are some formatting changes that were applied automatically by my IDE. Do we have prettier configured in this repo?

I think we do but it's not always enforced, the same happens to Alessandra. This is a nice to have for v1 too 😅 but not concern for now

Copy link
Collaborator

@diogomateus diogomateus left a comment

Choose a reason for hiding this comment

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

💅 💅 💅

@talo242 talo242 merged commit e719231 into main Nov 29, 2023
4 checks passed
@talo242 talo242 deleted the talo/emu-6959-remove-button-background-and-correctly-apply-wrapper-styles branch November 29, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants