Problem/Motivation
If the markup of a variant is too differnt from another variant it often makes sense to put the markup in own template file.
Right now it is only possible to assign one template to pattern using the "use" attribute.
card:
label: "Card"
use: "@molecules/card/card.twig"
variants:
default:
label: Default
horizontal:
label: Horizontal
use: "@molecules/card/card--horizontal.twig"
Proposed resolution
Add the possibilitly to assign a template to a variant.
Issue fork ui_patterns-3341073
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
Comment #3
christian.wiedemann commentedComment #4
pdureau commentedHi Christian,
If I remember well, we talked about this issue during a monthly meeting and some tests were missing.
Comment #6
grimreaperComment #10
grimreaperComment #12
christian.wiedemann commented