Problem/Motivation
..../modules/contrib/paragraphs/css/paragraphs.modal.css
Recommend centering label as attached on modal
recommend changing:
ul.paragraphs-add-dialog-list .button.button--small {
background-repeat: no-repeat;
background-position: 10px;
background-size: auto calc(100% - 10px);
margin: 0;
padding-left: 40px;
padding-top: calc(.5rem - 1px);
padding-bottom: calc(.5rem - 1px);
text-align: left;
border-radius: 3px;
}to
ul.paragraphs-add-dialog-list .button.button--small {
background-repeat: no-repeat;
background-position: 10px;
background-size: auto calc(100% - 10px);
margin: 0 auto;
padding-top: calc(.5rem - 1px);
padding-bottom: calc(.5rem - 1px);
border-radius: 3px;
}Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | after_patch.png | 197.37 KB | anish.ir |
| #6 | before_patch.png | 200.25 KB | anish.ir |
| #4 | paragraphs_after-fixes.png | 66.54 KB | tirupati_singh |
| #4 | paragraphs_field-widget-config.png | 163.33 KB | tirupati_singh |
| #4 | paragraphs_before-fixes.png | 88.05 KB | tirupati_singh |
Issue fork paragraphs-3485210
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
tirupati_singh commentedComment #4
tirupati_singh commentedHi, I've fixed the alignment issue for the paragraph label while using the Modal as field widget config. I'm attaching the screenshots of the before and after fixes for reference. Please review the MR changes.
Comment #5
vanessa.fayard commentedI've applied the MR!158 as patch and it applied successfully with no errors.
I have the same result as on the before and after reference screenshots.
Tested on Drupal 10.3.10 'drupal/paragraphs:^1.18'
Thanks
Comment #6
anish.ir commentedHey,
I have applied the MR ( MR !158 ) on version : 8.x-1.x-dev and also on 1.18.
The label's text is being aligned in the center, attaching the screenshots for both after and before for reference.
Hence, moving it to RTBC.