I've seen that the module is not cleaning the classes and uses a complete string instead of adding them as an array.

Added patch with Html::cleanCssIdentifier on each class and add them as an array.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alzz created an issue. See original summary.

alzz’s picture

Attaching patch!

Thanks for porting the module to D8, missing it so much!

alzz’s picture

Status: Active » Needs review

Oops! changing to needs review

alzz’s picture

Modified patch to not sanitize underscore into hyphen as version 7 does.

CRZDEV’s picture

Last patch works fine (#4), working the same way as drupal 7 module.

Thanks!

ScottLozier’s picture

Confirming #4 is working as expected.

neha.gangwar’s picture

Title: Clean unvalid classes » Cleanup invalid classes

Changed the title for better understanding.

neha.gangwar’s picture

Status: Needs review » Reviewed & tested by the community

Patch #4 works cleanly.

renatog’s picture

Issue tags: +ciandt-contrib
FileSize
11.11 KB
10.61 KB

Hi people.

I applied the patch #4 and works good for me.

Before:

After:

Thank you very much.

Good Work.

Regards.

  • RenatoG committed aeaeca1 on 8.x-1.x authored by alzz
    Issue #2706511 by alzz, RenatoG, neha.gangwar, ScottLozier, CRZDEV:...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

Committed to the dev branch.

Thank you very much for contribution people.

Good Work.

Regards.

Status: Fixed » Closed (fixed)

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