How to use the @patternfly/react-styles/css/utilities/Accessibility/accessibility.screenReader 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 / Nav / NavExpandable.tsx View on Github external
data-component="pf-nav-expandable"
              className={css(styles.navLink)}
              id={srText ? null : this.id}
              href="#"
              onClick={e => e.preventDefault()}
              onMouseDown={e => e.preventDefault()}
              aria-expanded={expandedState}
            >
              {title}
              <span>
                
              </span>
            
            <section hidden="{expandedState" aria-labelledby="{this.id}">
              {srText &amp;&amp; (
                <h2 id="{this.id}">
                  {srText}
                </h2>
              )}
              <ul>{children}</ul>
            </section>
          
        )}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / ApplicationLauncher / ApplicationLauncherContent.tsx View on Github external
{({ isExternal, icon }) =&gt; (
      &lt;&gt;
        {icon &amp;&amp; {icon}}
        {icon ? {children} : children}
        {isExternal &amp;&amp; (
          &lt;&gt;
            <span>
              
            </span>
            <span>(opens new window)</span>
          
        )}
      
    )}