[EDIT] Requalifying this topic in Feature request: be able to use a table/screen that user will see/use, but without having it appearing in the hamburger menu
Hi, in my app I am using several screens that the user accesses via a “Go to” action.
I don’t want them to appear in the hamburger menu, but when I hide them in this menu, the “Go to” action does not work anymore.
→ Do you have an idea on how to solve this?
Thanks @Mark_Turrell.
Are you speaking about “tab visibility conditions”? In this case the content of the screen is not available anymore to users.
I want it to remain visible, but I don’t want the screen name appearing in the hamburger menu
I have had to duplicate tabs (which I really do not like doing) to achieve this, which has the risk of components not being in sync because of changes (a bit easier as you can ‘copy all’ components, plus you can get lost (and go ‘back’ or arrows do not work).
This is not the perfect solution. I can’t find a way to not touch the SVG and the tab title when we use 1 and 2, but seeing as you have more than 2 then it would work for 3 onwards.
First of all, thanks for your patience, I’m not an expert in css.
Yes, I know i have to choose the number in the brackets. When the user is logged, “CARTA” tab is the 5th tab but when user is not logged is the 4th tab. So I tried different things with no result:
1- nth-of-type(5) Disables the “CARTA” tab correctly when user is logged. When user is not logged, nothing happen, no tab is hidden (See first image posted above, “CARTA” appears when not logged in).
[id=“flyout-root”] [aria-label=“User profile”] + div :nth-of-type(5) {
display: none;
}
2- nth-of-type(4) Disables the “COMPLETAR PEDIDO” tab when user is logged. When user is not logged, nothing happen, no tab is hidden.
[id=“flyout-root”] [aria-label=“User profile”] + div :nth-of-type(4) {
display: none;
}
3- nth-of-type(4) + nth-of-type(5) I tried both at the same time. Disables the “CARTA” and “COMPLETAR PEDIDO” tabs when user is logged. When user is not logged, nothing happen, no tab is hidden.
[id=“flyout-root”] [aria-label=“User profile”] + div :nth-of-type(4) {
display: none;
}
[id=“flyout-root”] [aria-label=“User profile”] + div :nth-of-type(5) {
display: none;
}
When user is logged appears “MIS PEDIDOS” tab (only visible when user is logged with email) over “COMPLETAR PEDIDOS” tab. I deleted it to see if this caused the problem when user is not logged, but nothing changes.
Yeah, I think this needs to be answered. In the original post, @AyS_0908 always have those tabs visible programmatically, but he wants those tabs hidden at the front end. Sounds like @nosehms is already using visibility conditions to show/hide tabs so CSS might not be needed.