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

Hide element only on tablet is not possible #3887

Open
moemos opened this issue Feb 19, 2024 · 2 comments
Open

Hide element only on tablet is not possible #3887

moemos opened this issue Feb 19, 2024 · 2 comments
Labels

Comments

@moemos
Copy link

moemos commented Feb 19, 2024

Version

v5.37.6

Operating System

MacOS

Browser

Chrome

What are the steps to reproduce this bug?

Create a Page with a Content element.
Select the "Block", switch to tablet Viewport and hide the element.

Bildschirmfoto 2024-02-16 um 13 52 11
Bildschirmfoto 2024-02-16 um 13 52 03
Bildschirmfoto 2024-02-16 um 13 51 56
Bildschirmfoto 2024-02-16 um 13 51 49

What is the expected behavior?

Block is hidden in tablet viewport only

What do you see instead?

Block is hidden in tablet and mobile viewports

Additional information

No response

Possible solution

No response

@moemos moemos added the bug label Feb 19, 2024
@dibenso
Copy link
Contributor

dibenso commented May 15, 2024

@adrians5j @Pavel910 any idea on what might cause this? My team and I are running into similar issues on 5.39.5. We have more context in the Webiny Slack community pertaining to this: https://webiny-community.slack.com/archives/C014Y0HGJ0Y/p1715783505202099

I’m having an issue with the Hide Element feature. There is no default display applied to the element hidden, and by not having that, if I apply the hide: true on desktop, then there is no way to un-hide it to tablet or mobile, because the hidden from desktop class is default, and the class specific for other breakpoints has no display css element to override.

@swapnilmmane
Copy link
Contributor

Just for information, I also tried using this trick as a workaround, but it didn't work: Hide the block in the tablet view, then navigate to the mobile view, use the navigation tree on the left side to find the hidden block, select it, and then unhide it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants