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 Grid: ui-g-0 ui-md-0 ui-lg-0 #6098

Closed
mossaab0 opened this issue Jul 1, 2020 · 2 comments · Fixed by #6106
Closed

Responsive Grid: ui-g-0 ui-md-0 ui-lg-0 #6098

mossaab0 opened this issue Jul 1, 2020 · 2 comments · Fixed by #6106
Assignees
Milestone

Comments

@mossaab0
Copy link

mossaab0 commented Jul 1, 2020

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.

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"/>
@melloware
Copy link
Member

@mossaab0 the grid.css is right here if you would like to suggest a PR..
https://github.com/primefaces/primefaces/blob/master/src/main/resources/META-INF/resources/primefaces/grid/grid.css

Also PrimeFlex is the newer version of this grid.css you might want to check it out and open a ticket there as well.
See here: https://github.com/primefaces/primeflex

@melloware
Copy link
Member

I reported this on PrimeFlex as well: primefaces/primeflex#24

melloware added a commit to melloware/primefaces that referenced this issue Jul 3, 2020
melloware added a commit to melloware/primefaces that referenced this issue Jul 3, 2020
@melloware melloware self-assigned this Jul 3, 2020
@melloware melloware added this to the 9.0 milestone Jul 3, 2020
@melloware melloware linked a pull request Jul 3, 2020 that will close this issue
tandraschko added a commit that referenced this issue Jul 5, 2020
Fix #6098: Grid allow zero based columns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants