Social Icons: Change the block placeholder and use a button #60202
Labels
[Block] Social
Affects the Social Block - used to display Social Media accounts
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design
Needs design efforts.
[Type] Bug
An existing feature does not function as intended
Description
Splitting this out from #56259 and #59303 (comment)
Potentially solves also #60120
Cc @getdave @WordPress/gutenberg-design
Currently, the Social Icons block shows two placeholders:
When the block is selected
The block shows a 'Click plus to add' text and a 'plus' icon button at the right edge of the block, labeled 'Add block'. This button is the standard 'block list appender toggle' used for other blocks as well. Screenshot:
This doesn't seem to be ideal for a few reasons:
When the block is not selected
The placeholder changes to 3 colored squares. Screenshot:
This doesn't seem to be ideal for a few reasons:
<div>
elements with a background color set. Note: they do contain a CSS generated::before
pseudo element. It is not visible and it's not clear to me what its purpose is. Maybe a leftover. In the screenshot below I set a black background color on it to better illustrate:Proposal
Quoting from #56259
I'd totally agree the placeholder should be a button to 'add' social links. Other blocks already use similar placeholders, for example Row, Stack, Grid. They use a rectangular button with a plus icon. I'd like to propose to use the same kind of button and sytling, just making the button rounded in this case.
Very rough screenshots:
The new 'Add' button should show when first inserting the empty block and always shown at the end when the blosk is selected and being edited:
The button should not be shown when the block is not selected or not being edited:
Consider to make the button label visible (spacing to be improved):
Making the button available when editing would also solve the keyboard operability reported at #60120
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: