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: update docs for css_var #5255

Closed

Conversation

ramonjd
Copy link
Member

@ramonjd ramonjd commented Sep 20, 2023

The doc comments for css_var were topsy turvy.

The css_var property used to be this way, e.g., '--wp--preset--color--$slug' => 'color' , but then we swapped it around.

Syncing Gutenberg commit from WordPress/gutenberg#53710

Trac ticket: https://core.trac.wordpress.org/ticket/59401


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

The css_var property used to be this way, e.g., '--wp--preset--color--$slug' => 'color' , but then we swapped it around.
Copy link
Contributor

@tellthemachines tellthemachines left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@tellthemachines
Copy link
Contributor

Committed in r56630

Copy link
Contributor

@audrasjb audrasjb left a comment

Choose a reason for hiding this comment

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

Small rephrasing

* `array( "$property" => "$value", ... )`.
* Style definitions that contain the instructions to parse/output valid Gutenberg styles from a block's attributes.
*
* For every style definition, the follow properties are valid:
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a native English speaker but "the following properties" seems to be the correct (or at least more consistent) form here.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right. Thanks for picking up on that. I blindly copied and pasted.

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like it's been committed. I can create a new PR since it's an embarrassing spelling error (for me).

Changeset: #5256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants