Skip to content

important rule in LESS mixin moves !important declaration outside mixin #3544

@briandipalma

Description

@briandipalma

Prettier 1.9.2
Playground link

--parser less

Input:

.theme({ color: @the-color; fill: @theme-text !important; });

Output:

.theme({ color: @the-color; fill: @theme-text; }) !important;

Expected behavior:

.theme({ color: @the-color; fill: @theme-text !important; });

Using // prettier-ignore as a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:css/scss/lessIssues affecting CSS, Less or SCSSlang:lessIssues affecting Less-specific syntax (not plain CSS)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions