Problem/Motivation
Row weight select item overlaps the media field in paragraph field
Steps to reproduce
- Add a paragraph type to article content type.
- Go and add/edit content in article content type.
- In the paragraph field, you will the row weight select list is overlapping the item in left.
- Attached screenshot for reference.
Before Patch

After patch


| Comment | File | Size | Author |
|---|---|---|---|
| #16 | paragraphs-claro.png | 127.86 KB | sheetal.pathak |
| #16 | paragrphs-Olivero.png | 126.16 KB | sheetal.pathak |
| #15 | Paragraph Olivero.png | 33.42 KB | akashdab |
| #15 | Paragraph Claro.png | 35.45 KB | akashdab |
| #11 | Screenshot 2023-07-11 at 3.58.51 PM.png | 105.98 KB | keshavv |
Issue fork drupal-3372720
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 #3
gauravvvv commentedThe spacing appears to be correct in RTL (right-to-left), but there is an issue specifically with LTR (left-to-right) text direction. I have submitted a merge request (MR) with the necessary fix. Please kindly review it.
Comment #4
smustgrave commentedThink after screenshots will be needed.
But also this reproducible in core? Seems like it could be a paragraphs problem.
Comment #5
gauravvvv commentedAfter patch
Comment #6
smustgrave commentedCan the MR be updated for 11.x please.
Comment #8
gauravvvv commentedComment #9
smustgrave commentedGoing to mark but 50/50 if this should be solved in paragraphs or not.
Thanks!
Comment #10
lauriiiDoesn't the weight still overlap with the media field (at least based on the screenshot)?
Comment #11
keshavv commentedI have checked and confirmed that the issue is with the Claro Theme. There is no issue with Olivero Theme.
MR !4351 Works perfectly.
Here are the before-patch screenshots.

Claro Theme
Olivero theme

After patching in Claro theme.

We can go with this MR.
Comment #12
lauriiiThe change increases table column padding for use cases like field cardinality where it's not desired. Is there a way to reproduce this bug with just core? I'm not sure we should at ship the current solution in core because it regresses the UX in common use cases when paragraphs is not used.
Comment #13
keshavv commentedI agree with your point, Otherwise, we need to write paragraph-specific CSS. Will try to replicate.
Comment #15
akashdab commentedCannot reproduce this issue in Drupal 11.x Claro, there seems to be some alignment issue to the weight selection dropdown when admin theme is set to Olivero.
Paragraph view for Claro:
Paragraph view for Olivero:
I also found the steps to recreate the issue unclear, so,
Steps to reproduce
Comment #16
sheetal.pathak commentedFollowed given steps not able to reproduce alignment issue related to row weight field.
Drupal Version 11.x-dev
Paragraphs module version- 8.x-1.18
Themes- Claro , Olivero
Steps to reproduce already mentioned in #15.
Steps followed
1. Created Paragraph Type, added fields to it.
2. Add a paragraph type to article content type.
3. Add/edit content in article content type.
4. Check for Olivero and Claro theme.