-
Notifications
You must be signed in to change notification settings - Fork 8
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
COM-65: Improve layout selection UX in createColumnsBlock
#1384
Conversation
Same thing here like with the alerts, I'm not quite sure how to correctly embed the theme colors here, so I've put the hex code for now. |
packages/admin/blocks-admin/src/blocks/factories/columnsBlock/FinalFormLayoutDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/admin/blocks-admin/src/blocks/factories/columnsBlock/FinalFormLayoutDisplay.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Ricky James Smith <jamesricky@me.com>
Co-authored-by: Ricky James Smith <jamesricky@me.com>
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.
Instead of creating an additional FinalFormLayoutDisplay component, I'd move the logic into FinalFormLayoutSelect. This would also remove the duplicate styling I suppose.
packages/admin/blocks-admin/src/blocks/factories/createColumnsBlock.tsx
Outdated
Show resolved
Hide resolved
packages/admin/blocks-admin/src/blocks/factories/columnsBlock/FinalFormLayoutSelect.tsx
Outdated
Show resolved
Hide resolved
packages/admin/blocks-admin/src/blocks/factories/columnsBlock/FinalFormLayoutSelect.tsx
Outdated
Show resolved
Hide resolved
createColumnsBlock
createColumnsBlock
createColumnsBlock
Hide select when there's only one layout for a specific number of columns. --------- Co-authored-by: Ricky James Smith <jamesricky@me.com> Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
Hide select when there's only one layout for a specific number of columns.
Only one layout available (no select)
Multiple layouts available (with select)