Skip to content

Opacity's @op variable is cached. #4

@miller-time

Description

@miller-time

In my project I am getting a lot of mismatched opacity levels. I inspected the generated CSS and found that "filter:alpha(opacity=x); != opacity:x;" for my calls to the ".opacity" mixin.

According to this Less Issue, the @op variable is getting cached, and I've applied the below fix to my project and it works.

less/less.js#534

.opacity(@op:100)
{
    filter: alpha(opacity=@op);

needs to be changed to:

.opacity(@op:100)
{
    filter: ~"alpha(opacity=@{op})";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions