Update the columns block to use the new colors hook#21038
Update the columns block to use the new colors hook#21038youknowriad merged 4 commits intomasterfrom
Conversation
|
Size Change: -42 B (0%) Total Size: 859 kB
ℹ️ View Unchanged
|
gziolo
left a comment
There was a problem hiding this comment.
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. |
|
Oh, it seems we might need a deprecated version here, I'll add it and ship. |
07af0d0 to
5fed61c
Compare
| // 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.
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.
| await pressKeyWithModifier( 'ctrl', '`' ); | ||
| await pressKeyWithModifier( 'ctrl', '`' ); | ||
| await pressKeyTimes( 'Tab', 4 ); | ||
| await pressKeyTimes( 'Tab', 5 ); |
There was a problem hiding this comment.
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)