-
Notifications
You must be signed in to change notification settings - Fork 3.4k
If the child component uses the media query style, it will not be loaded. Why #4331
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
Comments
Hey @nicky132! I'm here to help you with any bugs, questions, or contributions you have. Let's get to the bottom of this together! The issue you're experiencing with media queries not being applied in Less version 4.2.2 might be related to known issues with media query processing in this version. Specifically, there is a known issue where empty Additionally, there is a bug in Less.js 4.2.1 where nested To address this, you might want to check if your Less code uses any features like To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
There seems to be an issue with the CodeSandbox. @nicky132 Could you take a look at permissions? |
source code: preview: seems fine |
You may be able to access the CodeSandbox, but others may not be able to. You likely have to make the sandbox public/shareable. Trying to access the sandbox yields the message:
Since it exists for you, there is likely a permissions issue. An alternative would be to just post the problematic Less syntax here so we can take a look. |
public share already set,try again |
I can now access the CodeSandbox. I will look for problematic Less in the CodeSandbox project. |
I identified some syntax that is problematic starting in Less version
Starting in Less
I have a fix for the Workaround: Ensure the source has a space after Thank you for the bug report @nicky132 |
I put together a PR which should address the issue I identified from the CodeSandbox: #4332 There are ongoing CI issues, but the tests pass locally. |
To reproduce:
// less code here
Current behavior:
when we use less version Higher than 4.2.0, the proble is occurred,
which means the media css style of the child component is lost.
but when we use lower version,like 4.2.0,which works very well.
key css problem code is below here
@media screen and(max-width:1280px) { .form-process-table { width: 1200px; > div { width: 960px; } } }
demo project is here
https://codesandbox.io/p/devbox/j4rj4t?file=%2Fsrc%2Frouter%2Froutes.ts%3A12%2C5
you can visit the application by this way,https://j4rj4t-8001.csb.app/registeProcess
error:


ok:
Expected behavior:
work well
Environment information:
less
version:4.2.2nodejs
version:20.12.0operating system
:windowsThe text was updated successfully, but these errors were encountered: