UCSS breaks Navigation block on mobile
-
Hi,
Activating the UCSS options will break the standard Navigation block experience for mobile visitors. The block depends on some CSS for the hamburger menu that is by default active for small screens. The CSS rules that are needed to show the menu after clicking the hamburger icon, is stripped by UCSS as unneeded styling and the mobile visitor will not get to see the menu at all…
We currently have (simply) added
wp-includes/blocks/navigation/style.min.css
to the UCSS exception list to make it work again, but it would be great if this would not be needed by default.I did not do further testing but is seems to me that everything involving the classes
.is-menu-open
,.has-modal-open
and.wp-block-navigation__responsive-container-open
should be excluded from UCSS stripping.Thanks for considering ??
- The topic ‘UCSS breaks Navigation block on mobile’ is closed to new replies.