-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Conversation
The css_var property used to be this way, e.g., '--wp--preset--color--$slug' => 'color' , but then we swapped it around.
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.
Thanks, LGTM!
Committed in r56630 |
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.
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: |
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 a native English speaker but "the following properties" seems to be the correct (or at least more consistent) form here.
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.
You're right. Thanks for picking up on that. I blindly copied and pasted.
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.
Looks like it's been committed. I can create a new PR since it's an embarrassing spelling error (for me).
Changeset: #5256
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.