Currently utilizing Vaadin 24. I have implemented a side menu with the use of "DrawerToggle" to toggle the visibility of menu items when the burger icon is clicked, which functions smoothly.
DrawerToggle toggle = new DrawerToggle();
SideNav nav = createSideNav();
The SideNavItems are generated in this manner:
SideNavItem item = new SideNavItem(label);
item.setPrefixComponent(icon);
While everything is working as intended, my goal now is to selectively hide labels only when the drawer is collapsed. I want the icons to remain visible even when the drawer is minimized. Essentially, I aim for the drawer to be visibly collapsed at around 60px width, yet still display the icons.
Is there a viable method to accomplish this task?
I've experimented with various CSS approaches, but it seems to clash with Vaadin's internal mechanism for opening and closing the drawer.
Thank you, Thorsten