Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

JS dependent styles #3

@Maximilianos

Description

@Maximilianos

In the guide you mention that JS should only touch data attributes or classes starting with .js- and that:

You shouldn't style those classes: they are to be used for Javascript purposes only.

When this interaction is simply a way for JS to handle some sort of JS-only state then I agree completely 😄

What if the state change means that the element should be styled differently however? How do you propose handling that?

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