Skip to content

Add pad property to Button #6686

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

Merged
merged 6 commits into from
Mar 17, 2023
Merged

Add pad property to Button #6686

merged 6 commits into from
Mar 17, 2023

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Mar 16, 2023

What does this PR do?

Adds pad to Button which accepts all pad types supported by pad on Box. Does not apply if Button is plain in alignment with docs.

Snapshot changes related to styled components class name generation, but no values changed.

Where should the reviewer start?

src/js/components/Button/Button.js

What testing has been done on this PR?

How should this be manually tested?

Do Jest tests follow these best practices?

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • userEvent is used in place of fireEvent.
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

What are the relevant issues?

Closes #6506

Screenshots (if appropriate)

Do the grommet docs need to be updated?

Yes.

Should this PR be mentioned in the release notes?

Yes. Add pad property to Button.

Is this change backwards compatible or is it a breaking change?

Backwards compatible.

@taysea taysea requested a review from ericsoderberghp March 16, 2023 17:11
@taysea taysea requested a review from ericsoderberghp March 17, 2023 15:01
@ericsoderberghp ericsoderberghp merged commit c3d02b2 into grommet:master Mar 17, 2023
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.

Add pad prop to Button
2 participants