Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Sidebars #2354

Closed
shezankazi opened this issue Dec 4, 2017 · 3 comments
Closed

Two Sidebars #2354

shezankazi opened this issue Dec 4, 2017 · 3 comments

Comments

@shezankazi
Copy link

Is it possible to use 2 sidebars?

@brianespinosa
Copy link
Member

Yes. There is not a limit to the number of components you can use. If you want to use multiple sidebars on the same side this would likely require some extra markup and CSS depending on what you are trying to do. This would be beyond the scope, and independent of this project.

@kwayebopp
Copy link

I have been trying to implement a view with two vertical sidebars on either side of a div element, but I cannot get the div to fit properly between the two sidebars. I have tried something like this:

<Sidebar.Pushable as={'div'}>
  <Sidebar
   as={Menu}
   animation='push'
   width='wide'
   direction='left'
   visible={this.state.leftSidebar}
   vertical
  >
   {
     // left sidebar contents 
   }
  </Sidebar>
  <Sidebar.Pusher>
    <div>
      {  
         // center content 
      }
     </div>
  </Sidebar.Pusher>
  <Sidebar
   as={Menu}
   animation='push'
   direction='right'
   visible={this.state.rightSidebar}
   vertical
  >
    {
      // right sidebar contents 
    }
  </Sidebar>
</Sidebar.Pushable>

The result was that the right side of center content was covered by the right sidebar, instead of the center being "squeezed" between the sidebars. Is there something wrong with the structure of my JSX or will this require some CSS wrangling?

@brianespinosa
Copy link
Member

@kwayebopp please do not comment on old, closed reports asking for help. If there is a bug you are experiencing, open a new report instead. For usage questions like this one, you should use Stack Overflow.

@Semantic-Org Semantic-Org locked as off-topic and limited conversation to collaborators Apr 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants