How to use the office-ui-fabric-react/lib/Utilities.css function in office-ui-fabric-react

To help you get started, we’ve selected a few office-ui-fabric-react 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 / fields / fieldTextRenderer / FieldTextRenderer.tsx View on Github external
public render(): JSX.Element {
        const isSafeForInnerHTML: boolean = this.props.isSafeForInnerHTML;
        const isTruncatedClassNameObj: any = {};
        isTruncatedClassNameObj[styles.isTruncated] = this.props.isTruncated;
        let text: string = this.props.text;
        if (isSafeForInnerHTML && this.props.isTruncated) {
            text += `<div style="background: linear-gradient(to bottom, transparent, ${(this.props.cssProps &amp;&amp; (this.props.cssProps.background || this.props.cssProps.backgroundColor)) || '#ffffff'} 100%)" class="${styles.truncate}"></div>`;
        }


        if (isSafeForInnerHTML) {
            return (<div style="{this.props.cssProps}"></div>);
        }
        else {
            return ();
        }
    }
}
github OfficeDev / office-ui-fabric-react / packages / legacy / src / components / Calendar / Calendar.tsx View on Github external
<div role="application">
        <div>
          <div>
            <div>
              <div>
                {isDayPickerVisible &amp;&amp; (
                  </div></div></div></div></div>
github OfficeDev / office-ui-fabric-react / apps / fabric-website / src / pages / Interstitials / AngularJSPage.tsx View on Github external
<p>
                  Using Angular to build out your experience? The ngOfficeUIFabric project makes it easy to use Fabric in Angular-based
                  apps.
                </p>
                <p>
                  ngOfficeUIFabric is a community effort to build components for Angular-based apps. Watch the Channel 9 video,{' '}
                  <a href="https://channel9.msdn.com/Shows/Office-Dev-Show/Office-Dev-Show-Episode-25-Angular-Directives-for-Office-UI-Fabric">
                    Angular Directives for Office UI Fabric
                  </a>
                  , to learn more about the project.
                </p>
              
              <div>
                <img height="200" width="200" src="{'https://static2.sharepointonline.com/files/fabric/fabric-website/images/logo-angular-black.svg'}">
              </div>
            
          
        

        <div>
          <div>
            <div>
              <div>
                <span>Efficient and easy to use</span>
                <p></p></div></div></div></div>
github OfficeDev / office-ui-fabric-react / packages / experiments / src / components / SelectedItemsList / SelectedPeopleList / Items / SelectedPersona.tsx View on Github external
return (
    <div aria-labelledby="{'selectedItemPersona-'" role="{'listitem'}" data-selection-index="{index}" data-is-sub-focuszone="{true}" data-is-focusable="{true}">
      <div hidden="{!canExpand">
        
      </div>
      <div>
        <div id="{'selectedItemPersona-'">
          
        </div>
        
      </div></div>
github OfficeDev / office-ui-fabric-react / packages / legacy / src / components / Calendar / CalendarDay.tsx View on Github external
&gt;
        <div>
          <div id="{monthAndYearId}" aria-atomic="true" aria-relevant="text" aria-live="polite">
            {this.props.onHeaderSelect ? (
              <div tabindex="{0}" role="button" aria-label="{dateTimeFormatter.formatMonthYear(navigatedDate,">
                {dateTimeFormatter.formatMonthYear(navigatedDate, strings)}
              </div>
            ) : (
              <div>
                {dateTimeFormatter.formatMonthYear(navigatedDate, strings)}
              </div>
            )}
          </div>
          <div>
            <div>
              </div></div></div>
github SharePoint / sp-dev-fx-controls-react / src / controls / fields / fieldUrlRenderer / FieldUrlRenderer.tsx View on Github external
public render(): JSX.Element {
        const isImageUrl: boolean = this.props.isImageUrl;

        if (isImageUrl) {
            return (<div style="{this.props.cssProps}"><img alt="{this.props.text}" src="{this.props.url}"></div>);
        }
        else {
            return ({this.props.text});
        }
    }
github OfficeDev / office-ui-fabric-react / apps / fabric-website / src / pages / HomePage / HomePage.tsx View on Github external
<div>
            <img alt="React logo" height="64" width="72" src="{'https://static2.sharepointonline.com/files/fabric/fabric-website/images/logo-react.svg'}">
            <span>Built with React</span>
            <span>Fabric’s robust, up-to-date components are built with React</span>
            <a href="#/components">
              See components
            </a>
          </div>
        

        <div>
          <div>
            <span>SharePoint</span>
            <span>
              New SharePoint experiences are built with Fabric and the SharePoint Framework comes with it baked in to make things simple.{' '}
              <a href="https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/use-fabric-react-components">
                Learn more
              </a>
            </span>
          </div>
          </div>
github OfficeDev / office-ui-fabric-react / packages / example-app-base / src / components / ComponentPage / ComponentPage.tsx View on Github external
{!!(dos &amp;&amp; donts) &amp;&amp; (
          <div>
            <div>
              
                <h3>Do</h3>
                {dosUrl &amp;&amp; }
              
              <hr>
              {dos}
            </div>
            <div>
              
                <h3>Don’t</h3>
                {dontsUrl &amp;&amp; }
              
              <hr>
              {donts}
            </div>
          </div>
        )}
      
    );
  }
github OfficeDev / office-ui-fabric-react / packages / legacy / src / components / Calendar / CalendarMonth.tsx View on Github external
{strings.shortMonths.map((month, index) =&gt; {
                const indexedMonth = setMonth(navigatedDate, index);
                const isCurrentMonth = this._isCurrentMonth(index, navigatedDate.getFullYear(), today!);
                const isNavigatedMonth = navigatedDate.getMonth() === index;
                const isSelectedMonth = selectedDate.getMonth() === index;
                const isSelectedYear = selectedDate.getFullYear() === navigatedDate.getFullYear();
                const isInBounds =
                  (minDate ? compareDatePart(minDate, getMonthEnd(indexedMonth)) &lt; 1 : true) &amp;&amp;
                  (maxDate ? compareDatePart(getMonthStart(indexedMonth), maxDate) &lt; 1 : true);

                return (
                  <button type="button" data-is-focusable="{isInBounds" aria-selected="{isCurrentMonth" aria-label="{dateTimeFormatter.formatMonthYear(indexedMonth," disabled="{!isInBounds}" role="{'gridcell'}">
                    {month}</button>
github OfficeDev / office-ui-fabric-react / packages / legacy / src / components / Calendar / CalendarDay.tsx View on Github external
{week.map((day, dayIndex) =&gt; {
                    const isNavigatedDate = compareDates(navigatedDate, day.originalDate);
                    return (