Skip to content
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

[WC-2511] accordion unsync content display with state #1138

Merged
merged 6 commits into from
Jul 19, 2024

Conversation

gjulivan
Copy link
Contributor

@gjulivan gjulivan commented Jun 28, 2024

Pull request type

Bug Fix

Description

child content tries to expand, and calculate the content height while parent is not finished expanding.
thus, child content is still not fully visible, which cause their bounding rectangle calculation incorrect.

fixing this by adding resize observer to the content.

What should be covered while testing?

Anything related to accordion content's resizing. make sure the resize observer doesn't try to expand content while content should be collapsing

@gjulivan gjulivan requested a review from a team as a code owner June 28, 2024 08:27
@gjulivan gjulivan force-pushed the WC-2511-accordion-unpredictable branch 3 times, most recently from e1da1b8 to a07ecd5 Compare July 1, 2024 11:23
@gjulivan gjulivan force-pushed the WC-2511-accordion-unpredictable branch from a07ecd5 to a669762 Compare July 11, 2024 07:35
@gjulivan gjulivan force-pushed the WC-2511-accordion-unpredictable branch from 12c016d to 883c80d Compare July 15, 2024 08:58
r0b1n
r0b1n previously approved these changes Jul 16, 2024
@gjulivan gjulivan force-pushed the WC-2511-accordion-unpredictable branch from c275480 to b6d2b04 Compare July 17, 2024 08:00
r0b1n
r0b1n previously approved these changes Jul 18, 2024
@gjulivan gjulivan merged commit 11b9522 into main Jul 19, 2024
14 checks passed
@gjulivan gjulivan deleted the WC-2511-accordion-unpredictable branch July 19, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants