-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat(chrome)!: detect Footer automatically with Context #1761
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
geotrev
force-pushed
the
george/chrome-body-footer
branch
from
March 27, 2024 20:23
4d9bfdf
to
0b898b1
Compare
geotrev
changed the title
feat(chrome)!: detect Footer automatically with React context
feat(chrome)!: detect Footer automatically with Context
Mar 28, 2024
jzempel
reviewed
Mar 28, 2024
@@ -47,6 +47,7 @@ consider additional positioning prop support on a case-by-case basis. | |||
#### @zendeskgarden/react-chrome | |||
|
|||
- Removed `PRODUCT` type export. Use `IHeaderItemProps['product']` instead. | |||
- Removed `hasFooter` prop for `Body` (no replacement needed) |
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 we call out that IBodyProps
is no longer exported?
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.
Yep, good call.
jzempel
approved these changes
Mar 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Removes
hasFooter
prop fromreact-chrome
'sBody
component. Uses React context similar to how other components detect when a child is present in the JSX tree.Checklist
π design updates will be Garden Designer approved (add the designer as a reviewer)npm start
)β¬ οΈ renders as expected with reversed (RTL) directionπ€ renders as expected with Bedrock CSS (?bedrock
)βΏ tested for WCAG 2.1 AA accessibility complianceπ tested in Chrome, Firefox, Safari, and Edge