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

Deprecated prop on Tour Kit #93167

Open
renatho opened this issue Jul 31, 2024 · 0 comments
Open

Deprecated prop on Tour Kit #93167

renatho opened this issue Jul 31, 2024 · 0 comments
Labels
Needs triage Ticket needs to be triaged [Pri] Low [Type] Bug

Comments

@renatho
Copy link
Contributor

renatho commented Jul 31, 2024

Quick summary

Tour Kit uses the Card component from Gutenberg, and it uses the isElevated prop. When using it, it gives a warning that the prop is deprecated since WordPress 5.9 and we should use elevation instead.

Steps to reproduce

In a dev environment with the latest version of WordPress, use the WpcomTourKit component and run it in the browser.

To avoid writing code to test it, you can test it by installing Sensei LMS plugin (where it was originally noticed), and creating a course through WP Admin > Courses > New Course.

What you expected to happen

Don't see a deprecation warning.

What actually happened

The following warning is displayed in the browser console:

Card isElevated prop is deprecated since version 5.9. Please use elevation instead.

Impact

One

Available workarounds?

There is no user impact

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs triage Ticket needs to be triaged [Pri] Low [Type] Bug
Projects
Development

No branches or pull requests

1 participant