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

Responsive: Allow '0' to hide elements #24

Closed
melloware opened this issue Jul 3, 2020 · 1 comment
Closed

Responsive: Allow '0' to hide elements #24

melloware opened this issue Jul 3, 2020 · 1 comment

Comments

@melloware
Copy link
Member

Description
Sometimes, I'd like a component (or simply a div) to be shown only on desktop. I'd like it to disappear (at least visually) on mobile, and vice-versa.

Originally reported in Primefaces: primefaces/primefaces#6098

Consider this social login example, I'd like to show:

  • "Or sign in manually:" on mobile only (e.g., through a hypothetical <div class="ui-g-12 ui-md-0 ui-lg-0"/>
  • "Or:" on desktop only (e.g., through a hypothetical <div class="ui-g-0 ui-md-2 ui-lg-2"/>
@cagataycivici
Copy link
Member

We have display utilities for this so I rather not duplicate the functionality, please review;

https://primefaces.org/primeng/showcase/#/primeflex/display

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