Skip to content

Grid Layout for React Components #3678

@matt-peck

Description

@matt-peck

Attempting to wrap a React Component in a Grid Layout for a fluid width change in the panel across devices like this:
Example 1:

<div className="ms-Grid">
  <div className="ms-Grid-row">
    <div className="ms-Grid-col ms-sm12  ms-lg2">
      <Panel
           isOpen={ this.state.showPanel } 
           onDismiss={ this._onClosePanel }>
      </Panel>
    </div>
  </div>
</div>

or like this:

Example 2:

<div class="ms-Grid">
  <div class="ms-Grid-row">
    <Panel
         className="ms-Grid-col ms-sm12  ms-lg2" 
         isOpen={ this.state.showPanel } 
         onDismiss={ this._onClosePanel }>
   </Panel>
  </div>
</div>

Neither seem to produce any result. Instead I seem to have override the Panel Component's CSS in a SASS file and create custom styling over different viewport widths.

Is there a way to integrate Grid Layouts with Fabric UI Components?

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions