-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
src/js/themes/base.js
Outdated
@@ -418,6 +418,7 @@ export const generate = (baseSpacing = 24, scale = 6) => { | |||
}, | |||
}, | |||
}, | |||
// gap: undefined, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Co-authored-by: Taylor Seamans <taylor.seamans@yahoo.com>
…ommet into feat/ButtonThemeGap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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.userEvent
is used in place offireEvent
.asFragment()
is used for snapshot testing.Any background context you want to provide?
Design System needs a way to change
gap
to6px
for buttons with IconsWhat 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