Clone of #2933851: Add support for masking to the Icon field for supporting layers

It would be awesome if we could easily use FA layering and masking. https://fontawesome.com/how-to-use/svg-with-js#masking and https://fontawesome.com/how-to-use/svg-with-js#layering

For masking, maybe add a checkbox to the field settings which adds a secondary autocomplete field to use as the mask?

For layers, maybe an option is to make the fontawesome field multi-value ( field storage -> Allowed number of values > 1 ), and if there is more than one field present, change the template to have the .fa-layers class on the wrapper?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Daniel.Moberly created an issue. See original summary.

Daniel.Moberly’s picture

Attaching a patch to add layers support. Layers can be enabled through the Field Display settings for the icon field.

Daniel.Moberly’s picture

Status: Active » Needs review

  • Daniel.Moberly committed b0327fa on 8.x-2.x
    Issue #2934509 by Daniel.Moberly: Add support for layers to the Icon...
scottsawyer’s picture

Patch works as advertised!! Thanks so much for quickly turning these around.

Daniel.Moberly’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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