-
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
Columns block: Prevent reducing column count from deleting content #34893
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: +225 B (+0.01%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
b88c6fe
to
1ad6d70
Compare
1ad6d70
to
b8bcb4e
Compare
Awesome :) this is an old problem to try and solve. In the original issue the goal was to make the columns block wrap the content that would be removed on a new "row". The columns block does not have rows though. The solution here is interesting (I too like this control better than the slider) but it does not seem easy to intuit to me why the disabled options are disabled. |
I'd like to abstract the design from a potential solution (leave the current design in place). Perhaps storing the "deleted" columns in the current session, to be inserted when adding back a column? Shared here: #9009 (comment) |
b8bcb4e
to
3965085
Compare
I’ve tried an added help message on the control for such cases so it doesn’t have to be intuited. Only took three years 😆.
I think design is the root of the issue but that said this PR doesn’t attack the root, merely tries avoiding its pitfall. If you were going off the old screen recordings I did have some extraneous design changes that are now reverted (and replaced the old screen recordings with a current one). |
As I mentioned on the issue, can we try to meet expectations first by making the behavior where if you go down in column count, and then back up, your content is not seemingly gone? I think we can solve this without any design changes. |
This is aimed to resolve a rather old issue #9009. It should probably be vetted UX-wise before worrying about a code-review so it's drafted for now.
The control for the column quantity is now a
ToggleGroupControl
which has its options disabled in accord with the number of occupied columns and thereby prevents deleting content. Even without that, the new control seems like an improvement because it communicates the recommended range of columns whereas the slider is vague.Testing Instructions
…
Screenshots
columns-guard-content-deletion.mp4
Types of changes
Enhancement to close: #9009
Checklist:
*.native.js
files for terms that need renaming or removal).