- πΊπΈUnited States scotwith1t Birmingham, AL
Incredibly important patch for anyone using the USWDS framework and many others. Thanks @heddn and others! Not sure what else is needed to get this to land, other than passing tests, but hope to see this one in a release soon! :)
- last update
about 1 year ago 28,325 pass, 16 fail - last update
about 1 year ago 28,302 pass, 18 fail - πΊπΈUnited States scotwith1t Birmingham, AL
Just an additional note that this has a side effect of changing how
clean_class
twig filter works. For example, we had a block which had:{% set classes = [ 'block', 'block-' ~ configuration.provider|clean_class, 'block-' ~ plugin_id|clean_class, ] %}
Previously, the plugin_id had its : stripped out and the css was written and applied to that class. After this post, the class name changed because
clean_class
no longer stripped that out. Not a huge deal, but something I hadn't anticipated and had to do a (very minor) css update to address. I would assume there could be other unexpected side effects for other places/modules that use thecleanCssIdentifier
method of this class. - π§π¬Bulgaria nikolabintev
I am uploading a patch that can be applied to the latest stable Drupal 10 version: 10.2.4