Skip to content

Collision when mangling selectors #169

@Machy8

Description

@Machy8

Describe the bug

  • In case, when for example a link component is defined and there is a sidebar-link selector, it is going to mangle the selector as a (for link) and sidebar-a (for sidebar link)

  • To prevent this behavior right now, the only way is to configure sidebar-link in the ignoredAreas option to be ignored

  • This could possibly by solved by checking, if the character at the beginning is a "word" character or start of a string. This check should applied only if the selector to replace starts with a word character.

Reproduction

The same as description

Logs

No response

System Info

- Linux, Node 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions