-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
WARNING Potentially invalid value for $container-max-widths #24061
Comments
@sabrown84 function comparable from sass cannot compare percentage values with px |
@sabrown84 I don't known how work this function inside, but function receive only numbers
If function receive Script as parameter, maybe we can write mixin for this? But precentage and integer values(px) cannot be comparable |
universal solution for this code is remove all warnings
🤣 |
yes ok I think I understand. |
@sabrown84 Maybe we can use $grid-breakpoints for comparable.
In this example we has $container-max-widths with sm key setted to 100%. For this case 100% always less than 560px. In xl case 92% always more than 1440px and we can understand that. |
@sabrown84 I read libsass source and found this:
find_convertible_unit:
and last step is the string_to_unit()
this function don't know percantage % as units |
Hi @romanlex |
@sabrown84 think about what? Imho I don't see any universal method for this. I think container width may be are given as a percentage. thx for your reply |
Hello. What you think about this issues? |
/CC @andresgalante |
Afsik it is used 2 times in the bootstrap sources:
For the breakpoints i understand the implications but i don't see it for the container width. at least the part Or am i missing something? |
Please don't highlight me. Thanks! |
We have the same use-case as @romanlex where the container-max-width of xl is 100%. Sure, the perfect solution would be to allow percentage values. But we would also be happy with a dumb switch to entirely disable the asserts. |
@romanlex : as a contributor, do you see any chance to make progress on this one? I (and others) would highly appreciate it since those warnings are spamming the build. |
Would be great to see any progress on this one. We have the same issue in our build. |
@Paladinium @TokenR1ng you can test this #26689 |
@romanlex : wow, thanks, that's really great! |
there is the same problem with width in "vw"
|
Hello, I have warning when trying compile styles with this variables:
Message:
WARNING: Potentially invalid value for $container-max-widths: This map must be in ascending order, but key 'xl' has value 92% whose unit makes it incomparable to 960px, the value of the previous key 'lg' !
I think what this block is wrong and should ignore the specified values in percentage
The text was updated successfully, but these errors were encountered: