Problem/Motivation

In D7 it was possible to add css classes to a page variant under the 'general' tab of the variant. Also, a page variant does not add default class that is variant specific to style against leaving only the ability to use hook alter on the build. Since this was a feature in D7 and it has been discussed in other issues I thought it might be a good idea to bring it back.

Proposed resolution

1. Add a default class on the variant build using storage id
2. Add a form element to configure additional classes as in D7

User interface changes

New form element on the variant configuration general tab for additional classes.

Comments

joel_osc created an issue. See original summary.

joel_osc’s picture

Status: Active » Needs review
StatusFileSize
new2.71 KB

Here is a first attempt at a patch.

joel_osc’s picture

Category: Bug report » Feature request
Related issues: +#2849867: Custom attributes in panels blocks and variants
joel_osc’s picture

Status: Needs review » Closed (duplicate)

After getting a clarification from @NWOM it appears that this functionality is part of the patch being developed in #2849867: Custom attributes in panels blocks and variants, so I will closed this as a duplicate.