Add Items Justification to Social Links#28980
Conversation
|
Size Change: +3.9 kB (0%) Total Size: 1.38 MB
ℹ️ View Unchanged
|
| const className = classNames( size, { | ||
| 'has-icon-color': iconColorValue, | ||
| 'has-icon-background-color': iconBackgroundColorValue, | ||
| [ `items-justified-${ itemsJustification }` ]: itemsJustification, |
There was a problem hiding this comment.
Did we discuss the naming of this CSS class? I seem to vaguely recall that we did, but can't recall where we ended. I would've probably preferred something like has-justification-left — but maybe there was already an existing CSS class out in the wild?
jasmussen
left a comment
There was a problem hiding this comment.
All looked cool right up until the end (and removing the flex-start seems fine). Before:
After:
However it doesn't work on the frontend: this should be "space between":
It also looks like the flex-start is still output by default on the frontend:
It looks like the items justification CSS is not output on the frontend at all.
I have no idea why, because the code looks right.
|
@jasmussen I added the justification CSS to the common.scss for block-library and it all works as expected. |









Description
Adds justify toolbar controls to Social Links, allows for justifying items in the menu (left, center, right, and space-between). This matches the navigation and buttons features.
@jasmussen - the .wp-social-links class was hard-coded with a
justify-content: flex-start;that I removed to get this to work. I'm not sure if we need it sinceflex-startis the default.How has this been tested?
Screenshots
Types of changes