-
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
[RNMobile] remove override support inserter for columns block #21016
Conversation
Size Change: 0 B Total Size: 822 kB ℹ️ View Unchanged
|
82c4667
to
2f0496e
Compare
… into rnmobile/column-block-with-support-inserter
42ce8d8
to
7b225d4
Compare
@@ -21,7 +21,6 @@ export const settings = { | |||
icon, | |||
description: __( 'A single column within a columns block.' ), | |||
supports: { | |||
inserter: false, |
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.
I have a similar PR, I believe we need a notice in the UI somewhere when we reach the limit of max 6 columns. It becomes more of a guideline than a requirement.
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.
I merged your branch to this :)
On mobile side we temporary override support: inserter
to true in index.native.js
and will remove it after your PR gets merged.
Also Columns works slight different on mobile because we are wrapping them depending on screen size (this wrap happens more quicker than on the web so in the result we have matrix of Column). It do not visualise the layout in 100% but in the other hand we don't need to worry about the max limit according to breaking layout on mobile. However it would be nice to have some UI notice to be aware of having different layout on web.
I will post you a GIF tomorrow to show what I mean
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.
Below GIFs should visualise what I mean.
Few side notes
Currently our guidelines according to looks like that: see this comment. However we also have hardcoded limitation on block container max-width set to 580px. The conclusion is that at this moment we should never have more that 2 Columns in the row on mobile. The limitation notice in Columns on mobile will have more sense if we can go above that width limit ( also above 768px). Then the Columns logic will try to render all Columns in one row. Still we can adjust to add some min-width limit from which we start to wrap in the same manner again. Maybe someday in the future we extend this max-width - don't know exact plan on this but on iPad it feels quite awkward because of lot of empty space on sides - specially in Horizontal layout. I know it's UX to increase readability but not sure if it wasn't also some workaround because of implementation. Please see below screen to see how it looks on iPad.
Apart of above if we have UI notice on web we also should have it on mobile to notice user that layout may be different on web. I'am fully agree with that. @iamthomasbishop do you have any thoughts how this notice should looks like ?
…ck-with-support-inserter
because Allow support inserter in Columns block PR is merged I have sync the PR and we can remove @pinarol do you think we can merge this or wait too see if mentioned PR wont be reverted according to latest comment |
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.
LGTM
Description
🚧 NOTE: Merge only after Allow support inserter in Columns block PR will be merged. 🚧
This PR removes
support inserter
overrides made inindex.natie.js
inside Column Block.Please refer to:
Related gutenberg-mobile PR
Allow support inserter in Columns block PR
Column Block PR
design note
How has this been tested?
Checking all Column Block PR testing requirements (see Column PR description)
List of changes:
index.native.js
from column with overridessupport: inserter
settingTypes of changes
Refactor - Change overrides of
support: inserter
aftersupport inserter: false
fromindex.js
of column block prop will be delete.Checklist: