-
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: Promote ui/Flex and deprecate isReversed
prop
#31297
Conversation
Size Change: -382 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
``` | ||
|
||
The most common use-case for `<Flex />` would be to automatically align two (or more) child items of varying sizes. By default, `<Flex />` would vertically center align them, and evenly spread the inner content horizontally, starting at the edges. |
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.
Should we keep some parts of the old documentation?
|
||
## Sub-Components |
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.
Do we get sub-components undocumented with the changes proposed?
In practice, when every component exposed in the public API is in its own folder, we can create a README.md file that gets automatically exposed to the developer portal:
https://developer.wordpress.org/block-editor/reference-guides/components/
Every README file gets a link in the sidebar menu.
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.
Sure! I can move them into their own folders 🙂
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.
This looks good, I had some minor notes related to how we organize code and documentation.
Co-authored-by: Greg Ziółkowski <[email protected]>
Co-authored-by: Greg Ziółkowski <[email protected]>
ec64274
to
0edc7d0
Compare
Description
Promotes
ui/Flex
into the canonicalFlex
component for WordPress/components. Also deprecates theisReversed
prop.This conflicts with #30261 but replaces the need for it as the new component supports the direction prop.
How has this been tested?
Run Gutenberg and make sure things still work, especially block dragging and other things that use Flex (angle picker control for example).
Types of changes
Non-breaking changes.
Checklist:
*.native.js
files for terms that need renaming or removal).