Skip to content

Responsive grid hidden back to visible #577

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

Closed
enzotrompeneers opened this issue Oct 18, 2018 · 2 comments
Closed

Responsive grid hidden back to visible #577

enzotrompeneers opened this issue Oct 18, 2018 · 2 comments

Comments

@enzotrompeneers
Copy link

enzotrompeneers commented Oct 18, 2018

I wanted to hide an element and remove the spacing:
class="sm:hidden"
-> .hidden {display: none;}
To show an element back I tried:
class="md:visible"
-> .visible {visible: visible;}
But I needed:
-> display: flex;

I wanted to show the element so I thought about the class visible but needed:
class="md:flex"
-> .flex {display: flex;}

I would put in the documentation next to hidden that you can make it visible back with the flex class.

@missmatsuko
Copy link

Sounds like some confusion that could be fixed if #575 was implemented 😄

@adamwathan
Copy link
Member

hidden sets display: none while visible sets visibility: visible. To change an element from hidden back to being normally rendered, you need to use another one of the display utilities.

It doesn't have to be flex, it can be any of them (block, inline-block, inline, flex, inline-flex, table, etc.)

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

3 participants