-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add waring to align/justify-items in IE #1123
Conversation
Did you show this warning only if IE is selected in Browserslist? |
I think I don't. Can you please tell me where I can check if IE is selected? |
I am right now on conference. Check other Grid warnings. |
…dd tips to waring to align/justify-items/content.
@Dan503 I added a tips and a test to almost all properties. Thanks for your descriptions. @ai I was trying to find how I can add warning if specific browser is add, but I'm failing. When you will have some time, can you please describe me how I can do it? Thanks Now I see that tests on Node 10.11.0 are failing because size of the package is too big. Should I cut it off somehow? |
How to check IE is here: Just increase size limit |
let grid = this.prefixes.add['grid-area']
if (this.prefixes.options.grid && grid) { |
@janczer I'm making some alterations to it and I'll submit it as a pull request against your branch. |
@ai was that for testing if the declaration is in a grid element? |
@Dan503 it tests that we have a browsers which needs Grid prefixes |
- Triggers on more than just "display: grid" - Personalizes the "align/justify-self" suggestion based on what the user entered - Splits the warning message into multiple lines to make the warning easier to read
@Dan503 Looks like your commits affected the old tests. Can you check it? |
Yeah I mentioned that in the pull request. |
@Dan503 only by hands 😅 |
@ai how do you know what line number and character number the test is looking for then? Those are incredibly difficult to figure out manually.
@janczer Not at all.
For testing multi-line, you can replicate a new line by using
= "This is line one\n This is line 2" I recommend reverting that last commit completely and trying again. |
Sorry, I am drunk after a conference 😄😄😄 Will answer in next few days |
You can just run the test and check what exactly line has warning.
Ok, looks like it's problem with code that you added.
Autoprefixer has no warnings with new line. I think we can just change warning style.
Because here is a bug #1127.
Looks like that problem with your commits, can you check it? Or I just revert it. |
a353ef6
to
25ba8a2
Compare
Ahh right I get it now, it refers to the line numbers in
I think I might figured out what the main problem was but I'm still getting these weird test fails even though they look like they match up perfectly. Does anyone have any idea what is going on here?
There was a multi-line warning at one point 😕 I can't remember what the multi-line warning was for though. @ai @bogdan0083 Did you change it to a single line warning or remove it? It would be a lot nicer if the warning could stay multi-line.
It looks like it's just a case of the rules being inconsistent. Since we write the test output manually I don't see why the rule can't be included. It just means that that particular rule has its properties the other way around. When I tried to replicate it using the playground it didn't seem to have that issue. I needed to set the playground to "last 5 version" to get it to output the prefixes. |
Try to remove the indentation and indent the lines by hand. It might be tabs/spaces problem 🤔.
Yep, I removed it as we no longer needed warnings for duplicate area names. You can see an example of multiline warning here. |
Nope :(
Ahh ok, yeah that makes sense. |
@bogdan0083 if you want to take a look at the error, you will find it on my |
Thanks! Just wanted to ask 😀 |
@ai @bogdan0083 @Dan503 In the latest commit I fixed all test. Can we merge it now? Or I should change it? |
Well yeah... you fixed the errors but you did it by removing important functionality. You also got rid of the multi-line aspect. So no, we aren't merging yet. I created a pull request against your branch with some updates but it has test errors in it. That's what we are figuring out now. |
What exactly functionality you mean? Can you please explain it here and I can add it.
I'm sorry. But you should fix your pull request. |
You removed all the warnings that Autoprefixer produces when people try to use grid |
I've just checked your branch and I have no strange errors 🤔 |
Really? so you run |
It's not true. You can see it in the last commit: 25ba8a2 |
Oh... sorry, yeah looks like it was altered rather than removed. I still think the multi-line aspect is important though. |
I have one error about the warning message, one about selector namings of this sort:
and one more:
These are the only errors I get. |
@bogdan0083 the second one related to #1127 |
Ah ok, I'll fix up those 2 errors. My console is drowned in bogus errors for whatever reason so I couldn't see them. |
@bogdan0083 I've pushed theoretical fixes for those 2 issues. Can you test? |
Oh crap, I'm sorry. The first error is a little longer, I sent only a part of a diff to show you that my errors are different. Here's the full diff of 1 error:
And the error about the warning message:
You will need to remove the trailing spaces on these lines |
If you want to omit those bogus errors you can try to run a single test by using |
Do you know what the test names go by? |
the first is
and the second is
|
Did you try to remove the fork and set it up again and then use some other editor? I don't know, something is breaking your tests 🤔 |
There were other alterations that I made in my version as well in case people were thinking it's not worth the hassle.
|
Using Jest directly worked 😊
umm... I didn't try that, I did try deleting |
That's cool! Glad it helped. |
Ok I'll delete the |
Our branches got out of sync and it was too difficult to merge so I just created a separate pull request instead #1129 |
Fix #1123