Needs work
Project:
Paragraphs
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2016 at 00:41 UTC
Updated:
5 Feb 2025 at 10:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dennis cohn commentedIs this coming in the new version? Would love to see this happening.
Comment #3
miro_dietikerSure, but we first want to release a new Paragraphs version without the icon field... There are delays with signing off the release, hope we can unlock the progress this week.
Comment #4
toncic commentedI just try in browser to see how will looks. Here is the code which I added and the screenshot how it looks.
Comment #5
miro_dietikerYeah, we discussed and felt like this could be the most simple start... (compared to adding an image tag inside the button...)
At least it makes the icons somehow visible.
The modal mode will be an option and we first need to figure out how well it works. There will be many follow-ups to care.
So i would vote to also bring in the icons here as a starting point.
Comment #6
toncic commentedHere is better mock-ups.
Comment #7
toncic commentedUpdates for last mock-up.
Comment #8
miro_dietikerI think the label should be left aligned.
Also if we do mockups, we should display the button in the different states including the expanded version.
You changed proportion of the mock-up. The text is much smaller or the buttod gained size and padding. Scale and proportion matters.
Comment #9
toncic commentedUpdated mock-ups.
Comment #10
VladimirMarko commentedComment #11
VladimirMarko commentedThis should be easy to adapt from #2831763: Use Paragraphs types icons in the "Modal" add mode now.
Do mind that #2898658: Display non-square paragraphs type icons in the modal form buttons correctly is an issue however, so we might want to solve that first.
Comment #12
miro_dietikerDemoting this to minor as the dropbutton has only very few space and we have a better way (overlay add) to visualise types while adding.
Comment #13
kevinquillen commentedI think this would be a better fit as a modal with larger icons. Not everything can be represented as a tiny image.
Comment #14
miro_dietiker@kevinquillen Totally. We have separate issues around the modal that always referred to the image. When we defined this, the modal was a stretch goal. The fact that we have now the modal also was a reason to demote this to minor.
I kept it open since in our experiments with the Drop button a tiny icon was still better than none.
Comment #15
matiasmirandaI added an option to the "display widget" config form to choose if you want to show the Paragraph type icon in the add button. If selected, the icon will be shown in the buttons, and also inline with the "select" widget (See screenshots).
I attach a patch.
please take a look
Comment #16
matiasmirandaComment #17
matiasmirandaSorry I forgot to add new files. Here goes again.
Thanks
Comment #20
wotts commentedI've made something that's not useable for the community; the patch is simply applicable for our own specific situation, however I still wanted to share. I've added a screenshot aswell.

It's a little patch and some custom CSS for Gin which we load in through a different module.
The custom CSS is super basic and looks like this: