We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The recent changes to resolveMediaRangeQuery broke the case where you would want to have boolean flag based media conditions like this:
resolveMediaRangeQuery
const isTablet = DeviceInfo().isTablet(); createStitches({ media: { phone: !isTablet, tablet: isTablet, } }); const Example = styled('View', { backgroundColor: 'red', '@tablet': { backgroundColor: 'blue', } });
This feature should be added back.
One problem we need to figure out is what is the specificity order when both boolean flag based and range queries are used and they overlap, eg:
createStitches({ media: { phone: !isTablet, tablet: isTablet, md: '(width >= 750px)', lg: '(width >= 1080px)', xl: '(width >= 1284px)', xxl: '(width >= 1536px)', } });
If for example tablet and xl would be both used and the device would match both which one should overwrite the other?
tablet
xl
const Example = styled('View', { backgroundColor: 'red', '@tablet': { backgroundColor: 'blue', }, '@xl': { backgroundColor: 'yellow', } });
The text was updated successfully, but these errors were encountered:
Temzasse
Successfully merging a pull request may close this issue.
The recent changes to
resolveMediaRangeQuery
broke the case where you would want to have boolean flag based media conditions like this:This feature should be added back.
One problem we need to figure out is what is the specificity order when both boolean flag based and range queries are used and they overlap, eg:
If for example
tablet
andxl
would be both used and the device would match both which one should overwrite the other?The text was updated successfully, but these errors were encountered: