Skip to content

Add custom classes #22

Description

@simonrjones

Is your feature request related to a problem? Please describe.
We'd like to add a custom class to this form code:

<div class="tbxforms-checkboxes">                                         

Describe the solution you'd like

Update this HTML to:

<div class="tbxforms-checkboxes tbxforms-checkboxes--small multicolumn">                                         

Options we've considered:

  • Adding multicolumn as a label and targetting this in the template
  • Adding HTML transformations to append a class where one is spotted
->appendClass('div.tbxforms-checkboxes', 'tbxforms-checkboxes--small multicolumn');

See https://symfony.com/doc/current/components/css_selector.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions