Safari iOS v15 TW4 Breakpoints fix? #204
-
|
Safari iOS v15 isn't rendering breakpoints. I found the following suggested fix but it is not working. Any suggestions other than rolling back to TW3? `@theme { @custom-variant sm (@media (min-width 40rem)); |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Hi Sam—Thanks for posting this! Can you describe in what sense the fix above isn't working? Are no media queries being generated at all, are they different from what you expected, or are they generated, but not working in Safari? |
Beta Was this translation helpful? Give feedback.
-
|
Hey Greg, thanks for responding. ``@theme {
|
Beta Was this translation helpful? Give feedback.
-
|
I think you want this style: @custom-variant sm (@media (min-width: 640px));
@custom-variant md (@media (min-width: 768px));
...Do you get the error using those? If you do, I would comment out this line: Line 12 in 320d863 Then I would run |
Beta Was this translation helpful? Give feedback.
I think you want this style:
Do you get the error using those?
If you do, I would comment out this line:
_tw/postcss.config.js
Line 12 in 320d863
Then I would run
npm run devagain and see what the generated CSS looks like for the media queries. If you paste that code in here, I'd be happy to take a look and troubleshoot theFailed to parse selectorserror.