How to use the @patternfly/react-styles/css/components/Button/button.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 / ApplicationLauncher / ApplicationLauncherToggle.tsx View on Github external
onToggle,
      onEnter,
      parentRef,
      id,
      type,
      ...props
    } = this.props;
    return (
      <button type="{(type" id="{id}"> onToggle &amp;&amp; onToggle(!isOpen)}
        aria-expanded={isOpen}
        onKeyDown={this.onKeyDown}
      &gt;
        {children}
      </button>
    );
  }
}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Tabs / Tabs.tsx View on Github external
onClick={(event: any) =&gt; this.handleTabClick(event, eventKey, tabContentRef, mountOnEnter)}
                    id={`pf-tab-${eventKey}-${childId || uniqueId}`}
                    aria-controls={
                      tabContentId ? `${tabContentId}` : `pf-tab-section-${eventKey}-${childId || uniqueId}`
                    }
                    tabContentRef={tabContentRef}
                    {...rest}
                  &gt;
                    {title}
                  
                
              );
            })}
          
          <button aria-label="{rightScrollAriaLabel}">
            
          </button>
        
        {React.Children.map(children, (child: any, index) =&gt; {
          if (
            !child.props.children ||
            (unmountOnExit &amp;&amp; child.props.eventKey !== activeKey) ||
            (mountOnEnter &amp;&amp; shownKeys.indexOf(child.props.eventKey) === -1)
          ) {
            return null;
          } else {
            return ;
          }
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / experimental / components / Button / Button.tsx View on Github external
return <p>no render</p>;
  }
  const Component = component as any;
  const isButtonElement = Component === 'button';
  return (
    
      {(icon &amp;&amp; variant === 'link') &amp;&amp; <span>{icon}</span>}
      {children}
    
  );
};
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Tabs / Tabs.tsx View on Github external
isSecondary &amp;&amp; styles.modifiers.tabsSecondary,
            showLeftScrollButton &amp;&amp; styles.modifiers.start,
            showRightScrollButton &amp;&amp; styles.modifiers.end,
            highlightLeftScrollButton &amp;&amp; styles.modifiers.startCurrent,
            highlightRightScrollButton &amp;&amp; styles.modifiers.endCurrent,
            className
          )}
          {...(ouiaContext.isOuia &amp;&amp; {
            'data-ouia-component-type': 'Tabs',
            'data-ouia-component-id': ouiaId || ouiaContext.ouiaId
          })}
          id={id &amp;&amp; id}
          {...props}
        &gt;
          <button aria-label="{leftScrollAriaLabel}">
            
          </button>
          <ul>
            {React.Children.map(children, (child: any, index) =&gt; {
              const { title, eventKey, tabContentRef, id: childId, tabContentId, ...rest } = child.props;
              return (
                <li>
                   this.handleTabClick(event, eventKey, tabContentRef, mountOnEnter)}</li></ul>
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / SkipToContent / SkipToContent.tsx View on Github external
render() {
    const { component, children, className, href, show, ...rest } = this.props;
    const Component = component;
    return (
      
        {children}
      
    );
  }
}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / ApplicationLauncher / ApplicationLauncherToggle.tsx View on Github external
isPlain,
      onToggle,
      onEnter,
      parentRef,
      id,
      type,
      ...props
    } = this.props;
    return (
      <button type="{(type" id="{id}"> onToggle &amp;&amp; onToggle(!isOpen)}
        aria-expanded={isOpen}
        onKeyDown={this.onKeyDown}
      &gt;
        {children}
      </button>
    );
  }
}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / experimental / components / Button / Button.tsx View on Github external
render = true,
  ...props
}: ButtonProps) =&gt; {
  if (!render) {
    return <p>no render</p>;
  }
  const Component = component as any;
  const isButtonElement = Component === 'button';
  return (
    
      {(icon &amp;&amp; variant === 'link') &amp;&amp; <span>{icon}</span>}
      {children}
    
  );
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Button / Button.tsx View on Github external
icon = null,
  ouiaContext = null,
  ouiaId = null,
  tabIndex = null as number,
  ...props
}: ButtonProps &amp; InjectedOuiaProps) =&gt; {
  const Component = component as any;
  const isButtonElement = Component === 'button';
  return (
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Button / Button.tsx View on Github external
ouiaId = null,
  tabIndex = null as number,
  ...props
}: ButtonProps &amp; InjectedOuiaProps) =&gt; {
  const Component = component as any;
  const isButtonElement = Component === 'button';
  return (
    
      {icon &amp;&amp; variant === ButtonVariant.link &amp;&amp; <span>{icon}</span>}
      {children}