-
Notifications
You must be signed in to change notification settings - Fork 1k
Add weight prop to Heading #6294
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 weight prop to Heading #6294
Conversation
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.
Looks great. Minor indent comment...
(data && data.maxWidth) || | ||
levelStyle.medium.maxWidth}; |
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.
could use the indent. It's a little hard to read which styles are involved
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.
hmmm... let me see what I can do. I believe Prettier was forcing this.
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.
Something in the Prettier/ESLint space is forcing this onSave. I couldn't track down the rule / plugin causing this in a reasonable time. Okay with proceeding as is?
levelStyle.font.weight || | ||
headingTheme.weight}; |
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.
ditto
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.
Looks good! We will need a PR on grommet-site to update the docs
What does this PR do?
Closes #6276 by adding
weight
to<Heading />
Where should the reviewer start?
Heading.js
What testing has been done on this PR?
Jest test suite, Storybook, plus new snapshot.
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?
What are the relevant issues?
#6276
Screenshots (if appropriate)
Do the grommet docs need to be updated?
Yes.
Should this PR be mentioned in the release notes?
Yes.
Is this change backwards compatible or is it a breaking change?
Backwards compatible.