How to use the @uifabric/fluent-theme.SharedColors.red20 function in @uifabric/fluent-theme

To help you get started, we’ve selected a few @uifabric/fluent-theme 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 microsoft / BotFramework-Composer / Composer / packages / lib / code-editor / src / RichEditor.tsx View on Github external
const getHeight = () => {
    if (height === null || height === undefined) {
      return '100%';
    }

    return processSize(height);
  };

  let borderColor = NeutralColors.gray120;

  if (hovered) {
    borderColor = NeutralColors.gray160;
  }

  if (isInvalid) {
    borderColor = SharedColors.red20;
  }

  return (
    
      <div style="{{"> setHovered(true)}
        onMouseLeave={() =&gt; setHovered(false)}
      &gt;
        </div>
github microsoft / BotFramework-Composer / Composer / packages / lib / code-editor / src / RichEditor.tsx View on Github external
<div style="{{"> setHovered(true)}
        onMouseLeave={() =&gt; setHovered(false)}
      &gt;
        
      </div>
      {isInvalid &amp;&amp; (
        <div style="{{">
          <span>{errorHelp}</span>
        </div>
      )}
    
  );
}