Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTLPlugin is losing !important on border-width #485

Closed
sea1jxr opened this issue Aug 28, 2015 · 2 comments
Closed

RTLPlugin is losing !important on border-width #485

sea1jxr opened this issue Aug 28, 2015 · 2 comments
Milestone

Comments

@sea1jxr
Copy link

sea1jxr commented Aug 28, 2015

// bug.less .selector { border-width: 1px 2px 3px 4px !important; }

Running:
dotless.compiler.exe -p:Rtl:forceRtlTransform=true bug.less

Actual:
.selector { border-width: 1px 4px 3px 2px; }

Expected:
.selector { border-width: 1px 4px 3px 2px; !important }

Summary:
Looks like the borders are correctly adjusted for RTL, but the !important decoration is lost.

@rytmis
Copy link
Contributor

rytmis commented Aug 30, 2015

Are you running the latest version? I fixed a bunch of these issues in 1.5.1.

On 29 Aug 2015, at 01:14, sea1jxr notifications@github.com wrote:

// bug.less
.selector {
border-width: 1px 2px 3px 4px !important;
}

Running:
dotless.compiler.exe -p:Rtl:forceRtlTransform=true bug.less

Actual:
.selector {
border-width: 1px 4px 3px 2px;
}

Expected:
.selector {
border-width: 1px 4px 3px 2px; !important
}

Summary:
Looks like the borders are correctly adjusted for RTL, but the !important decoration is lost.


Reply to this email directly or view it on GitHub.

@sea1jxr
Copy link
Author

sea1jxr commented Aug 30, 2015

This is version 1.5.1. I discovered this while upgrading from version 1.3.1.0 to 1.5.1. So this bug is on 1.5.1. I also noticed several RTL fixes, and I was able to remove workarounds that we had in place. Thank you for those.

-jeff

From: Lauri Kotilainen [mailto:notifications@github.com]
Sent: Sunday, August 30, 2015 12:05 AM
To: dotless/dotless dotless@noreply.github.com
Cc: sea1jxr sea1jxr@yahoo.com
Subject: Re: [dotless] RTLPlugin is losing !important on border-width (#485)

Are you running the latest version? I fixed a bunch of these issues in 1.5.1.

On 29 Aug 2015, at 01:14, sea1jxr notifications@github.com wrote:

// bug.less
.selector {
border-width: 1px 2px 3px 4px !important;
}

Running:
dotless.compiler.exe -p:Rtl:forceRtlTransform=true bug.less

Actual:
.selector {
border-width: 1px 4px 3px 2px;
}

Expected:
.selector {
border-width: 1px 4px 3px 2px; !important
}

Summary:
Looks like the borders are correctly adjusted for RTL, but the !important decoration is lost.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fdotless%2fdotless%2fissues%2f485%23issuecomment-136094041&data=01%7c01%7cJeff.Reed%40microsoft.com%7cee7753c9bb664bf683bc08d2b1095dce%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=m7o%2fu0xcE1Gje3p75XRG2q8H%2fLAHBkYWS1X10m4BB54%3d.

@rytmis rytmis added this to the 1.5.2 milestone Sep 13, 2015
@rytmis rytmis closed this as completed in 0e2deee Sep 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants