How to use the @patternfly/react-styles/css/components/Select/select.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 / Select / Select.tsx View on Github external
{selections &&
            (selections as string[]).map(item => (
               onSelect(e, item)} closeBtnAriaLabel={ariaLabelRemove}>
                {this.getDisplay(item, 'node')}
              
            ))}
        
      );
    }

    return (
      <div width="" style="{{" direction="==">
        
          </div>
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Select / CheckboxSelectOption.tsx View on Github external
{({ onSelect }) =&gt; (
          <label>
            <input type="checkbox" id="{value}"> {
                if (!isDisabled) {
                  onClick(event);
                  onSelect(event, value);
                }
              }}
              ref={this.ref}
              checked={isChecked || false}</label>
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Select / CheckboxSelectOption.tsx View on Github external
&gt;
            <input type="checkbox" id="{value}"> {
                if (!isDisabled) {
                  onClick(event);
                  onSelect(event, value);
                }
              }}
              ref={this.ref}
              checked={isChecked || false}
              disabled={isDisabled}
            /&gt;
            <span>
              {children || value}
            </span>
          
        )}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Select / Select.tsx View on Github external
{selections &amp;&amp;
            (selections as string[]).map(item =&gt; (
               onSelect(e, item)} closeBtnAriaLabel={ariaLabelRemove}&gt;
                {this.getDisplay(item, 'node')}
              
            ))}
        
      );
    }

    return (
      <div width="" style="{{" direction="==">
        
          </div>
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Select / SelectToggle.tsx View on Github external
onKeyDown={this.onKeyDown}
            disabled={isDisabled}
          &gt;
            {children}
            
          
        )}
        {isTypeahead &amp;&amp; (
          <div>}
            className={css(
              styles.selectToggle,
              isFocused &amp;&amp; styles.modifiers.focus,
              isHovered &amp;&amp; styles.modifiers.hover,
              isActive &amp;&amp; styles.modifiers.active,
              isDisabled &amp;&amp; styles.modifiers.disabled,
              isPlain &amp;&amp; styles.modifiers.plain,
              isTypeahead &amp;&amp; styles.modifiers.typeahead,
              className
            )}
            onClick={_event =&gt; {
              if (!isDisabled) {
                onToggle(true);
              }
            }}
            onKeyDown={this.onKeyDown}
          &gt;
            {children}
            </div>
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Select / SelectOption.tsx View on Github external
{({ onSelect, onClose, variant }) =&gt; (
          
            {variant !== SelectVariant.checkbox &amp;&amp; (
              <li role="presentation">
                 {
                    if (!isDisabled) {
                      onClick(event);
                      onSelect(event, value, isPlaceholder);
                      onClose();
                    }
                  }}
                  role="option"
                  aria-selected={isSelected || null}
                  ref={this.ref}
                  onKeyDown={this.onKeyDown}
                  type="button"</li>
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Select / SelectOption.tsx View on Github external
&gt;
                <input type="checkbox" id="{value.toString()}"> {
                    if (!isDisabled) {
                      onClick(event);
                      onSelect(event, value);
                    }
                  }}
                  ref={this.ref}
                  checked={isChecked || false}
                  disabled={isDisabled}
                /&gt;
                <span>
                  {children || value.toString()}
                </span>
              
            )}
          
        )}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Select / SelectToggle.tsx View on Github external
id,
      'aria-labelledby': ariaLabelledBy,
      'aria-expanded': isExpanded,
      'aria-haspopup': (variant !== SelectVariant.checkbox &amp;&amp; 'listbox') || null
    };
    return (
      
        {!isTypeahead &amp;&amp; (
          <button>}
            type={type}
            className={css(
              styles.selectToggle,
              isFocused &amp;&amp; styles.modifiers.focus,
              isHovered &amp;&amp; styles.modifiers.hover,
              isDisabled &amp;&amp; styles.modifiers.disabled,
              isActive &amp;&amp; styles.modifiers.active,
              isPlain &amp;&amp; styles.modifiers.plain,
              className
            )}
            onClick={_event =&gt; {
              onToggle(!isExpanded);
              if (isExpanded) {
                onClose();
              }
            }}
            onKeyDown={this.onKeyDown}
            disabled={isDisabled}
          &gt;
            {children}</button>