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

Altering the breakpoint to render mobile/desktop content #665

Open
sperks-syatt opened this issue Dec 13, 2021 · 0 comments
Open

Altering the breakpoint to render mobile/desktop content #665

sperks-syatt opened this issue Dec 13, 2021 · 0 comments
Labels
question Further information is requested

Comments

@sperks-syatt
Copy link

What are you trying to accomplish? Please describe.
I'm adding media queries to improve the display of desktop content and noticed that at a 1025px viewport the mobile content is still displayed, but the large breakpoint in style.json is defined as 64rem (1024px). Changing this value appears to have no effect on header.desktop / header.mobile.

So, my questions are:

  1. How do I go about changing the breakpoint for desktop?
  2. Why is there a disconnect between the JS and the css with regard to where a desktop breakpoint is?

What have you tried so far?
I've spent quite some time adjusting the CSS media queries (between using min-width/max-width, etc.) and search throughout the vtex github repos for where a value of 1025 or 1026 might be getting defined to no avail.

I've tested this on several browsers and had teammates do the same with a consistent behavior of not being able to change the value or getting the breakpoint to match all the css from vtex.store.

Thanks.

Additional info

Screen Shot 2021-12-13 at 4 31 43 PM

Account Workspace
syatt renwil
@sperks-syatt sperks-syatt added the question Further information is requested label Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant