Problem/Motivation

This is part of the CSS modernization initiative.

The first issue was regarding the form--field-multiple stylesheet.

Steps to reproduce

The stylesheet at https://git.drupalcode.org/project/drupal/-/blob/10.0.x/core/themes/claro/css/components/form--field-multiple.pcss.css needs to be refactored to make use of modern CSS and Drupal core's PostCSS tooling.

Proposed resolution

Use CSS Logical Properties where appropriate
Use CSS nesting where appropriate

Remaining tasks

We need two patches. One for Drupal 9.5.x and one for Drupal 10.0.x
We need a followup issue to refactor this component in Drupal 10.0.x to make use of component-level CSS custom properties.

User interface changes

None. There should be no visual differences.

Issue fork drupal-3294000

Command icon 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

sasanikolic created an issue. See original summary.

sasanikolic’s picture

Not sure there are any changes needed to this file. @mherchel do you have any suggestion?

mherchel’s picture

This one is really simple. I would switch to logical properties and that's it.

aditya4478’s picture

Status: Active » Needs review
StatusFileSize
new650 bytes

CSS logical properties applied for D10.
I think so no changes needed for D9.

sasanikolic’s picture

Version: 9.5.x-dev » 10.0.x-dev
Status: Needs review » Reviewed & tested by the community

Looks good to me.

sasanikolic’s picture

Switched to 10.x version because only the D10 patch is posted.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work

The patch doesn't include the compiled CSS. I'm also wondering if for consistency we should backport this to 9.5.x because PostCSS would provide browser compatibility for this.

sakthivel m’s picture

Status: Needs work » Needs review
StatusFileSize
new684 bytes

@lauriii There is no changes in while complied pcss to css, the css code is same but form--field-multiple.pcss.css added PostCSS properties and local variable.

Attached 9.5.x patch

sasanikolic’s picture

We don't want to use CSS logical properties like margin-block-start for the D9 version, just for D10. That's because in D9 we still support Internet Explorer.

ckrina’s picture

ckrina’s picture

Issue summary: View changes
smustgrave’s picture

Status: Needs review » Postponed
Issue tags: +Needs Review Queue Initiative

This issue is being reviewed by the kind folks in Slack, #need-reveiw-queue. We are working to keep the size of Needs Review queue [2700+ issues] to around 200, following Review a patch or merge require as a guide.

Was discussed in slack #frontend channel slightly with @ckrina and @quietone
Moving to postponed as there are still some decisions to be made about how to go about these changes and what's needed in the follow up.

pursottam_sah made their first commit to this issue’s fork.

stanzin’s picture

Version: 10.0.x-dev » 11.x-dev
Status: Postponed » Needs review
StatusFileSize
new1.29 KB

Patch for V11 :)

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new85 bytes

The Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

stanzin’s picture

Status: Needs work » Needs review
StatusFileSize
new1.25 KB

Updated patch's EOL conversion to Unix (LF) & UTF-8 Encoding.

aditya4478’s picture

Status: Needs review » Reviewed & tested by the community

LGTM ! Keep going for other issues with same patch format.

gauravvvv’s picture

StatusFileSize
new1.11 KB
new1.15 KB

Updated shorthand properties, attached interdiff for same.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 18: 3294000-18.patch, failed testing. View results

Harish1688’s picture

Status: Needs work » Needs review
StatusFileSize
new1.11 KB

Hi,
The previous patch #18 failed when tested for Drupal 11. I am uploading the patch (refactor-form-field-multiple-3294000-19.patch) again, for D11. However, I have also tested it for Drupal 10, and it works without any issues.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

#18 still applies cleanly to 11.x and passed the code-commit.sh. #19 was most likely a random failure so the reroll wasn't needed.

restoring status

  • lauriii committed d7a8c14f on 11.x
    Issue #3294000 by Stanzin, Gauravvvv, Aditya4478, Sakthivel M,...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Committed d7a8c14 and pushed to 11.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

quietone’s picture

Issue tags: -Needs followup

This is a minor only change, removing tag for the followup.