How to use the @patternfly/react-styles/css/components/ContextSelector/context-selector.modifiers function in @patternfly/react-styles

To help you get started, we’ve selected a few @patternfly/react-styles 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 patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / ContextSelector / ContextSelectorToggle.tsx View on Github external
isHovered,
      onToggle,
      onEnter,
      parentRef,
      id,
      ...props
    } = this.props;
    return (
      <button type="button" id="{id}"> onToggle(event, !isOpen)}
        aria-expanded={isOpen}
        onKeyDown={this.onKeyDown}
      &gt;
        <span>{toggleText}</span>
        
      </button>
    );
  }
}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / ContextSelector / ContextSelectorItem.tsx View on Github external
{({ onSelect }) =&gt; (
          <li role="none">
            <button> {
                if (!isDisabled) {
                  onClick(event);
                  onSelect(event, children);
                }
              }}
              {...props}
            &gt;
              {children}
            </button>
          </li>
        )}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / ContextSelector / ContextSelector.tsx View on Github external
className,
      isOpen,
      onToggle,
      onSelect,
      screenReaderLabel,
      toggleText,
      searchButtonAriaLabel,
      searchInputValue,
      onSearchInputChange,
      searchInputPlaceholder,
      onSearchButtonClick,
      ...props
    } = this.props;
    return (
      <div>
        {screenReaderLabel &amp;&amp; (
          <span hidden="" id="{screenReaderLabelId}">
            {screenReaderLabel}
          </span>
        )}
        </div>
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / ContextSelector / ContextSelectorItem.tsx View on Github external
{({ onSelect }) =&gt; (
          <li role="none">
            <button> {
                if (!isDisabled) {
                  onClick(event);
                  onSelect(event, children);
                }
              }}
              {...props}
            &gt;
              {children}
            </button>
          </li>
        )}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / ContextSelector / ContextSelectorToggle.tsx View on Github external
isActive,
      isHovered,
      onToggle,
      onEnter,
      parentRef,
      id,
      ...props
    } = this.props;
    return (
      <button type="button" id="{id}"> onToggle(event, !isOpen)}
        aria-expanded={isOpen}
        onKeyDown={this.onKeyDown}
      &gt;
        <span>{toggleText}</span>
        
      </button>
    );
  }
}