Skip to content

Add advanced alignment to inspector - #1454

Closed
ellatrix wants to merge 1 commit into
masterfrom
try/alt-block-align
Closed

ellatrix wants to merge 1 commit into
masterfrom
try/alt-block-align

Conversation

@ellatrix

Copy link
Copy Markdown
Member

Alternatively I can remove the centre alignment from the inline toolbars as well. I'm fine with either.

@ellatrix
ellatrix requested review from jasmussen and mtias June 26, 2017 13:24
@jasmussen

Copy link
Copy Markdown
Contributor

Thanks for exploring, it has helped clarify that we need some more clear patterns for what goes in the inspector and what goes on the block, and how to make room for more buttons especially with mobile as a consideration.

I need to work on some inspector work for the gallery in the next couple of days anyway, so perhaps it would be good to press pause on these explorations for now, and resume once we have some patterns hashed out.

Right now I'm thinking we need more clear examples of what constitutes "basic", and what constitutes "advanced". We may need some new quick toolbar patterns to make sure things fit on mobile, perhaps ressurect the idea of collapsing some groups (like alignments, block styles, or heading levels) into dropdowns when there's not enough room, as shown here: #860 (comment)

*/
import { __ } from 'i18n';
import { concatChildren } from 'element';
import { Toolbar } from 'components';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note with #2172, these need to be updated to prefix the dependencies with @wordpress/. You will need to perform a rebase against the latest version of master and apply your changes:

git fetch origin
git rebase origin/master

@gziolo

gziolo commented Sep 22, 2017 •

Copy link
Copy Markdown
Member

@mtias or @karmatosed is it still relevant? It seems like an useful addition. @iseulde it needs rebase.

@gziolo
gziolo self-requested a review September 22, 2017 14:37
@ellatrix

Copy link
Copy Markdown
Member Author

This PR just explores keeping only one alignment button inline that toggles centre and default alignment, since these are the most used, and moves explicit left, and right alignment to the inspector.

@jasmussen

Copy link
Copy Markdown
Contributor

I think recent explorations that surround the toolbar, as well as toolbar overflow, are probably higher on our list for the time being. If those work, we can close this. If they don't work, then we should totally revisit this.

@gziolo

gziolo commented Oct 11, 2017

Copy link
Copy Markdown
Member

I will close it then, we can always reopen later if we change our mind :)

@gziolo gziolo closed this Oct 11, 2017
@gziolo
gziolo deleted the try/alt-block-align branch October 11, 2017 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants