Skip to content

How do you undo a "hidden" class? #3843

Answered by adamwathan
quick007 asked this question in Help
Discussion options

You must be logged in to vote

Hey! You want to use any of the other display utilities for this, like:

class="block sm:hidden"

hidden just sets display: none, so anything class that changes display to something else will unhide it.

You don't need sm:hidden md:hidden btw unless you've edited your breakpoints to not be min-width based in your config — sm:hidden is enough, the element will stay hidden on all larger screens until you explicitly unhide with something like lg:block 👍

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@sebastienbarre
Comment options

Answer selected by simonswiss
Comment options

You must be logged in to vote
1 reply
@rozsazoltan
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants