-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 Elevation #31614
Conversation
Size Change: +415 B (0%) Total Size: 1.62 MB
ℹ️ View Unchanged
|
188e3aa
to
4baf53a
Compare
ef2bc09
to
3ad56ec
Compare
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.
Code changes look good! I compared this PR against previous "promotion" PRs and came up with a couple of notes:
- Should we add a changelog entry?
- I noticed that
packages/components/tsconfig.json
doesn't include all components — for example, should<Divider />
be listed there?
Finally, one last nit: the README states for the value
prop:
"In the example below, isInteractive
is activated to give a better sense of depth."
but there isn't any example below that paragraph.
I also rebased on top of latest trunk
3ad56ec
to
df501ae
Compare
I think we decided not to add changelog entries for the introduction of experimental components, so no, not in this particular case.
Yes it should be in there! I'll open a separate PR to make sure they're all included. |
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.
Given that there's no need for a changelog entry, and that any missing components in tsconfig.json
will be added in a separate PR, the only review comment left to be addressed is:
Finally, one last nit: the README states for the value prop: "In the example below, isInteractive is activated to give a better sense of depth." but there isn't any example below that paragraph.
Once addressed, this PR is good to go!
0b217aa
to
841c9cd
Compare
…-take-2 * trunk: (57 commits) Image block: fix cover transform and excessive re-rendering (#32102) compose: Add types to useMergeRefs (#31939) Navigation: Fix collapsing regression. (#32081) components: Promote Elevation (#31614) compose: Add types to useReducedMotion and useMediaQuery (#31941) Update the graphic that appears in the Template Editor welcome guide (#32055) Block Navigation: use CSS for indentation with known max indent instead of spacer divs (#32063) Fix broken template part converter modal styles. (#32097) compose: Add types to `usePrevious` (#31944) components: Add ZStack (#31613) components: Fix Shortcut polymorphism (#31555) compose: Add types to `useFocusReturn` (#31949) compose: Add types to `useDebounce` (#32015) List View: Simplify the BlockNavigation component (#31290) Remove query context leftovers (#32093) Remove filter_var from blocks (#32046) Templates: Remove now-obsolete gutenberg_get_template_paths() (#32066) [RNMobile] Enable reusable block only in WP.com sites (#31744) Rename ViewOwnProps to PolymorphicComponentProps (#32053) Rich text: remove inline display warning (#32013) ...
Description
Promotes the
Elevation
component to a full export.How has this been tested?
Storybook, type check and unit tests should pass.
Types of changes
New feature.
Checklist:
*.native.js
files for terms that need renaming or removal).