Skip to content

Merge common class names of component and root element of that component #8015

Open
@jimut

Description

@jimut

What problem does this feature solve?

It looks a little awkward if there are duplicate class names in a DOM element.

What does the proposed API look like?

If you look into this fiddle.

The div element of foo component will have two bar classes in it. So it looks like.

<div class="bar bar"></div>

If the two classes would have been merged into one.

<div class="bar"></div>

It would have worked and behaved exactly in the same way but the code will look a lot cleaner.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions