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
Redefine media query breakpoints doesn't work #22359
Comments
+1 |
Any progress on this? I am finding my media queries, defined the exact same way to also not be working. |
Yes got it working finally. 👯♂️ my
webpack.js
|
Supported in #39105 |
Reproduction link
Steps to reproduce
Install react nextjs and antd. Add a custom less file to redefine variables.
My .less file
@import '~antd/dist/antd.less';
@border-radius-base: 11px;
@primary-color: #a00;
// Media queries breakpoints
// Extra small screen / phone
@screen-xs: 320px;
@screen-xs-min: @screen-xs;
// Small screen / tablet
@screen-sm: 375px;
@screen-sm-min: @screen-sm;
// Medium screen / desktop
@screen-md: 768px;
@screen-md-min: @screen-md;
// Large screen / wide desktop
@screen-lg: 1024px;
@screen-lg-min: @screen-lg;
// Extra large screen / full hd
@screen-xl: 1440px;
@screen-xl-min: @screen-xl;
// Extra extra large screen / large desktop
@screen-xxl: 1600px;
@screen-xxl-min: @screen-xxl;
=====================================
I've createad myRow component
import React from 'react';
import { Row, Col } from 'antd';
const style = { background: '#3a3', padding: '8px 0' };
export default () => (
<Row gutter={{
xs: 10, sm: 24, md: 26, lg: 28, xl: 30,
}}
Than I've used myRow in index.js
What is expected?
I expect my breakpoints to work and be applied to all the project and all components.
In current case - different gutters on a given (redefined) breakpoints. So gutter of 10 should be applied on the width of 320px
What is actually happening?
No redefinition happens.
The text was updated successfully, but these errors were encountered: