Follow-up to #2395853: Split system.module.css and system.theme.css files into SMACSS style components

After splitting the system.module.css and system.theme.css there are still some references to it in core, particularly in tests. Those need to be changed/removed.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because this is mostly clean up.
Issue priority Not critical.
Unfrozen changes Unfrozen because it only changes CSS and tests.
Prioritized changes This is not a prioritized change for the beta phase.
Disruption This only affects CSS files. There should be little or no disruption.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

davidhernandez created an issue. See original summary.

davidhernandez’s picture

Issue tags: +Novice
Wim Leers’s picture

Issue tags: +php-novice
meramo’s picture

Status: Active » Needs review
FileSize
4.54 KB

First take.
References replaces with existing files in tests, also noticed that apart from system.module.css and system.theme.css, the system.base.css was also removed but it's referenced in tests, so took care of it as well. Just correct me if I'm wrong and I'll redo.

LewisNyman’s picture

Status: Needs review » Needs work

@meramo Hi, thanks for the work. Do you think we could use a file that was split out of system.module.css instead of the other big CSS files? I think they are also going to get split up at some point so it would break tests again at some point. I think js.module.css is a good example.

burkeker’s picture

Assigned: Unassigned » burkeker
rominronin’s picture

Hi, I'm working with @burkeker on this at drupalcon barcelona (first time sprinters, please be gentle).

burkeker’s picture

Assigned: burkeker » Unassigned
Status: Needs work » Needs review
FileSize
4.11 KB

We've
1) changed all the references from system.admin.css to js.module.css;
2) reverted the references to system.base.css

Hope it works!

burkeker’s picture

Accidentally included the local .gitignore settings. A revised patch attached. Sorry for the (potential) confusion!

meramo’s picture

Applies very nice against the head, also does what it should according to the issue description. Let's wait for someone else review and set to rtbc if all fine.

LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community

Tests pass and I'm happy with the direction.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 9: drupal_core-remove_obsolete_css_2553553-9.patch, failed testing.

The last submitted patch, 9: drupal_core-remove_obsolete_css_2553553-9.patch, failed testing.

LewisNyman’s picture

Issue tags: +Needs reroll
alvar0hurtad0’s picture

alvar0hurtad0’s picture

Status: Needs work » Needs review

I forgot changing the status

j2r’s picture

Status: Needs review » Reviewed & tested by the community

Patch apply successfully and Searched for any reference of the system.module.css and system.theme.css and its not there.
Moving it to RTBC

star-szr’s picture

Issue tags: -Needs reroll

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 15: remove_references_to-2553553-15.patch, failed testing.

Peacog’s picture

It seems to me that this test is not doing what it purports to do. I'm not very familiar with the test subsystem, so I may be missing something, but it looks like this is testing that the stylesheets-remove key in .info.yml successfully prevents a CSS file from being added to the page. However the function names and comment blocks all talk about testing that CSS overrides work properly, which I would take to mean testing the stylesheets-override key. If I've misunderstood I think it would be useful to clarify the wording in the comment blocks because it's quite confusing.

emma.maria’s picture

Version: 8.0.x-dev » 8.1.x-dev

Setting this back to RTBC as the patch applies and it has been set to RTBC many times already. Also moved to 8.1 version as this issue is a Task.

ChandeepKhosa’s picture

Status: Needs work » Reviewed & tested by the community

RTBC as mentioned by Emma above :)

  • catch committed a271660 on 8.1.x
    Issue #2553553 by burkeker, alvar0hurtad0, meramo: Remove references to...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.1.x, thanks!

Status: Fixed » Closed (fixed)

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