-
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 Heading #31299
components: Promote Heading #31299
Conversation
Size Change: +198 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
I see a few PRs that expose G2 components as experimental. A few things to think about:
|
👍 What did you have in mind here? Are there specific things we should be looking for?
We didn't previously call out experimental components as experimental in Storybook (see
Yes we should keep them experimental for now until we've migrated more of them and confirmed that the implementations and props are what we want. Heading is simple enough that I don't think it needs to be experimental but it implements all of Text which is experimental and wide ranging (has truncation, highlighting, etc). I think the components are relatively stable but it'd be good for more people to review them so we can continue iterating on them.
I think the hooks are good for internal library composability but not necessary for things outside the library. What do you think? /cc @youknowriad |
820abc3
to
195be4a
Compare
My thinking right now is that we should hold a little bit before making things stable (after feature freeze for WP 5.8 which is something like May 19th in the Gutenberg repo) and after that date, I believe we should be more liberal about stabilizing components (and ideally use them in our codebase) cause we'll have time to adapt in case we discover anything weird (until WP 5.9) |
Good point @youknowriad about WP 5.8 ❤️ |
db9f967
to
1ec95a5
Compare
d1f1fe1
to
3d9ae4e
Compare
1ec95a5
to
8e21381
Compare
I applied changes myself and rebase the branch with I applied some additional changes:
See 8e21381. This is how this component looks in Storybook: |
Description
Promotes the
Heading
component to a fullcomponents
export.How has this been tested?
Storybook still works. The export is experimental and unused so there's no where else to test it.
Types of changes
New feature.
Checklist:
*.native.js
files for terms that need renaming or removal).