-
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
Update/16128 add attribute types documentation #16220
Update/16128 add attribute types documentation #16220
Conversation
Added valid inputs to the type field in attributions on block-attributes.md
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 for contributing.
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 good, I added one suggestion for the link.
Also, not a big deal, but you have a definition for integer, but not number. I would add for both or neither, just the types seems sufficient to me.
docs/designers-developers/developers/block-api/block-attributes.md
Outdated
Show resolved
Hide resolved
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.
Just adding a block on the PR until this change (a combo of mine + @mkaz's changes) is merged in, then I'd love to see this landed. Thanks!
See [WordPress's REST API documentation](https://developer.wordpress.org/rest-api/extending-the-rest-api/schema/) for additional details.
…s.md Co-Authored-By: Chris Van Patten <hello@chrisvanpatten.com>
I was advised by the core contributors to either add a definition for number, or delete the definition for integer. After noting that a definition of number (either an integer or floating point number) could create more confusion, I opted for the latter choice.
…s.md Co-Authored-By: Chris Van Patten <hello@chrisvanpatten.com>
I've taken the suggestions from @mkaz and @chrisvanpatten. I committed the changes, and please let me know if there is anything else that needs to be changed. Thank you so much for letting me contribute to this! I promise I'll capitalize the P from now on :) |
Thanks for the changes and welcome as a new Gutenberg contributor! |
Description
Fixes #16128 . Added accepted attribute types for the Blocks API, including a link to the Wordpress REST API documentation for clarification.
How has this been tested?
Ran changes in docs through Visual Studio Code's markdown preview testing.
Changes should not affect any other code, as it was purely an addition to documentation. No existing documentation was altered.
Screenshots
Types of changes
Only a change in documentation, as clarification was requested through #16128 .
Checklist: