Skip to content

Modifier doesn't check if modifier is empty! #13

Open
@VishalKumarSahu

Description

@VishalKumarSahu

foreach ($modifiers as $modifier) {

If we pass an array of modifer like
bem(base_element, ['mod1', 'mod2', ''])
returns
base_element--mod1 base_element--mod2 base_element--
where last part is undesirable, since inside twig some variable may be empty. So there should be some check for if the value is there or it is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions