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

add gap to theme for button #5906

Merged
merged 6 commits into from
Feb 8, 2022

Conversation

britt6612
Copy link
Collaborator

What does this PR do?

Adds the ability to change the gap through the theme

Where should the reviewer start?

button.js

What testing has been done on this PR?

tested it using a value in the theme

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?

Design System needs a way to change gap to 6px for buttons with Icons

What are the relevant issues?

Screenshots (if appropriate)

Do the grommet docs need to be updated?

yes

Should this PR be mentioned in the release notes?

sure

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

backwards compatible

@britt6612 britt6612 requested a review from taysea January 21, 2022 01:43
@@ -418,6 +418,7 @@ export const generate = (baseSpacing = 24, scale = 6) => {
},
},
},
// gap: undefined,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should the default small from Button.js get moved here to the theme?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was debating on this as well and removing from the prop I just wasn't sure

@britt6612 britt6612 requested a review from taysea January 21, 2022 21:15
Copy link
Collaborator

@taysea taysea left a comment

Choose a reason for hiding this comment

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

LGTM!

@ericsoderberghp ericsoderberghp merged commit b2cdcd0 into grommet:master Feb 8, 2022
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.

None yet

3 participants