-
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 the columns block to use the new colors hook #21038
Conversation
Size Change: -42 B (0%) Total Size: 859 kB
ℹ️ View Unchanged
|
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.
Nice, I like the direction.
Unrelated note. The number of experimental props used for RichText and InnerBlocks makes it nearly impossible for 3rd party devs to follow code implementation uses in Gutenberg 🙁 It also means it’s all undocumented and difficult to use for contributors...
True, we need to continue our audits. the color hook is something I want to stabilize pretty quickly |
92ef4bb
to
dfca58c
Compare
0127313
to
5a2e929
Compare
This one is ready to ship. |
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.
Indeed it is, nice work 👍
Oh, it seems we might need a deprecated version here, I'll add it and ship. |
07af0d0
to
5fed61c
Compare
@@ -101,7 +101,9 @@ const BlockComponent = forwardRef( | |||
// should only consider tabbables within editable display, since it | |||
// may be the wrapper itself or a side control which triggered the | |||
// focus event, don't unnecessary transition to an inner tabbable. | |||
if ( wrapper.current.contains( document.activeElement ) ) { | |||
if ( | |||
isInsideRootBlock( wrapper.current, document.activeElement ) |
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.
For me this is a bug that is present on master too. If you want to select a block, you want to select the root block, not an inner one.
@@ -91,7 +91,7 @@ describe( 'Navigating the block hierarchy', () => { | |||
await pressKeyWithModifier( 'ctrl', '`' ); | |||
await pressKeyWithModifier( 'ctrl', '`' ); | |||
await pressKeyWithModifier( 'ctrl', '`' ); | |||
await pressKeyTimes( 'Tab', 4 ); | |||
await pressKeyTimes( 'Tab', 5 ); |
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.
The colors panel is shown before the columns count now.
Based on #21021 to try test the API on different blocks (columns for this PR)