Needs review
Project:
Paragraphs
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2022 at 08:23 UTC
Updated:
26 Apr 2026 at 17:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
idebr commentedAttached changes the appearance of paragraph buttons: Use small button by default, but not for modal add mode.
Before:
After:
Comment #3
gaurav-mathur commentedComment #4
gaurav-mathur commentedPatch #2 applied successfully on on Drupal 10.0.x-dev and PHP 8.1.6.
The patch work properly for me.
Refer to screenshots.
Comment #6
yashaswi18 commentedHi, just wanted to check - is this MR still needed as this is an old issue? Looking at the changes, it removes
button--smallfrom the default attributes inParagraphsWidget.phpand conditionally adds it back only when$add_mode !== 'modal', along with the corresponding CSS selector update from.button.button--smallto.buttoninparagraphs.modal.css. The code changes look good as both changes are consistent with each other.Has this already been addressed elsewhere in the codebase, or is this still the right approach? Please confirm.