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

isScrollable prop in CardBody component is causing a visual glitch in pre-existing components without isScrollable prop. #33439

Closed
moon0326 opened this issue Jul 14, 2021 · 7 comments
Assignees
Labels
Backwards Compatibility Issues or PRs that impact backwards compatability [Package] Components /packages/components

Comments

@moon0326
Copy link

Description

The latest Gutenberg (11.0) causes a visual glitch on WooCommerce onboarding wizard pages where Card component is being used.

It looks like isScrollable has been added recently and the default value is set to true. I think the default value should be false to prevent any backward compatibility issues.

Step-by-step reproduction instructions

  1. Deactivate plugins except for Gutenberg and WooCommerce
  2. Navigate to WooCommerce -> Home to trigger the onboarding wizard.
  3. Click the country dropdown and confirm the unexpected scrollbar.
  4. Deactivate Gutenberg and repeat the same step. Confirm there is no scrollbar for this time.

Expected behaviour

The scrollbar should not appear.

Actual behaviour

Unexpected scrollbar appears where Card component is being used.

Screenshots or screen recording (optional)

Screen Shot 2021-07-14 at 4 47 24 PM

Screen Shot 2021-07-14 at 4 33 01 PM

WordPress information

  • WordPress version: 5.7.2
  • Gutenberg version: 11.0.0
  • Are all plugins except Gutenberg deactivated? No (WooCommerce is activated)
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes

Device information

  • Device: Desktop
  • Operating system: Mac OS BigSur
  • Browser: Chrome 91.0.4472.114
@moon0326 moon0326 changed the title CardBody's isScrollable is causing a visual glitch in pre-existing components with isScrollable prop. isScrollable prop in CardBody component is causing a visual glitch in pre-existing components with isScrollable prop. Jul 14, 2021
@moon0326 moon0326 changed the title isScrollable prop in CardBody component is causing a visual glitch in pre-existing components with isScrollable prop. isScrollable prop in CardBody component is causing a visual glitch in pre-existing components without isScrollable prop. Jul 14, 2021
@moon0326
Copy link
Author

WC Admin team is working on a fix for wordpress.com customers in this PR

@Mamaduka Mamaduka added the [Package] Components /packages/components label Jul 15, 2021
@talldan talldan added the Backwards Compatibility Issues or PRs that impact backwards compatability label Jul 15, 2021
@talldan
Copy link
Contributor

talldan commented Jul 15, 2021

@moon0326 Do you know which PR caused the issue?

@moon0326
Copy link
Author

@talldan I think this PR caused the issue.

@talldan
Copy link
Contributor

talldan commented Jul 16, 2021

Thanks @moon0326.

@ciampo Is this something you'd have time to take a look at?

@ciampo
Copy link
Contributor

ciampo commented Jul 16, 2021

Thank you @talldan for the ping — I opened (update: and merged) #33490 which changes the default value of isScrollable to false.

Once that PR gets included in the next Gutenberg release, it'd be great if we could revert the hotfix, since it looks quite hacky — @moon0326 , would you be able to track this task on your side?

@moon0326
Copy link
Author

moon0326 commented Jul 17, 2021

Thank you @talldan for the ping — I opened (update: and merged) #33490 which changes the default value of isScrollable to false.

Once that PR gets included in the next Gutenberg release, it'd be great if we could revert the hotfix, since it looks quite hacky — @moon0326 , would you be able to track this task on your side?

Thank you @ciampo for the PR 🙇 I'll track the task on my side.

It looks like the next release date is July 28, 2011, according to https://github.com/WordPress/gutenberg/milestones.

I'm setting a reminder to check it back on July 29, 2021. I'll work on a PR to revert back my change once I confirm the change in the new version.

@talldan
Copy link
Contributor

talldan commented Jul 30, 2021

Closing this as it seems like the issue has been fixed in this repo.

@talldan talldan closed this as completed Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backwards Compatibility Issues or PRs that impact backwards compatability [Package] Components /packages/components
Projects
None yet
Development

No branches or pull requests

4 participants