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

Cannot suppress default content at higher breakpoint? #12

Closed
alanhogan opened this issue Jul 19, 2012 · 3 comments
Closed

Cannot suppress default content at higher breakpoint? #12

alanhogan opened this issue Jul 19, 2012 · 3 comments

Comments

@alanhogan
Copy link

Following instructions at #10, I created a custom test using prefix r- and breakpoints named mobile, tablet, and desktop.

Now, this first code worked perfectly as expected:

    <div>
      <div data-r-tablet='Content for tablet and desktop users'></div>
    </div>

But the content in the following div was always displayed, despite the fact that I (intended to) explicitly remove the content at the tablet breakpoint:

        <div data-r-tablet=''>
          Same content but in a different location, for only mobile users
        </div>
@ryanve
Copy link
Owner

ryanve commented Jul 19, 2012

@alanhogan I understand exactly what you're trying to do and just made an update that fixes it. Use version 0.6.1 and you should be fine. Thanks for reminding me 'bout that—I'd run into that myself before and had been meaning to fix it. In case you didn't know <div data-r-tablet=""> is effectively equivalent to <div data-r-tablet>

@alanhogan
Copy link
Author

Woo! I was trying to track it down and hadn’t any luck yet. Thank you! 35 minutes from issue filed to version released? That must be a record of some sort…

@ryanve
Copy link
Owner

ryanve commented Jul 19, 2012

@alanhogan LOL I was right here and just drank like 3 cups of coffee =]

@ryanve ryanve closed this as completed Jan 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants