Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion content/foundations/css-utilities/layout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,18 @@ Position utilities can be applied or changed per breakpoint in responsive layout

<StorybookEmbed framework="css" stories={[{id: 'utilities-layout--position-responsive'}]} height="100" />

### Screen reader only
## Screen reader only

Use `.sr-only` to position an element outside of the viewport for screen reader access only. **Even though the element can't be seen, make sure it still has a sensible tab order.**

<StorybookEmbed framework="css" stories={[{id: 'utilities-layout--screen-reader-only'}]} height="100" />

## Show on focus

Use `.show-on-focus` to visually hide an element and only show it when focused. This utility can be used to provide additional functionality for keyboard users.

<StorybookEmbed framework="css" stories={[{id: 'utilities-layout--show-on-focus'}]} height="100" />

## The media object

Create a media object with utilities.
Expand Down