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

Style engine: check item value validity #42487

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

ramonjd
Copy link
Member

@ramonjd ramonjd commented Jul 18, 2022

What?

Doing what I should have done in #42306 and check the individual property value instead of the array.

Update return comment to reflect accurate property name.

Why?

Currently, if a style value is an array, the style engine calls is_valid_style_value on the array itself rather than the items in that array.

Testing Instructions

Tests are 🍏

Update return comment to reflect accurate property name.
@ramonjd ramonjd self-assigned this Jul 18, 2022
@ramonjd ramonjd added [Type] Bug An existing feature does not function as intended [Package] Style Engine /packages/style-engine labels Jul 18, 2022
Copy link
Member

@aristath aristath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@andrewserong andrewserong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 👍

@ramonjd ramonjd merged commit ddc83c5 into trunk Jul 18, 2022
@ramonjd ramonjd deleted the fix/style-engine-array-value-check branch July 18, 2022 07:22
@github-actions github-actions bot added this to the Gutenberg 13.8 milestone Jul 18, 2022
Justnfaith

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Style Engine /packages/style-engine [Type] Bug An existing feature does not function as intended
Projects
Status: 🏆 Done
Development

Successfully merging this pull request may close these issues.

4 participants