Skip to content

prefer-style-directive should be ignored on a component #173

@shirotech

Description

@shirotech

Svelte will throw an error Style directives cannot be used on components when it tries to change from style= to style:

For example:

<Component style="display:block"/>

will fix to:

<Component style:display="block"/>

Which will throw an error:

Style directives cannot be used on components

I think this is an obvious issue and doesn't require a reproduction.

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