Problem/Motivation

This is part of #3252084: [meta] Remove support for Internet Explorer where the work needed for each component will be tracked.

This issue is to remove IE11 support specifically from Claro and the files that live inside the theme.

Remaining tasks

@todo create a list of tasks.

User interface changes

Admin UI won't support IE11 anymore.

Release notes snippet

@todo

Issue fork drupal-3254202

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

ckrina created an issue. See original summary.

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

kostyashupenko’s picture

Assigned: Unassigned » kostyashupenko

Task is big, so i'm assigning it to myself for now just to let others know i'm currently working on it. Will try to drop some code in next 24h. If no code will be added in next 24h, call 911

kostyashupenko’s picture

Assigned: kostyashupenko » Unassigned
Status: Active » Needs review
longwave’s picture

Status: Needs review » Needs work

Thanks @kostyashupenko! This looks pretty close, I can only find two remaining references in Claro after applying this patch:

css/components/details.pcss.css
436: * Collapse processed for non-supporting browsers like IE or Edge.

css/components/fieldset.pcss.css
46:  margin-top: 0; /* IE11 and Edge do not collapse this margin. Ideally this would be 4px */

We either want to remove these entirely if the comments about Edge are outdated, or remove the reference to IE if the rules are still needed.

This still needs some manual testing after applying to ensure that none of the IE11 fixes were accidentally doing something useful in other browsers.

longwave’s picture

There is also code around the details element, which maybe we can remove if all supported browsers support this now? https://caniuse.com/details

js/details.es6.js:
  Drupal.behaviors.claroDetailsToggleShim = {
    attach(context) {
      if (Modernizr.details || !Drupal.CollapsibleDetails.instances.length) {
        return;
      }
kostyashupenko’s picture

Status: Needs work » Needs review

Alright, you are totally right and it's fixed now and of course i did some local tests with real MS Edge to not make regressions, but as always it needs additional tests and again review :)

xjm’s picture

Title: [meta] Remove IE11 Support from Claro » Remove IE11 Support from Claro
Priority: Normal » Critical
Issue tags: +Drupal 10 beta blocker

Looks like this is happening in this single issue? Thanks for your work on it!

longwave’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll
longwave’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll

Rebased against 10.0.x.

longwave’s picture

Rebased against 10.0.x.

nod_’s picture

JS part is OK with me

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

spokje’s picture

Rebased, would love to RTBC, but this is far to CSS-sy for me to be comfortable with.

catch’s picture

That book failure looks like it might be real?

spokje’s picture

Assigned: Unassigned » spokje
spokje’s picture

Assigned: spokje » Unassigned

BookTest passes locally, rebased MR. Let's see what TestBot thinks this time.

spokje’s picture

All better now.

catch’s picture

Retagging as a should have since this doesn't actually block beta, but also looks close?

mherchel’s picture

Found and opened this pre-existing issue while testing: #3308733: Claro: "Spinner" loading icon not vertically aligned properly

mherchel’s picture

Status: Needs review » Needs work

This is looking great! I went through the code fairly granularly and didn't find any issues. I made special note to test out various changes that I wasn't 100% sure about (they all worked). I found the one issue above, but that is pre-existing.

The only issue that I found is that there are still many uses of the (-ms-high-contrast: active) media query that need to be removed. Most of this can be removed, as the successor to this media query (forced-colors: active) is already in place for modern browsers. When this code is removed, take care to make sure you're not removing the (forced-colors: active) also, because in some places the media queries are combined.

Setting this to Needs Work, but... I'd also be okay with committing this and creating a followup if that's easier.

spokje’s picture

Status: Needs work » Needs review

Did a rebase and tried to remove all (-ms-high-contrast: active) media queries, including one I have my doubts about. Left a MR comment on that one.

Also removed some icons which I think are now redundant.

mherchel’s picture

The diff isn't applying anymore (due to #3308821: Update stylelint-config-standard to 28.0.0 being merged).

mherchel’s picture

Status: Needs review » Needs work

This is really close. There's another code block within the details.pcss.css file (see comment in the MR) that uses the .collapse-processed selector. We should be able to remove this.

spokje’s picture

Status: Needs work » Needs review
bnjmnm’s picture

Status: Needs review » Needs work

Found additional lines of CSS that can be removed due to it only being part of the details polyfill, so back to NW but this is very close.

I also did a bunch of manual testing in Edge (including WHCM) to confirm some of the potentially-Edge-impacting changes were safe, and everything looks good there.

longwave’s picture

Status: Needs work » Needs review

Removed details polyfill CSS from here. Also fixed a minor bug in the RTL selectors in system-status-report.pcss.css:

-.system-status-report__status-title .details-title:before,
-.details .system-status-report__status-icon:before {
+.system-status-report__status-icon:before {

...
 
-[dir="rtl"] .system-status-report__status-title .details-title:before,
-[dir="rtl"].details .system-status-report__status-title:before {
+[dir="rtl"] .system-status-report__status-icon:before {

Note that the second RTL selector was status-title instead of status-icon, which would not have overridden the previous selector; this is now corrected.

bnjmnm’s picture

Status: Needs review » Reviewed & tested by the community

I've spent some quality time with this MR over the past few days and the final few changes seem to address everything. I'm going to RTBC and 🤞 that tests still pass (certainly doesn't seem like they won't but one never knows...)

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

I've gone through the comments on the issue and they are all addressed. I've searched the code base for IE remnants and checked that all the images being removed are not used. It all looks great.

Committed and pushed 766d627500 to 10.1.x and 6d55a8f31d to 10.0.x. Thanks!

  • alexpott committed 766d627 on 10.1.x
    Issue #3254202 by Spokje, kostyashupenko, longwave, mherchel, bnjmnm:...

  • alexpott committed 6d55a8f on 10.0.x
    Issue #3254202 by Spokje, kostyashupenko, longwave, mherchel, bnjmnm:...

Status: Fixed » Closed (fixed)

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