-
Notifications
You must be signed in to change notification settings - Fork 1k
add level prop for Calendar #7456
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
Conversation
// theme.calendar.heading.level should be removed in v3 of grommet | ||
// theme.calendar[size].title should be used instead |
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 we move this comment up to line 628 so it is closer to where we are using theme.calendar.heading.level
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.
done
}; | ||
|
||
export default { | ||
title: 'Visualizations/Calendar/HeaderLevel', |
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.
Can we change the story name to 'Heading level' with a space and lowercase 'l' to match the other stories?
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.
done
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!
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!
I thought we had added If so, should we direct people towards using that? |
We did add the |
What does this PR do?
This PR add
level
for the prop in Calendar so the user can be able to change the level of the Heading in Calendar without using the themeWhere should the reviewer start?
calendar.js
What testing has been done on this PR?
locally and added a test and story
How should this be manually tested?
storybook
Do Jest tests follow these best practices?
screen
is used for querying.asFragment()
is used for snapshot testing.Any background context you want to provide?
A user should be able to pass level to the Calendar component to control the heading level used.
What are the relevant issues?
closes #7450
Screenshots (if appropriate)
Do the grommet docs need to be updated?
yes
level
needs to be addedShould this PR be mentioned in the release notes?
yes
Is this change backwards compatible or is it a breaking change?
backwards compatible