Problem/Motivation

This task was created for #3253156: [meta] Remove IE11 Support from Olivero

The problem: we are finally able to kick IE11 support from Olivero starting in Drupal 10 (original node)

How to solve this issue: normally you have to check 'css/layout' folder of the Olivero theme and replace flexbox layouts by grid layouts, but if such replacement can be done for some components to reduce weight of css file & simplify it -> i'd say it will be good aswell

Steps to reproduce

N/A

Proposed resolution

Use grid layouts

Remaining tasks

Review

User interface changes

See #33

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

Issue fork drupal-3262156

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

kostyashupenko created an issue. See original summary.

kostyashupenko’s picture

Status: Active » Needs review
xjm’s picture

Priority: Normal » Critical
Issue tags: +Drupal 10 beta blocker
xjm’s picture

Priority: Critical » Major
Issue tags: -Drupal 10 beta blocker

Actually this sounds like a code improvement, but not a hard requirement to finish before 10.0.0, so major is a better priority.

xjm’s picture

Issue tags: +Drupal 10
xjm’s picture

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

libbna’s picture

Assigned: Unassigned » libbna

I will review this.

libbna’s picture

Assigned: libbna » Unassigned
Status: Needs review » Needs work

I have reviewed the last MR and still found usage of flex in files under components/ and layout/ like
comment.css, content-moderations.css - flex-direction, dropbutton.css, feed.css, etc.

Also do we have to change the display:inline-flex to display:inline-grid ?

finnsky’s picture

Status: Needs work » Needs review

Thanks for review, but i think that target of issue (simplification of flexbox grids and not removing flexbox) achieved in that MR.

mherchel’s picture

Status: Needs review » Needs work

@kostyashupenko Thanks for the MR.

Changing the layout format of the messages, vertical tabs, etc is out of scope, and I'm not quite sure it's needed just yet. Let's keep this to the layout templates.

@finnsky It looks like the MR you created is similar (if not a copy) to @kostyashupenko's. Are there differences? if so what?

finnsky’s picture

RE #13
i would say difference in more smart grid calculation in these variables:

  --grid-2-col-width: calc(var(--grid-col-width)*2 + var(--grid-gap));
  --grid-3-col-width: calc(var(--grid-col-width)*3 + var(--grid-gap)*2);
finnsky’s picture

Status: Needs work » Needs review
StatusFileSize
new2.13 MB
new1.92 MB

Updated MR with removing `out of scope` changes
@mherchel
quick explanation of different approach:

In case of equal columns usage of 1fr is ok.
But in case of 25%/50%/25% or 33%/67% or others it calculated incorrect without gap size.

Layout of article with 25%/50%/25% in first MR:

just fr

In my approach i use gap size for calculations, so in my MR same layout:

smart

It seems me better approach. Please review

andy-blum’s picture

Status: Needs review » Needs work

MR needs to be rebased & re-targeted to 10.1.x

gauravvvv’s picture

Status: Needs work » Needs review
StatusFileSize
new15.9 KB

I have re-rolled the patch against d10. As the patch is no longer applied on d10. so not attaching the inter-diff.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new144 bytes

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

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

ranjith_kumar_k_u’s picture

StatusFileSize
new15.74 KB

Re-rolled #17

longwave’s picture

Version: 10.0.x-dev » 10.1.x-dev
Status: Needs work » Needs review

As a non-critical task this will only go into 10.1.x now; there is no functional bug to solve in 10.0.x here.

pradipmodh13’s picture

StatusFileSize
new638.27 KB
new478.28 KB

Successfully Patch Applied #19.
It's working fine as expected.
Attached screenshot.

nilesh.k’s picture

Assigned: Unassigned » nilesh.k

I will double check patch #19

nilesh.k’s picture

StatusFileSize
new583.47 KB
new548.92 KB

Done patch work successfully working as expected
I have attached a screenshot.

nilesh.k’s picture

Assigned: nilesh.k » Unassigned
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs screenshots

