cannot set "px " in createBreakpoints
See original GitHub issueDescription
I want to set value with px
in createBreakpoints
, but the value is ignored.
Link to Reproduction
https://codesandbox.io/s/blissful-water-ndgd0g?file=/src/index.js:0-347
Steps to reproduce
- Set value with
px
increateBreakpoints
- Values with px set don’t work.
Chakra UI Version
1.7.2
Browser
Google Chrome 95
Operating System
- macOS
- Windows
- Linux
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
MaterialUi custom breakpoints not applied - Stack Overflow
If I console. log my theme object, it will display the correct breakpoint values but will not apply them(the default one will be...
Read more >Building responsive components in Chakra UI - LogRocket Blog
The Chakra UI team advises we define the breakpoints as an object in a custom theme object we create: import { extendTheme }...
Read more >Breakpoint issue - Adobe Support Community - 9237590
I'm currently designing the Master page and have breakpoints at 768 and 320. I find I can reposition text and images at 768,...
Read more >Responsive Styles - Chakra UI
To define custom breakpoints, just pass them as an object into the theme. Note: Ensure the css unit of your breakpoints are the...
Read more >Where And How To Set Breakpoints In Media Queries
Breakpoints Based on 'em' Instead of 'px'. Typically when setting either a min-width or max-width media query, the measurement is 'px' based. If ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You need to wrap the breakpoints in an object. See this example: https://codesandbox.io/s/adoring-engelbart-dspk42?file=/src/index.js
You can pass also other properties like colors, components and fonts on the same way. For more informations have a look on this page: https://chakra-ui.com/docs/theming/customize-theme
can i pick up this issue ?