-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Components: Fix React Warning triggers by the new JSX transform #61917
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -204 B (-0.01%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
Flaky tests detected in 228918f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9220516861
|
@@ -251,7 +251,8 @@ function ColorPanelDropdown( { | |||
<div className="block-editor-panel-color-gradient-settings__dropdown-content"> | |||
{ tabs.length === 1 && ( | |||
<ColorPanelTab | |||
{ ...tabs[ 0 ] } | |||
keu={ firstTabKey } |
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.
Typo? kue
?
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.
I'm not seeing a warning when opening the Colors tab in global styles 🤔
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.
Are you sure you have SCRIPT_DEBUG true
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.
Also it happens only when there's just one tab in the color dropdown.
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.
Yes, it's true. I guess I'm not sure what you mean with dropdown, but I have one palette and multiple "elements"
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.
Locally, that could be a good idea, in CI I think e2e tests should probably run in prod. |
I meant test PR just to see warnings and fix them. |
…Press#61917) Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
…Press#61917) Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Just a tiny PR to get rid of a React warning that is triggered when you open one of the color element dropdowns in the global styles sidebar. If you have SCRIPT_DEBUG enabled, you can see a warning in trunk when opening components panels in global styles, this PR solves that.