This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Use a portal to render the Drawer close button in order to fix its alignment inside the Mini-Cart Contents block #9507
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
Aljullu
added
status: needs review
type: bug
The issue/PR concerns a confirmed bug.
block: mini-cart
Issues related to the Mini-Cart block.
labels
May 18, 2023
woocommercebot
requested review from
a team and
danieldudzic
and removed request for
a team
May 18, 2023 14:10
The release ZIP for this PR is accessible via:
Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
…ith the Mini-Cart Contents block
Aljullu
force-pushed
the
fix/8716-mini-cart-close-button-portal
branch
from
May 18, 2023 14:38
07729fe
to
8ac7626
Compare
Size Change: +78 B (0%) Total Size: 1.09 MB
ℹ️ View Unchanged
|
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
github-actions
bot
added
the
status: stale
Stale issues and PRs have had no updates for 60 days.
label
May 26, 2023
danieldudzic
approved these changes
May 30, 2023
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.
github-actions
bot
added
status: ready to merge
and removed
status: needs review
labels
May 30, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
block: mini-cart
Issues related to the Mini-Cart block.
status: stale
Stale issues and PRs have had no updates for 60 days.
type: bug
The issue/PR concerns a confirmed bug.
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.
This PR refactors how we render the Drawer close button. Until now, it was rendered directly by the Drawer component, but this had the problem that it wouldn't align correctly if the Mini-Cart Contents block had a border. With this PR, instead, we use a portal, so the consumer of the component (in this case, the Mini-Cart Contents block) can decide where to display the close button. Tha allows placing the close button inside the Mini-Cart Contents block, so it appears in the correct position.
Fixes #8716.
Testing
User Facing Testing
WooCommerce Visibility
Changelog