Skip to content

Feature Request/Enhancement: Vertical Tabs #2213

Closed

Description

@jfsiii

I have some designs which use this in the left nav to switch between content panels

Screen Shot 2019-08-08 at 8 57 15 AM

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.

Activity

  1. snide commented on Aug 8, 2019

    @snide
    Contributor

    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.

    Yell if you need anything. Thanks for the help!

  2. myasonik commented on Aug 9, 2019

    @myasonik
    Contributor

    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.

  3. jfsiii commented on Sep 12, 2019

    @jfsiii
    Author

    Closing in favor of #2334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions