Skip to content

--reset is included multiple times in the stylesheet #48

@erfanio

Description

@erfanio

When building the stylesheet --reset from variables.css is included multiple times.
theme.css of each component has its own @apply --reset; hence the reason it is included just before the styles of each component in the stylesheet.

image

Since the name of the class is not different (in my case all of them have _313TK classname) and exists in the stylesheet multiple times, chrome recognises each as an override of the one before, and this one class shows up tens of time in the dev tools when looking at the styles of the an element, which is super annoying.

image

In the meantime I have written a script that removes all the duplicates based on a regex (\._313TK{[^\}]*}\._313TK[^\}]*}) but this really needs to be fixed especially since I notice chrome dev tools really struggling when I am looking through styles (look how tiny the scrollbar is in the screenshot).

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