Comments (6)
@Ontopic Hello! Sorry for the long answer )) You cannot use the function below for the highest breakpoint, since it takes the last maximum breakpoint value. The highest breakpoint simply does not have it.
from styled-breakpoints.
Thanks for your detailed response (and a lovely package).
Maybe a more detailed error message (perhaps even linking to this issue) would be nice.
from styled-breakpoints.
We'll be submitting a pull request, it seems there is a small mixup.
from styled-breakpoints.
@Ontopic, Deal!
from styled-breakpoints.
@Ontopic At your request, it made the message more obvious.
from styled-breakpoints.
This affects the between
method too. I found it a bit unintuitive that the 2nd parameter was inclusive. The api seems to differ from other similar packages with a between
concept:
https://github.com/morajabi/styled-media-query#between
https://github.com/jameslnewell/styled-components-breakpoint#breakpointgte-lt
from styled-breakpoints.
Related Issues (20)
- bug(up): `0px` cannot be assigned as minimum breakpoint
- revert to v11.1.2
- feat(down): add validation for last breakpoint HOT 2
- refactor(core): validation
- refactor(core): need to rewrite using the object composition approach
- fix(down): passing the last breakpoint should not throw an exception
- fix(between): remove incorrect validation for the minimum value
- fix(only): remove incorrect validation for the minimum breakpoint
- refactor(core): need to remove remove `Object.entries` in `throwIfInvalidBreakpoints` function
- ci(gh-actions): add alpha & beta branches to the release.yml
- next: rewrite breakpoints HOT 1
- next: remove functions up, down, between, only from external api
- Customizing breakpoints throws undefined error HOT 1
- docs: Need to reorganize the documentation structure
- docs: remove legacy types
- docs: add latest version
- Cannot find module 'styled-breakpoints/use-media-query' HOT 3
- How to configure breaking points for multiple themes? HOT 1
- useMediaQuery Hook only sets value on initial redner HOT 2
- Feature Request: Support min-Height max-Height HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from styled-breakpoints.