You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some designs which use this in the left nav to switch between content panels
Visually and functionally it seems like a vertically-oriented EuiTab/EuiTabbedContent component. Is there any interest in adding, say, an orientation="vertical" (prop name/value TBD)?
I'm happy to do the development and submit a PR, I'd just ask for some guidance around how to proceed. I don't presume to be so lucky that I can just add different flex-direction & border values and be done.
We chatted up this up briefly in channel. General feelings were:
Could be EuiSideNav or EuiTabs, but EuiSideNav feels a little easier or more natural for what this component does.
You're welcome to put a PR together for either if you feel strongly either way. A lot of it comes down to if you plan on supporting, or thinking you'd ever need nesting.
If we were doing it against EuiSideNav we'd likely add a new prop called display with an enum that included the new format alongside a default value for the current one. That would allow us to have more styles later if needed. You'd just want to document the alternative display in the EuiSideNav docs. The rest is likely some CSS and some consideration on whether this menu, like the current one accepts nesting.
Not sure if this is a bigger discussion and should be brought up elsewhere but this lead me to do some digging and it looks like nav elements generally should be kept to lists of links and not much else.
Maybe bigger than this ticket because the current implementation allows buttons to be passed in too but I felt like I should say something before work got too far underway.
Activity
snide commentedon Aug 8, 2019
We chatted up this up briefly in channel. General feelings were:
You're welcome to put a PR together for either if you feel strongly either way. A lot of it comes down to if you plan on supporting, or thinking you'd ever need nesting.
If we were doing it against
EuiSideNavwe'd likely add a new prop calleddisplaywith an enum that included the new format alongside a default value for the current one. That would allow us to have more styles later if needed. You'd just want to document the alternative display in theEuiSideNavdocs. The rest is likely some CSS and some consideration on whether this menu, like the current one accepts nesting.Yell if you need anything. Thanks for the help!
myasonik commentedon Aug 9, 2019
Not sure if this is a bigger discussion and should be brought up elsewhere but this lead me to do some digging and it looks like
navelements generally should be kept to lists of links and not much else.Maybe bigger than this ticket because the current implementation allows buttons to be passed in too but I felt like I should say something before work got too far underway.
jfsiii commentedon Sep 12, 2019
Closing in favor of #2334