Skip to content
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

Define mobile #28

Open
JayPanoz opened this issue Nov 20, 2024 · 0 comments
Open

Define mobile #28

JayPanoz opened this issue Nov 20, 2024 · 0 comments
Assignees
Labels

Comments

@JayPanoz
Copy link
Contributor

JayPanoz commented Nov 20, 2024

At the moment the playground is using a single breakpoint (default is 1024) to handle line-length, collapsibility (although that is going to change, see #14) as a simplistic way to handle “responsive”.

However, we’ve discussed having different components for mobile (e.g. sheets) so there’s the overarching issue of defining what mobile is, especially as the lines can be blurry nowadays.

Although generally not recommended, it’s one of these challenges for which it’s kinda difficult to ignore user-agent sniffing, especially as solutions that provide views are already available for React and our use case is a lot more complex than checking for a screen size…

But I’m guessing we will perhaps have to refine that even further with media queries and device features/capabilities.

Of course the biggest challenge is trying to design a good abstraction or something simple enough that we don’t have to keep track of new hardware in order to modify things specifically for it.

Will share some thoughts later but in the meantime, feedbacks and thoughts obviously welcome as it’s not an uncommon issue and some people will have already tackled that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Draft
Development

No branches or pull requests

1 participant