Skip to content

Prefer vue v-bind instead of :style on dom elements in components. #2817

Open
@m0ksem

Description

@m0ksem

For example, it is required to use !important to restyle va-card because it explicitly has background declared in style attribute. That is not intuitive, so I'd prefer moving to CSS variables where in style tag we define new value for css variable, instead of style. It is pretty simple with v-bind.

Reproduce:
Try to change va-card background with css without important and nothing happens.

BTW, --va-card-background-color is useless because even if it redefined background color from prop is taken. Consider deleting this css variable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    d2: easyRecomended mode for new, but mature playersimplementationRequires implementationv3: wish to haveThis is something user want, but can live without it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions