UNPKG

@patternfly/patternfly

Version:

Assets, source, tooling, and content for PatternFly 4

45 lines (30 loc) 1.11 kB
--- id: Accessibility section: utility-classes ---## Examples ### Screen reader only ```html Content available only to screen reader, open inspector to investigate <span class="pf-v6-u-screen-reader" >This content is intended to be announced by assistive technologies, but not visually presented.</span> ``` ### Visible ```html <span class="pf-v6-u-visible" >This unsets .pf-v6-u-screen-reader and .pf-v6-screen-reader. It will be visible.</span> ``` ### Hidden ```html The text underneath is hidden. <span class="pf-v6-u-hidden">This text is hidden.</span> ``` ## Documentation ### Overview [Breakpoints](/tokens/all-patternfly-tokens) are optional. Breakpoint options include: base (no breakpoint value), `-on-sm`, `-on-md`, `-on-lg`, and `-on-xl`. Example: `.pf-v6-u-screen-reader-on-lg` ### Usage | Class | Applied to | Outcome | | -- | -- | -- | | `.pf-v6-u-screen-reader{-on-[breakpoint]}` | `*` | Visually hides element, but leaves accessible to assistive technologies | | `.pf-v6-u-visible{-on-[breakpoint]}` | `*` | Unsets `.pf-v6-u-screen-reader` and `.pf-v6-screen-reader` |