Patch no longer applies
error: patch failed: core/themes/olivero/css/layout/layout-builder-fourcol-section.css:11
error: core/themes/olivero/css/layout/layout-builder-fourcol-section.css: patch does not apply
error: patch failed: core/themes/olivero/css/layout/layout-builder-threecol-section.css:11
error: core/themes/olivero/css/layout/layout-builder-threecol-section.css: patch does not apply
error: patch failed: core/themes/olivero/css/layout/layout-builder-twocol-section.css:11
error: core/themes/olivero/css/layout/layout-builder-twocol-section.css: patch does not apply

Also tagging for screenshots of these being used in layout builder. 1 set should be enough.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

kostyashupenko’s picture

Status: Needs work » Needs review
StatusFileSize
new15.78 KB

Reroll against 11.x

smustgrave’s picture

Status: Needs review » Needs work

Please include a diff or interdiff with patches even for rerolls.

Seems #27 caused test failures.

finnsky changed the visibility of the branch 3262156-reroll-plus-fixes to hidden.

finnsky changed the visibility of the branch 3262156-8 to hidden.

finnsky changed the visibility of the branch 3262156-olivero-simplification-of to hidden.

finnsky’s picture

Status: Needs work » Needs review
StatusFileSize
new1.9 MB

I lile this new approach more than previous.
Now i've used `span 2 or 3`
so 25 + 25 + 50 has same middle gap as 50 + 25 + 25
etc.

new grid

Please review!

quietone’s picture

Issue summary: View changes
kiwimind’s picture

Agree with the approach used on #32. Much nicer to define using spans than calculating values.

Code looks good, shame we're still using 33-34-33 now that it's proper thirds, however I realise that that is perhaps above and beyond. Similar with 33-67.

I've checked the code, but have not had a chance to test, so won't mark as RTBC yet.

Thanks, looking forward to this change that I've often overridden. :)

mherchel’s picture

Status: Needs review » Needs work

This looks amazing. I love how grid can clean up the code so well. We had those funky margins in there because we had to support IE11 🤮

Anyway, I have one nice-to-have that I think we should get in here:

Instead of using --layout-threecol-grid: repeat(4, 1fr); to set up the grid, let's use minmax(0, 1fr) to set the maximum grid width to 1fr. Otherwise, if there's super wide content that doesn't fit, it will stretch the grid.

So, something like --layout-threecol-grid: repeat(4, 1fr); would become --layout-threecol-grid: repeat(4, minmax(0, 1fr));

Otherwise this is perfecto.

finnsky’s picture

Status: Needs work » Needs review

Fixed please review.

quietone’s picture

Hiding patches.

smustgrave’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: -Needs screenshots

So moving to NW because the nightwatch tests keep failing, re-ran 3 times.

finnsky’s picture

Status: Needs work » Needs review

seems `3 times` of random failures. at least gone after rebase

nayana_mvr’s picture

StatusFileSize
new822.8 KB
new756.77 KB
new763.32 KB

Verified the changes on Drupal version 11.x and the changes are applied cleanly. Attaching before and after screenshots for reference. Need RTBC+1 with code review.

Before:

before

After:

after

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Drupal 10, -Drupal 10 beta should-have

Believe feedback for this one has been resolved and no visual regression introduced.

Removing D10 beta tags as clearly missed that boat.

  • nod_ committed 416ef9d7 on 10.4.x
    Issue #3262156 by finnsky, kostyashupenko, ranjith_kumar_k_u, gauravvvv...

  • nod_ committed 0ba8488d on 11.x
    Issue #3262156 by finnsky, kostyashupenko, ranjith_kumar_k_u, gauravvvv...
nod_’s picture

Version: 11.x-dev » 10.4.x-dev
Status: Reviewed & tested by the community » Fixed

Committed 0ba8488 and pushed to 11.x. Thanks!
Committed 416ef9d and pushed to 10.4.x. Thanks!

Status: Fixed » Closed (fixed)

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

xjm’s picture

Retroactively crediting myself for triage. You're welcome, Acquia.