How to use the @uifabric/utilities/lib/css.css function in @uifabric/utilities

To help you get started, we’ve selected a few @uifabric/utilities examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SharePoint / sp-dev-fx-controls-react / src / controls / filePicker / WebSearchTab / WebSearchTab.tsx View on Github external
let thumbnailHeight: number = Math.min(this._rowHeight, item.height);

    // Resize the picture with the same aspect ratio
    let thumbnailWidth: number = thumbnailHeight * ratio;

    const searchResultAltText: string = strings.SearchResultAlt.replace('{0}', query);
    return (
      <div style="{{">
        <div style="{{" data-selection-index="{index}" data-is-focusable="{true}" aria-label="{searchResultAltText}">
          <div data-selection-invoke="{true}">
            <img height="{thumbnailHeight}" width="{thumbnailWidth}" alt="{searchResultAltText}" src="{item.thumbnailUrl}">
            <div></div>
            <div data-automationid="CheckCircle" data-selection-toggle="{true}" data-item-index="{index}" aria-checked="{isSelected}" role="checkbox">
              
            </div>
            <div></div></div></div></div>
github SharePoint / sp-dev-fx-webparts / samples / react-calendar-feed / src / shared / components / CarouselContainer / CarouselContainer.tsx View on Github external
slidesToScroll: 3
          }
        },
        {
          breakpoint: 801,
          settings: {
            slidesToShow: 2,
            slidesToScroll: 2
          }
        }
        // there is no 1 slide option, as it converts to narrow view
      ]
    };

    return (
      <div>
         (this._slider = c)} {...settings}&gt;
          {this.props.children}
        
        <div style="{{"> this._slider.slickPrev()}
        &gt;
          
        </div>
        </div>
github SharePoint / sp-dev-fx-webparts / samples / react-calendar-feed / src / shared / components / CarouselContainer / CarouselContainer.tsx View on Github external
// there is no 1 slide option, as it converts to narrow view
      ]
    };

    return (
      <div>
         (this._slider = c)} {...settings}&gt;
          {this.props.children}
        
        <div style="{{"> this._slider.slickPrev()}
        &gt;
          
        </div>
        <div style="{{"> this._slider.slickNext()}
        &gt;
          
        </div>
      </div>
    );
  }
github SharePoint / sp-dev-fx-controls-react / src / controls / filePicker / RecentFilesTab / RecentFilesTab.tsx View on Github external
private _onRenderCell = (item: IRecentFile, index: number | undefined): JSX.Element =&gt; {
    let isSelected: boolean = false;

    if (this._selection &amp;&amp; index !== undefined) {
      isSelected = this._selection.isIndexSelected(index);
    }

    return (
      <div role="{&quot;gridCell&quot;}">
        <div style="{{" data-automationid="ItemTile" data-item-index="{index}" data-selection-invoke="true" data-selection-index="{index}" data-is-focusable="true" data-is-draggable="false" aria-selected="{isSelected}" role="link">
          <div>
            <div>
              <div></div></div></div></div></div>
github SharePoint / sp-dev-fx-controls-react / src / controls / filePicker / FilePicker.tsx View on Github external
private _renderHeader = (): JSX.Element =&gt; {
    return <div><p role="heading">{strings.FilePickerHeader}</p></div>;
  }
github SharePoint / sp-dev-fx-webparts / samples / react-calendar-feed / src / shared / components / CarouselContainer / CarouselContainer.tsx View on Github external
<div>
         (this._slider = c)} {...settings}&gt;
          {this.props.children}
        
        <div style="{{"> this._slider.slickPrev()}
        &gt;
          
        </div>
        <div style="{{"> this._slider.slickNext()}
        &gt;
          
        </div>
      </div>
    );
  }
}
github SharePoint / sp-dev-fx-webparts / samples / react-calendar-feed / src / shared / components / CarouselContainer / CarouselContainer.tsx View on Github external
className={css(styles.indexButtonContainer, styles.sliderButtons)}
          style={{ left: "10px" }}
          onClick={() =&gt; this._slider.slickPrev()}
        &gt;
          
        
        <div style="{{"> this._slider.slickNext()}
        &gt;
          
        </div>
      
    );
  }
}